Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 8067F636B22 for ; Thu, 26 Mar 2009 02:45:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 08601-04 for ; Thu, 26 Mar 2009 02:45:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp3.clear.net.nz (smtp3.clear.net.nz [203.97.33.64]) by mail.postgresql.org (Postfix) with ESMTP id 6F35A63697B for ; Thu, 26 Mar 2009 02:45:20 -0300 (ADT) Received: from zmori.markir.net (121-73-184-99.dsl.telstraclear.net [121.73.184.99]) by smtp3.clear.net.nz (CLEAR Net Mail) with ESMTP id <0KH300DBTJRZHI00@smtp3.clear.net.nz> for pgsql-performance@postgresql.org; Thu, 26 Mar 2009 17:43:12 +1300 (NZDT) Date: Thu, 26 Mar 2009 17:43:10 +1300 From: Mark Kirkwood Subject: Re: Raid 10 chunksize In-reply-to: <49CAD14C.3020507@ummon.com> To: Stef Telford Cc: "pgsql-performance@postgresql.org" Message-id: <49CB07DE.4040102@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <49C98433.5080709@paradise.net.nz> <49CAD14C.3020507@ummon.com> User-Agent: Thunderbird 2.0.0.19 (X11/20090117) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/377 X-Sequence-Number: 33299 Stef Telford wrote: > > Hello Mark, > Okay, so, take all of this with a pinch of salt, but, I have the > same config (pretty much) as you, with checkpoint_Segments raised to > 192. The 'test' database server is Q8300, 8GB ram, 2 x 7200rpm SATA > into motherboard which I then lvm stripped together; lvcreate -n > data_lv -i 2 -I 64 mylv -L 60G (expandable under lvm2). That gives me > a stripe size of 64. Running pgbench with the same scaling factors; > > starting vacuum...end. > transaction type: TPC-B (sort of) > scaling factor: 100 > number of clients: 24 > number of transactions per client: 12000 > number of transactions actually processed: 288000/288000 > tps = 1398.907206 (including connections establishing) > tps = 1399.233785 (excluding connections establishing) > > It's also running ext4dev, but, this is the 'playground' server, > not the real iron (And I dread to do that on the real iron). In short, > I think that chunksize/stripesize is killing you. Personally, I would > go for 64 or 128 .. that's jst my 2c .. feel free to > ignore/scorn/laugh as applicable ;) > > Stef - I suspect that your (quite high) tps is because your SATA disks are not honoring the fsync() request for each commit. SCSI/SAS disks tend to by default flush their cache at fsync - ATA/SATA tend not to. Some filesystems (e.g xfs) will try to work around this with write barrier support, but it depends on the disk firmware. Thanks for your reply! Mark