Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 574566329A2 for ; Thu, 2 Apr 2009 03:31:27 -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 67875-09 for ; Thu, 2 Apr 2009 03:31:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp4.clear.net.nz (smtp4.clear.net.nz [203.97.37.64]) by mail.postgresql.org (Postfix) with ESMTP id AE265632943 for ; Thu, 2 Apr 2009 03:31:20 -0300 (ADT) Received: from zmori.markir.net (121-73-181-246.dsl.telstraclear.net [121.73.181.246]) by smtp4.clear.net.nz (CLEAR Net Mail) with ESMTP id <0KHG00C0GNG0ZM30@smtp4.clear.net.nz> for pgsql-performance@postgresql.org; Thu, 02 Apr 2009 19:31:13 +1300 (NZDT) Date: Thu, 02 Apr 2009 19:31:11 +1300 From: Mark Kirkwood Subject: Re: Raid 10 chunksize In-reply-to: To: Greg Smith Cc: "pgsql-performance@postgresql.org" Message-id: <49D45BAF.7050709@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> <49CB066C.5040203@paradise.net.nz> 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: 200904/39 X-Sequence-Number: 33406 Greg Smith wrote: > >> Yeah - with 64K chunksize I'm seeing a result more congruent with >> yours (866 or so for 24 clients) > > That's good to hear. If adjusting that helped so much, you might > consider aligning the filesystem partitions to the chunk size too; the > partition header usually screws that up on Linux. See these two > references for ideas: > http://www.vmware.com/resources/techresources/608 > http://spiralbound.net/2008/06/09/creating-linux-partitions-for-clariion > Well I went away and did this (actually organized for for the system folks to...). Retesting showed no appreciable difference (if anything slower). Then I got to thinking: For a partition created on a (hardware) raided device, sure - alignment is very important, however in my case we are using software (md) raid - which creates devices out of individual partitions (which are on individual SAS disks) e.g: md3 : active raid10 sda4[0] sdd4[3] sdc4[2] sdb4[1] 177389056 blocks 256K chunks 2 near-copies [4/4] [UUUU] I'm thinking that alignment issues do not apply here, as md will allocate chunks starting at the beginning of wherever sda4 (etc) begins - so the absolute starting position of sda4 is irrelevant. Or am I missing something? Thanks again Mark