Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A028265017F for ; Thu, 28 Aug 2008 17:25:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 45866-02 for ; Thu, 28 Aug 2008 17:25:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay-1.mail.nethere.net (relay-1.mail.nethere.net [66.63.128.161]) by postgresql.org (Postfix) with ESMTP id 3FCEA64FEF9 for ; Thu, 28 Aug 2008 17:25:19 -0300 (ADT) Received: from scan-2.mail.nethere.net (scan-2.mail.nethere.net [66.63.128.133]) by relay-1.mail.nethere.net (Postfix) with ESMTP id 005DC2A2F3 for ; Thu, 28 Aug 2008 13:25:17 -0700 (PDT) Received: from mta-2.mail.nethere.net by scan-2.mail.nethere.net with LMTP id U7O0GBwMcZB8; Thu, 28 Aug 2008 13:25:16 -0700 (PDT) Received: from lisa-james-computer.local (wsip-68-224-174-233.sd.sd.cox.net [68.224.174.233]) by mta-2.mail.nethere.net (Postfix) with ESMTP id D11E5130C1C for ; Thu, 28 Aug 2008 13:25:16 -0700 (PDT) Message-ID: <48B709A5.3090906@emolecules.com> Date: Thu, 28 Aug 2008 13:25:09 -0700 From: Craig James User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Best hardware/cost tradoff? References: <064701c90949$51d117d0$8f01010a@iptel.com.ar> In-Reply-To: <064701c90949$51d117d0$8f01010a@iptel.com.ar> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 200808/389 X-Sequence-Number: 31270 >> -----Mensaje original----- >> De: pgsql-performance-owner@postgresql.org >> * I think we will go for hardware-based RAID 1 with a good >> battery-backed-up controller. I have read that software RAID >> perform surprisingly good, but for a production site where >> hotplug replacement of dead disks is required, is software >> RAID still worth it? >> ... > I havent had any issues with software raid (mdadm) and hot-swaps. It keeps > working in degraded mode and as soon as you replace the defective disk it > can reconstruct the array on the fly. Performance will suffer while at it > but the service keeps up. > The battery backup makes a very strong point for a hw controller. Still, I > have heard good things on combining a HW controller with JBODS leaving the > RAID affair to mdadm. In your scenario though with "*lots* of random reads", > if I had to choose between a HW controller & 2 disks or software RAID with 4 > or 6 disks, I would go for the disks. There are motherboards with 6 SATA > ports. For the money you will save on the controller you can afford 6 disks > in a RAID 10 setup. This is good advice. Hot-swapping seems cool, but how often will you actually use it? Maybe once every year? With Software RAID, replacing a disk means shutdown, swap the hardware, and reboot, which is usually less than ten minutes, and you're back in business. If that's the only thing that happens, you'll have 99.97% uptime on your server. If you're on a limited budget, a software RAID 1+0 will be very cost effective and give good performance for lots of random reads. Hardware RAID with a battery-backed cache helps with writes and hot swapping. If your random-read performance needs outweigh these two factors, consider software RAID. Craig