Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 89207171224A for ; Tue, 6 Mar 2012 04:17:21 -0400 (AST) Received: from mail-ee0-f46.google.com ([74.125.83.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S4paC-0004Jr-0H for pgsql-performance@postgresql.org; Tue, 06 Mar 2012 08:17:20 +0000 Received: by eekc41 with SMTP id c41so1787903eek.19 for ; Tue, 06 Mar 2012 00:17:07 -0800 (PST) Received-SPF: pass (google.com: domain of yebhavinga@gmail.com designates 10.213.7.10 as permitted sender) client-ip=10.213.7.10; Authentication-Results: mr.google.com; spf=pass (google.com: domain of yebhavinga@gmail.com designates 10.213.7.10 as permitted sender) smtp.mail=yebhavinga@gmail.com; dkim=pass header.i=yebhavinga@gmail.com Received: from mr.google.com ([10.213.7.10]) by 10.213.7.10 with SMTP id b10mr4232038ebb.81.1331021827145 (num_hops = 1); Tue, 06 Mar 2012 00:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=YYMxYBYKGmoUqa78z1AGj16yvYwEiKZsWXw32RnQr6A=; b=rTxJmhY8a41A60ci0R/fGggN60rB+k360nTEHHqeKJ0yEogfIxiU5W7AljGymPzPEV EwnBGAs3paN+ZsOUD3PZ0fbakQBefyXEPrWtHNEUCYMlgAkB4b2MSjPP4s2iPbFULWBC 8bf8MUIavYNOC8OboG6w7quT3oQlam+OUkXLjkcH6pdhmyX5SGNG/W72AnsxC+7mxWvT KCLhmWiQ1TWUHD6CPm8ttYZvxR7ftOBRSvyubbcr8AEIxqTXjbp+BXrunfxj+2pSzT48 iJjVKckKCM+0RKy9Tv62TEGC/vRGX0cQs/D50QL+mf5gpJMTPzYKWGnowwNFAaq4lAYg y8Hg== Received: by 10.213.7.10 with SMTP id b10mr3195738ebb.81.1331021827037; Tue, 06 Mar 2012 00:17:07 -0800 (PST) Received: from [192.168.73.63] (5357DA75.cm-6-8d.dynamic.ziggo.nl. [83.87.218.117]) by mx.google.com with ESMTPS id d54sm25704911eei.9.2012.03.06.00.17.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Mar 2012 00:17:05 -0800 (PST) Message-ID: <4F55C802.8040401@gmail.com> Date: Tue, 06 Mar 2012 09:17:06 +0100 From: Yeb Havinga User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Mark Kirkwood CC: pgsql-performance@postgresql.org Subject: Re: SSD and RAID References: <4F554025.9040101@catalyst.net.nz> In-Reply-To: <4F554025.9040101@catalyst.net.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201203/63 X-Sequence-Number: 46513 On 2012-03-05 23:37, Mark Kirkwood wrote: > Which brings up the question of should it be a pair in RAID 1 or just > a singe drive? Traditionally this would have been a no brainer "Of > course you want RAID 1 or RAID 10"! However our experience with SSD > failure modes points to firmware bugs as primary source of trouble - > and these are likely to impact both drives (nearly) simultaneously in > a RAID 1 configuration. Also the other major issue to watch - flash > write limit exhaustion - is also likely to hit at the same time for a > pair of drives in RAID 1. > > What are other folks who are using SSDs doing? This is exactly the reason why in a set of new hardware I'm currently evaluating two different brands of manufacturers for the spindles (behind bbwc for wal, os, archives etc) and ssds (on mb sata ports). For the ssd's we've chosen the Intel 710 and OCZ Vertex 2 PRO, however that last one was EOL and OCZ offered to replace it by the Deneva 2 (http://www.oczenterprise.com/downloads/solutions/ocz-deneva2-r-mlc-2.5in_Product_Brief.pdf). Still waiting for a test Deneva though. One thing to note is that linux software raid with md doesn't support discard, which might shorten the drive's expected lifetime. To get some numbers I tested the raid 1 of ssd's setup for mediawear under a PostgreSQL load earlier, see http://archives.postgresql.org/pgsql-general/2011-11/msg00141.php I would recommended that for every ssd considered for production use, test the ssd with diskchecker.pl on a filesystem that's mounted the same as you would with your data (e.g. with xfs or ext4 with nobarrier), and also do a mediawear test like the one described in the linked pgsql-general threar above, especially if you're chosing to run on non-enterprise marketed ssds. regards, Yeb PS: we applied the same philosophy (different brands) also to motherboards, io controllers and memory, but after testing, we liked one IO controllers software so much more than the other so we chose to have only one. Also stream memory performance of one motherboard showed a significant performance regression in the higher thread counts that we decided to go for the other brand for all servers. -- Yeb Havinga http://www.mgrid.net/ Mastering Medical Data