Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3sHi-00065c-Sz for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Nov 2016 22:20:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c3sHh-0004eg-SS for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Nov 2016 22:20:57 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c3sH3-0003wN-7d for pgsql-bugs@postgresql.org; Mon, 07 Nov 2016 22:20:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c3sGw-0004bZ-G1 for pgsql-bugs@postgresql.org; Mon, 07 Nov 2016 22:20:16 +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 uA7MK8Wv013354; Mon, 7 Nov 2016 17:20:08 -0500 From: Tom Lane To: Jonathon Nelson cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14416: checkpoints never completed In-reply-to: References: <20161107182707.1393.91785@wrigleys.postgresql.org> <4037.1478546535@sss.pgh.pa.us> Comments: In-reply-to Jonathon Nelson message dated "Mon, 07 Nov 2016 13:48:52 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13352.1478557208.1@sss.pgh.pa.us> Date: Mon, 07 Nov 2016 17:20:08 -0500 Message-ID: <13353.1478557208@sss.pgh.pa.us> X-Pg-Spam-Score: -4.7 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jonathon Nelson writes: > On Mon, Nov 7, 2016 at 1:22 PM, Tom Lane wrote: >> I wonder if this is a problem similar to the autovacuum issue we fixed >> in da1a9d0f5, ie perhaps moving the system clock setting confuses the >> checkpoint timing logic. > That is more or less what we were thinking as well. Looking at the logic around this in checkpointer.c, it's pretty obvious that it would not behave nicely if system time goes backwards after a checkpoint starts; it would think it was ahead of schedule and would just loaf, basically, until the clock catches up to where it had been. There's no sanity check to notice a negative elapsed-time reading. But if system time goes forwards, it would think it was very far behind schedule and would do a burst of work, which doesn't seem to match your symptom. Please confirm the sign of the system clock correction that happened on your machine? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs