Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 936AC6338FF for ; Fri, 9 Apr 2010 00:29:56 -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 20918-09 for ; Fri, 9 Apr 2010 03:29:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EXHUB018-4.exch018.msoutlookonline.net (exhub018-4.exch018.msoutlookonline.net [64.78.17.19]) by mail.postgresql.org (Postfix) with ESMTP id E6B93632A30 for ; Fri, 9 Apr 2010 00:29:45 -0300 (ADT) Received: from EXVMBX018-1.exch018.msoutlookonline.net ([64.78.17.47]) by EXHUB018-4.exch018.msoutlookonline.net ([64.78.17.19]) with mapi; Thu, 8 Apr 2010 20:29:44 -0700 From: Scott Carey To: Greg Smith CC: Ireneusz Pluta , "pgsql-performance@postgresql.org" Date: Thu, 8 Apr 2010 20:28:27 -0700 Subject: Re: 3ware vs. MegaRAID Thread-Topic: [PERFORM] 3ware vs. MegaRAID Thread-Index: AcrXlOWu/YZao+GPT6WJnbwQQTEZEA== Message-ID: <77DF4275-AF8F-4F1F-97F8-3F6401CFCE09@richrelevance.com> References: <4BB1FAAF.7050406@wp.pl> <4BB23254.2040109@2ndquadrant.com> <4BBB662C.8030102@wp.pl> <23D26E38-9852-4EB6-9DF9-FCB2EAE1EE6C@richrelevance.com> <4BBD740C.7020308@2ndquadrant.com> In-Reply-To: <4BBD740C.7020308@2ndquadrant.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201004/110 X-Sequence-Number: 38360 On Apr 7, 2010, at 11:13 PM, Greg Smith wrote: > Scott Carey wrote: >> * Change the linux 'readahead' block device parameter to at least 4MB (8= 192, see blockdev --setra) -- I don't know if there is a FreeBSD equivalent= . >>=20 > I haven't tested them, but 3ware gives suggestions at=20 > http://www.3ware.com/kb/Article.aspx?id=3D14852 for tuning their cards=20 > properly under FreeBSD. You cannot get good sequential read performance= =20 > from 3ware's cards without doing something about this at the OS level;=20 > the read-ahead on the card itself is minimal and certainly a bottleneck. >=20 > As for your comments about drives being faster at the front than the=20 > end, the zcav tool that comes with bonnie++ is a good way to plot that=20 > out, rather than having to split partitions up and do a bunch of manual=20 > testing. There's an FIO script that does something similar. What I'm suggesting is that if you want to test a file system (or compare i= t to others), and you want to get consistent results then run those tests o= n a smaller slice of the drive. To tune a RAID card, there is not much po= int other than trying out the fast part of the drive, if it can keep up on = the fast part, it should be able to keep up on the slow part. I'm would no= t suggest splitting the drive up into chunks and doing many manual tests. 3.5" drives are a bit more than 50% the sequential throughput at the end th= an the start. 2.5" drives are a bit less than 65% the sequential throughpu= t at the end than the start. I haven't seen any significant variation of t= hat rule on any benchmark I've run, or I've seen online for 'standard' driv= es. Occasionally there is a drive that doesn't use all its space and is a = bit faster at the end. My typical practice is to use the first 70% to 80% of a large volume for th= e main data, and use the slowest last chunk for archives and backups. >=20 > --=20 > Greg Smith 2ndQuadrant US Baltimore, MD > PostgreSQL Training, Services and Support > greg@2ndQuadrant.com www.2ndQuadrant.us >=20