Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYCcd-0002AN-OK for pgsql-performance@arkaria.postgresql.org; Wed, 18 Mar 2015 11:58:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YYCcd-0002MP-2I for pgsql-performance@arkaria.postgresql.org; Wed, 18 Mar 2015 11:58:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YYCcc-0002MH-3z for pgsql-performance@postgresql.org; Wed, 18 Mar 2015 11:58:50 +0000 Received: from col004-omc4s2.hotmail.com ([65.55.34.204]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYCcY-0007oL-L6 for pgsql-performance@postgresql.org; Wed, 18 Mar 2015 11:58:48 +0000 Received: from COL129-W41 ([65.55.34.199]) by COL004-OMC4S2.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Wed, 18 Mar 2015 04:58:45 -0700 X-TMN: [q7G0ssln0p8R3E5n9D42JeeO2u+MBYh/] X-Originating-Email: [steven.jones1201@outlook.com] Message-ID: From: Steven Jones To: "ik@postgresql-consulting.com" CC: "pgsql-performance@postgresql.org" Subject: Re: Very slow checkpoints Date: Wed, 18 Mar 2015 11:58:45 +0000 Importance: Normal In-Reply-To: References: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 18 Mar 2015 11:58:45.0693 (UTC) FILETIME=[E30906D0:01D06172] X-Pg-Spam-Score: -1.7 (-) 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 Hi Ilya, Thank you for the response. Yes BBU is on the controller; 1024Mb. It is a HP=A0P410i controller, with w= rite caching turned on the controller; off on disk level. 2x 15k SAS SFF for WAL and 12x 10k SAS SFF for DB We have tried longer settings for checkpoint_timeout, but not 1hr; so we wi= ll try that as well. We don't at this stage have any graphs, but we will set it up over the next= 24hrs at least. Regards, Steve ---------------------------------------- > From: ilya.kosmodemiansky@postgresql-consulting.com > Date: Wed, 18 Mar 2015 12:42:43 +0100 > Subject: Re: [PERFORM] Very slow checkpoints > To: steven.jones1201@outlook.com > CC: pgsql-performance@postgresql.org > > Hi Steven, > > On Wed, Mar 18, 2015 at 12:21 PM, Steven Jones > wrote: >> - system is HP blade; 128Gb RAM, 2x 8-core, 12x 10k RPM RAID1+0 (databas= e) > > Have you BBU on your controller? And how your controller configured, I > mean cache mode, io mode, disk write cache mode. You have 15K SAS > (which form factor?) under WAL and 10K SAS under database, am I > correct? > >> Full iostat/iotop, configuration, checkpoint stats, etc. are pasted below >> for completeness. Highlights are: >> checkpoint_segments=3D512 >> shared_buffers=3D16GB >> checkpoint_timeout=3D15min >> checkpoint_completion_target=3D0.1 > > It looks like your checkpoint settings are a bit strange besides of > everything else. If you chose high value for checkpoint_segments, your > aim is to avoid checkpoints by timeout (or vice verse). If you have > checkpoint_segments=3D512, your checkpoint_timeout should be about > 60min. And anyway - checkpoint_completion_target=3D0.9 or 0.7 in order > to spread disk load between checkpoints. > > > >>=A0 >> sysctl settings for dirty pages >> >> vm.dirty_background_bytes =3D 0 >> vm.dirty_background_ratio =3D 5 >> vm.dirty_bytes =3D 0 >> vm.dirty_expire_centisecs =3D 3000 >> vm.dirty_ratio =3D 10 >> vm.dirty_writeback_centisecs =3D 500 > > Values for this settings are really dependent of RAID (and BBU size). > > And about further problem description: have you any graphical > representation of your % disc utilization? > > Best regards, > Ilya > > -- > Ilya Kosmodemiansky, > > PostgreSQL-Consulting.com > tel. +14084142500 > cell. +4915144336040 > ik@postgresql-consulting.com > > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance =20=09=09=20=09=20=20=20=09=09=20=20 --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance