Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hpPit-00021g-HR for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jul 2019 04:14:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hpPis-0000yN-Cd for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jul 2019 04:14:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hpPis-0000yG-43 for pgsql-hackers@lists.postgresql.org; Mon, 22 Jul 2019 04:14:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hpPip-0002l9-QJ for pgsql-hackers@postgresql.org; Mon, 22 Jul 2019 04:14:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x6M4EdkT028140; Mon, 22 Jul 2019 00:14:39 -0400 From: Tom Lane To: Michael Paquier cc: Alexander Lakhin , pgsql-hackers@postgresql.org Subject: Re: Fix typos and inconsistencies for HEAD (take 7) In-reply-to: <20190722010543.GB1757@paquier.xyz> References: <20190722010543.GB1757@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Mon, 22 Jul 2019 10:05:50 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <28138.1563768879.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 22 Jul 2019 00:14:39 -0400 Message-ID: <28139.1563768879@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Sun, Jul 21, 2019 at 08:28:53AM +0300, Alexander Lakhin wrote: >> And another finding is related to the sleep effective resolution. `man 7 >> time` says "Since kernel 2.6.13, the HZ value is a kernel configuration  >> parameter  and  can  be 100, 250 (the default) ...", so the 10 >> milliseconds is not the most common effective resolution nowadays. >> I propose the corresponding patch for pgsleep.c, but we have a similar >> statement in doc/.../config.sgml. I think It should be fixed too. > Fixing both places sounds adapted to me. An alternative we could use > here is just to say something like that: > The effective resolution is only 1/HZ, which can be configured with > kernel parameter (see man 7 time), and is 4 milliseconds by > default. Whatever we say here is going to be a lie on some platforms. Probably best just to say that the sleep resolution is platform-dependent and leave it at that. regards, tom lane