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 1hhdtc-0005TQ-JW for pgsql-general@arkaria.postgresql.org; Sun, 30 Jun 2019 17:45:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hhdtb-0006JQ-79 for pgsql-general@arkaria.postgresql.org; Sun, 30 Jun 2019 17:45:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhdta-0006It-Qj for pgsql-general@lists.postgresql.org; Sun, 30 Jun 2019 17:45:46 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhdsx-0003M4-0y for pgsql-general@postgresql.org; Sun, 30 Jun 2019 17:45:45 +0000 Received: from [192.168.127.1] (port=33466 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1hhdst-000AEb-M7; Sun, 30 Jun 2019 17:45:03 +0000 Received: from [127.0.0.1] (port=51802 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1hhdst-00046q-1C; Sun, 30 Jun 2019 17:45:03 +0000 From: Andrew Gierth To: rihad Cc: pgsql-general General Subject: Re: "Time of latest checkpoint" stays too old on both master and slave In-Reply-To: (rihad@mail.ru's message of "Sun, 30 Jun 2019 11:07:10 +0400") Message-ID: <87h887q8i1.fsf@news-spur.riddles.org.uk> References: <86255d9c-51b0-aca3-1757-016952c73c67@mail.ru> <4a7c5b2e-9e27-3cd0-baa8-f0ad4df6b440@mail.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Sun, 30 Jun 2019 18:45:03 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "rihad" == rihad writes: rihad> There's a weird problem, even when the time is initially set by rihad> openntpd it keeps lagging by one second every few seconds: rihad> $ sudo /usr/local/etc/rc.d/openntpd restart What OS is this? I've seen this kind of thing with FreeBSD where the kernel timecounter source has been chosen badly (i.e. choosing TSC when the TSC isn't actually invariant enough). Forcing TSC not to be used fixes it. The configuration I've especially noticed it on is when running in a VM with a single virtual CPU. -- Andrew (irc:RhodiumToad)