Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id AC9C3632872 for ; Thu, 8 Apr 2010 03:13:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 29907-07 for ; Thu, 8 Apr 2010 06:13:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mail.postgresql.org (Postfix) with ESMTP id 05431632315 for ; Thu, 8 Apr 2010 03:13:38 -0300 (ADT) Received: from [192.168.0.105] (pool-96-244-14-10.bltmmd.fios.verizon.net [96.244.14.10]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MKv5w-1Nzkzd1JJY-00053z; Thu, 08 Apr 2010 08:13:34 +0200 Message-ID: <4BBD740C.7020308@2ndquadrant.com> Date: Thu, 08 Apr 2010 02:13:32 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Scott Carey CC: Ireneusz Pluta , "pgsql-performance@postgresql.org" Subject: Re: 3ware vs. MegaRAID References: <4BB1FAAF.7050406@wp.pl> <4BB23254.2040109@2ndquadrant.com> <4BBB662C.8030102@wp.pl> <23D26E38-9852-4EB6-9DF9-FCB2EAE1EE6C@richrelevance.com> In-Reply-To: <23D26E38-9852-4EB6-9DF9-FCB2EAE1EE6C@richrelevance.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX188olPB00dUhle2d1G3z9s5G4m1sFr04Odfqog gtUkczSA46wDGJOn5FQEAjz255olCGAAdZar/OQOsvJNWGPehA o3C1cp4X6IbP2dTDDCKywTPhAzuJZKJ X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201004/91 X-Sequence-Number: 38341 Scott Carey wrote: > * Change the linux 'readahead' block device parameter to at least 4MB (8192, see blockdev --setra) -- I don't know if there is a FreeBSD equivalent. > I haven't tested them, but 3ware gives suggestions at http://www.3ware.com/kb/Article.aspx?id=14852 for tuning their cards properly under FreeBSD. You cannot get good sequential read performance from 3ware's cards without doing something about this at the OS level; the read-ahead on the card itself is minimal and certainly a bottleneck. As for your comments about drives being faster at the front than the end, the zcav tool that comes with bonnie++ is a good way to plot that out, rather than having to split partitions up and do a bunch of manual testing. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us