From: rihad <rihad@mail.ru>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: "Time of latest checkpoint" stays too old on both master and slave
Date: Sun, 30 Jun 2019 21:55:09 +0400
Message-ID: <aa16b98a-9eaf-d3a8-5d10-79bb6492e86c@mail.ru> (raw)
In-Reply-To: <87h887q8i1.fsf@news-spur.riddles.org.uk>
References: <86255d9c-51b0-aca3-1757-016952c73c67@mail.ru>
<4a7c5b2e-9e27-3cd0-baa8-f0ad4df6b440@mail.ru>
<a1536865-27d5-e8c5-38a7-0db01fa764c2@mail.ru>
<87h887q8i1.fsf@news-spur.riddles.org.uk>
On 06/30/2019 09:45 PM, Andrew Gierth wrote:
>>>>>> "rihad" == rihad <rihad@mail.ru> 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.
>
Exactly. You're right. It's on FreeBSD 11.2. After some googling earlier
I changed kern.timecounter.hardware=HPET and solved the problem. The
default chosen value TSC-low seems to misbehave for this box, although
it works on others (running the same FreeBSD version).
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rihad@mail.ru, andrew@tao11.riddles.org.uk
Subject: Re: "Time of latest checkpoint" stays too old on both master and slave
In-Reply-To: <aa16b98a-9eaf-d3a8-5d10-79bb6492e86c@mail.ru>
References: <86255d9c-51b0-aca3-1757-016952c73c67@mail.ru> <4a7c5b2e-9e27-3cd0-baa8-f0ad4df6b440@mail.ru> <a1536865-27d5-e8c5-38a7-0db01fa764c2@mail.ru> <87h887q8i1.fsf@news-spur.riddles.org.uk> <aa16b98a-9eaf-d3a8-5d10-79bb6492e86c@mail.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox