Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYT0q-0005mI-PE for pgsql-performance@arkaria.postgresql.org; Thu, 19 Mar 2015 05:28:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YYT0p-0003dh-6X for pgsql-performance@arkaria.postgresql.org; Thu, 19 Mar 2015 05:28:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YYT0n-0003dY-30 for pgsql-performance@postgresql.org; Thu, 19 Mar 2015 05:28:53 +0000 Received: from col004-omc1s12.hotmail.com ([65.55.34.22]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYT0d-0002pj-Kx for pgsql-performance@postgresql.org; Thu, 19 Mar 2015 05:28:51 +0000 Received: from COL129-W59 ([65.55.34.9]) by COL004-OMC1S12.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Wed, 18 Mar 2015 22:28:41 -0700 X-TMN: [POjBcsqDG1rt4wqvDrUl/L/pTm3KU8iN] X-Originating-Email: [steven.jones1201@outlook.com] Message-ID: From: Steven Jones To: didier CC: "pgsql-performance@postgresql.org" Subject: Re: Very slow checkpoints Date: Thu, 19 Mar 2015 05:28:40 +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: 19 Mar 2015 05:28:41.0191 (UTC) FILETIME=[8F472F70:01D06205] 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, >> >> Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz >> avgqu-sz await r_await w_await svctm %util >> sda 0.00 0.00 0.00 5.00 0.00 2056.00 822.40 >> 0.00 0.00 0.00 0.00 0.00 0.00 >> sdb 0.00 0.00 1055.00 549.00 41166.50 22840.00 79.81 >> 5.28 3.28 4.94 0.10 0.62 100.00 > Your sdb is saturated... Yes that's what iostat seems to indicate, but it's weird because at the sam= e time it is reporting 100% io utilization I can hit the disk write (seq) a= t> 250Mbyte/sec: # sync;time bash -c "(dd if=3D/dev/sda1 of=3Dbf bs=3D8k count=3D500000; syn= c)" 500000+0 records in 500000+0 records out 4096000000 bytes (4.1 GB) copied, 14.8575 s, 276 MB/s real 0m14.896s user 0m0.068s sys 0m10.157s > Why are checkpointer process and writer process reading at 18 MB/s ? > I have no experience with zfs but could it be related to COW and > recordsize? I have no idea if these reads are counted in iotop output > though. In general, some random disk write benchmarks and varying block sizes don't= have a huge effect. =A0But for some reason the checkpointing process is ju= st simply writing checkpoints too slowly. In the meantime the COPY is pilin= g up logs while the previous checkpoint is still being written, so the next= one starts straight away and no setting is able to split them up. Regards, Steve=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