Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wesxc-0001uu-Nj for pgsql-performance@arkaria.postgresql.org; Mon, 28 Apr 2014 21:19:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wesxb-0003E9-BW for pgsql-performance@arkaria.postgresql.org; Mon, 28 Apr 2014 21:19:35 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WesxM-0002sT-L7 for pgsql-performance@postgresql.org; Mon, 28 Apr 2014 21:19:20 +0000 Received: from smtp-out2.gransy.com ([77.78.126.49]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WesxJ-0003sZ-SZ for pgsql-performance@postgresql.org; Mon, 28 Apr 2014 21:19:19 +0000 Received: from smtp-out.gransy.com (localhost [127.0.0.1]) by smtp-out2.gransy.com (Postfix) with ESMTP id E81233F0155 for ; Mon, 28 Apr 2014 23:19:17 +0200 (CEST) Received: from smtp.gransy.com (smtp.simplia.cz [77.78.126.20]) by smtp-out2.gransy.com (Postfix) with ESMTP id 849563F0127; Mon, 28 Apr 2014 23:19:17 +0200 (CEST) Received: from [192.168.1.163] (ip-78-45-139-138.net.upcbroadband.cz [78.45.139.138]) (Authenticated sender: tv@fuzzy.cz) by smtp.gransy.com (Postfix) with ESMTPSA id 6338719A0455; Mon, 28 Apr 2014 23:19:08 +0200 (CEST) Message-ID: <535EC5CC.5090504@fuzzy.cz> Date: Mon, 28 Apr 2014 23:19:08 +0200 From: Tomas Vondra User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Jeff Janes CC: "pgsql-performance@postgresql.org" Subject: Re: Checkpoints and slow queries References: <535D88B6.5090002@fuzzy.cz> <10039.1398694057@sss.pgh.pa.us> <535EBCEC.4000501@fuzzy.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 28.4.2014 22:54, Jeff Janes wrote: > On Mon, Apr 28, 2014 at 1:41 PM, Tomas Vondra There's certainly something fishy, because although this is the supposed > configuration: > > checkpoint_segments = 250 > checkpoint_timeout = 1h > checkpoint_completion_target = 0.9 > > the checkpoint logs typically finish in much shorter periods of time. > > That doesn't look fishy to me. The checkpointer will not take more than > one nap between buffers, so it will always write at least 10 buffers per > second (of napping time) even if that means it finishes early. Which > seems to be the case here--the length of the write cycle seems to be > about one tenth the number of buffers written. Oh, makes sense I guess. Apparently I'm tuning this only on systems doing a lot of I/O, so this behaviour somehow escaped me. Tomas -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance