Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5657B632401 for ; Mon, 22 Feb 2010 03:11:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 79854-03 for ; Mon, 22 Feb 2010 07:11:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from adonis.tweakers.net (adonis.tweakers.net [213.239.154.11]) by mail.postgresql.org (Postfix) with ESMTP id D28A463161C for ; Mon, 22 Feb 2010 03:11:02 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by adonis.tweakers.net (Postfix) with ESMTP id 77BD95DC090 for ; Mon, 22 Feb 2010 07:52:48 +0100 (CET) Received: from adonis.tweakers.net ([127.0.0.1]) by localhost (adonis.tweakers.net [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 06338-06 for ; Mon, 22 Feb 2010 07:52:42 +0100 (CET) Received: from [192.168.1.33] (82-169-23-111.ip.telfort.nl [82.169.23.111]) by adonis.tweakers.net (Postfix) with ESMTPSA id 9FF455DC06E for ; Mon, 22 Feb 2010 07:52:42 +0100 (CET) Message-ID: <4B822DFF.50501@tweakers.net> Date: Mon, 22 Feb 2010 08:10:55 +0100 From: Arjen van der Meijden User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: SSD + RAID References: <201002211410.o1LEAht05941@momjian.us> <4B814920.1040204@cheapcomplexdevices.com> <4B82187A.7060604@2ndquadrant.com> In-Reply-To: <4B82187A.7060604@2ndquadrant.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.2 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201002/293 X-Sequence-Number: 37714 On 22-2-2010 6:39 Greg Smith wrote: > But the point of this whole testing exercise coming back into vogue > again is that SSDs have returned this negligent behavior to the > mainstream again. See > http://opensolaris.org/jive/thread.jspa?threadID=121424 for a discussion > of this in a ZFS context just last month. There are many documented > cases of Intel SSDs that will fake a cache flush, such that the only way > to get good reliable writes is to totally disable their writes > caches--at which point performance is so bad you might as well have > gotten a RAID10 setup instead (and longevity is toast too). That's weird. Intel's SSD's didn't have a write cache afaik: "I asked Intel about this and it turns out that the DRAM on the Intel drive isn't used for user data because of the risk of data loss, instead it is used as memory by the Intel SATA/flash controller for deciding exactly where to write data (I'm assuming for the wear leveling/reliability algorithms)." http://www.anandtech.com/cpuchipsets/intel/showdoc.aspx?i=3403&p=10 But that is the old version, perhaps the second generation does have a bit of write caching. I can understand a SSD might do unexpected things when it loses power all of a sudden. It will probably try to group writes to fill a single block (and those blocks vary in size but are normally way larger than those of a normal spinning disk, they are values like 256 or 512KB) and it might loose that "waiting until a full block can be written"-data or perhaps it just couldn't complete a full block-write due to the power failure. Although that behavior isn't really what you want, it would be incorrect to blame write caching for the behavior if the device doesn't even have a write cache ;) Best regards, Arjen