Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 92C9C63279A for ; Thu, 8 Apr 2010 00:31:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 94580-01 for ; Thu, 8 Apr 2010 03:31:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EXHUB018-2.exch018.msoutlookonline.net (exhub018-2.exch018.msoutlookonline.net [64.78.17.17]) by mail.postgresql.org (Postfix) with ESMTP id A77396326E8 for ; Thu, 8 Apr 2010 00:31:10 -0300 (ADT) Received: from EXVMBX018-1.exch018.msoutlookonline.net ([64.78.17.47]) by EXHUB018-2.exch018.msoutlookonline.net ([64.78.17.17]) with mapi; Wed, 7 Apr 2010 20:31:09 -0700 From: Scott Carey To: Ireneusz Pluta CC: Greg Smith , "pgsql-performance@postgresql.org" Date: Wed, 7 Apr 2010 20:29:53 -0700 Subject: Re: 3ware vs. MegaRAID Thread-Topic: [PERFORM] 3ware vs. MegaRAID Thread-Index: AcrWy+32nROm7i+JQUeNMqC7zcYv5Q== Message-ID: <23D26E38-9852-4EB6-9DF9-FCB2EAE1EE6C@richrelevance.com> References: <4BB1FAAF.7050406@wp.pl> <4BB23254.2040109@2ndquadrant.com> <4BBB662C.8030102@wp.pl> In-Reply-To: <4BBB662C.8030102@wp.pl> 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=-1.245 tagged_above=-10 required=5 tests=AWL=-1.246, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201004/88 X-Sequence-Number: 38338 On Apr 6, 2010, at 9:49 AM, Ireneusz Pluta wrote: > Greg Smith pisze: >>=20 >> The MegaRAID SAS 84* cards have worked extremely well for me in terms=20 >> of performance and features for all the systems I've seen them=20 >> installed in. I'd consider it a modest upgrade from that 3ware card,=20 >> speed wise. =20 > OK, sounds promising. >> The main issue with the MegaRAID cards is that you will have to write=20 >> a lot of your own custom scripts to monitor for failures using their=20 >> painful MegaCLI utility, and under FreeBSD that also requires using=20 >> their Linux utility via emulation: =20 >> http://www.freebsdsoftware.org/sysutils/linux-megacli.html >>=20 > And this is what worries me, as I prefer not to play with utilities too=20 > much, but put the hardware into production, instead. So I'd like to find= =20 > more precisely if expected speed boost would pay enough for that pain.=20 > Let me ask the following way then, if such a question makes much sense=20 > with the data I provide. I already have another box with 3ware=20 > 9650SE-16ML. With the array configured as follows: > RAID-10, 14 x 500GB Seagate ST3500320NS, stripe size 256K, 16GB RAM,=20 > Xeon X5355, write caching enabled, BBU, FreeBSD 7.2, ufs, > when testing with bonnie++ on idle machine, I got sequential block=20 > read/write around 320MB/290MB and random seeks around 660. >=20 > Would that result be substantially better with LSI MegaRAID? >=20 My experiences with the 3ware 9650 on linux are similar -- horribly slow fo= r some reason with raid 10 on larger arrays. Others have claimed this card performs well on FreeBSD, but the above looks= just as bad as Linux. 660 iops is slow for 14 spindles of any type, although the raid 10 on might= limit it to an effective 7 spindles on reading in which case its OK -- but= should still top 100 iops per effective disk on 7200rpm drives unless the = effective concurrency of the benchmark is low. My experience with the 9650= was that iops was OK, but sequential performance for raid 10 was very poor= . On linux, I was able to get better sequential read performance like this: * set it up as 3 raid 10 blocks, each 4 drives (2 others spare or for xlog = or something). Software RAID-0 these RAID 10 chunks together in the OS. * 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. A better raid card you should hit at minimum 800, if not 1000, MB/sec + dep= ending on whether you bottleneck on your PCIe or SATA ports or not. I switched to tw= o adaptec 5xx5 series cards (each with half the disks, software raid-0 betw= een them) to get about 1200MB/sec max throughput and 2000iops from two sets= of 10 Seagate STxxxxxxxNS 1TB drives. That is still not as good as it sh= ould be, but much better. FWIW, one set of 8 drives in raid 10 on the ada= ptec did about 750MB/sec sequential and ~950 iops read. It required XFS to= do this, ext3 was 20% slower in throughput. A PERC 6 card (LSI MegaRaid clone) performed somewhere between the two. I don't like bonnie++ much, its OK at single drive tests but not as good at= larger arrays. If you have time try fio, and create some custom profiles. Lastly, for these sorts of tests partition your array in smaller chunks so = that you can reliably test the front or back of the drive. Sequential spee= d at the front of a typical 3.5" drive is about 2x as fast as at the end of= the drive. =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