Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D6744F3E59C for ; Fri, 23 Dec 2011 05:20:19 -0400 (AST) Received: from mailout-de.gmx.net ([213.165.64.23]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Re1IY-0000OZ-JL for pgsql-performance@postgresql.org; Fri, 23 Dec 2011 09:20:19 +0000 Received: (qmail invoked by alias); 23 Dec 2011 09:20:05 -0000 Received: from office.icomedias.com (EHLO [10.192.1.141]) [109.73.147.5] by mail.gmx.net (mp069) with SMTP; 23 Dec 2011 10:20:05 +0100 X-Authenticated: #5984785 X-Provags-ID: V01U2FsdGVkX1+gkeczKJKgacO2bhpV6HFk72NHFpdJ3aKernAZM7 J8aX91pZkqBc5L Message-ID: <4EF447C5.6050408@gmx.at> Date: Fri, 23 Dec 2011 10:20:05 +0100 From: Mario Weilguni User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Postgresql 9.0.6 Raid 5 or not please help. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Pg-Spam-Score: -1.8 (-) X-Archive-Number: 201112/158 X-Sequence-Number: 45957 Am 23.12.2011 08:05, schrieb Scott Marlowe: > On Thu, Dec 22, 2011 at 11:18 PM, tuanhoanganh wrote: >> Thanks for your answer. But how performance between raid5 and one disk. > One disk will usually win, 2 disks (in a mirror) will definitely win. > RAID-5 has the highest overhead and the poorest performance, > especially if it's degraded (1 drive out) that simple mirroring > methods don't suffer from. But even in an undegraded state it is > usually the slowest method. RAID-10 is generally the fastest with > redundancy, and of course pure RAID-0 is fastest of all but has no > redundancy. > > You should do some simple benchmarks with something like pgbench and > various configs to see for yourself. For extra bonus points, break a > mirror (2 disk -> 1 disk) and compare it to RAID-5 (3 disk -> 2 disk > degraded) for performance. The change in performance for a RAID-1 to > single disk degraded situation is usually reads are half as fast and > writes are just as fast. For RAID-5 expect to see it drop by a lot. > I'm not so confident that a RAID-1 will win over a single disk. When it comes to writes, the latency should be ~50 higher (if both disk must sync), since the spindles are not running synchronously. This applies to softraid, not something like a battery-backend raid controller of course. Or am I wrong here?