Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 21A4B19DE830 for ; Wed, 7 Mar 2012 05:45:34 -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 1S5DR6-0006eE-N4 for pgsql-performance@postgresql.org; Wed, 07 Mar 2012 09:45:33 +0000 Received: by eekc41 with SMTP id c41so2227777eek.19 for ; Wed, 07 Mar 2012 01:45:19 -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=0ot69ftT9PGVdncvJJjaTL7Lnj+7ZW9CfuTLzlvEnIY=; b=m9kZ4STSLgexGSs7lwfQkgIlHGF1XXM3UonU6U2GqY059nU63b3WCXHLItU/7pBe3k ArlxuNrGbh/Qs++HgwE6X2vhUsdnOiKdIBuSC/vYY6g3Pz9GMFZm8cEvzq88x1NidsKi Jp92yxneC2VgV7Ii3OfRp4XzVCokJfyTZctKbGPVYH/USyfFbol7ot3dGIXXc4J4X1uE ZSbCEuCsB/aMdMcHM5WdTbELZk2tdKWt6zjVSAVr40wq+wCJVRF2TBCnKQwNu69gdicw 9Fz/PqpfSEZFAEon4372yLYQQaN+KMEgyRFrMH3VbpOdQR1y0RIyvn2OjBqS2Fb7zNFr wRsQ== Received: by 10.213.36.2 with SMTP id r2mr411622ebd.283.1331113519107; Wed, 07 Mar 2012 01:45:19 -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 y11sm24297501eem.3.2012.03.07.01.45.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Mar 2012 01:45:18 -0800 (PST) Message-ID: <4F572E25.1000307@gmail.com> Date: Wed, 07 Mar 2012 10:45:09 +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> <4F55C802.8040401@gmail.com> <4F56ADA5.4040902@catalyst.net.nz> In-Reply-To: <4F56ADA5.4040902@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/71 X-Sequence-Number: 46521 On 2012-03-07 01:36, Mark Kirkwood wrote: > On 06/03/12 21:17, Yeb Havinga wrote: >> >> >> 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 >> >> > > Right, which is a bit of a pain - we are considering either formatting > the drive with less capacity and using md RAID 1 or else doing the > mirror in LVM to enable a working discard/trim. When I measured the write durability without discard on the enterprise disks, I got numbers that in normal production use would outlive the lifetime of the servers. It would be interesting to see durability numbers for the desktop SSDs, even when partitioned to a part of the disk. regards, Yeb Havinga