Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7DCC3B5DC39 for ; Wed, 24 Aug 2011 17:11:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 48543-01-6 for ; Wed, 24 Aug 2011 20:10:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from elizabeth.gransy.com (elizabeth.gransy.com [89.187.132.199]) by mail.postgresql.org (Postfix) with ESMTP id D6995B5DC73 for ; Wed, 24 Aug 2011 17:10:29 -0300 (ADT) Received: from sq.gransy.com (localhost [127.0.0.1]) by elizabeth.gransy.com (Postfix) with ESMTP id EDB5715E4118; Wed, 24 Aug 2011 22:10:27 +0200 (CEST) Received: from 78.45.133.255 (SquirrelMail authenticated user tv@fuzzy.cz) by sq.gransy.com with HTTP; Wed, 24 Aug 2011 22:10:28 +0200 Message-ID: <7fb128a72b9945f6b905d563c67ebffc.squirrel@sq.gransy.com> In-Reply-To: <201108241942.061270@ms14.lnh.mail.rcn.net> References: <4E49B0A0.2060705@2ndQuadrant.com> <201108241848.061232@ms14.lnh.mail.rcn.net> <201108241942.061270@ms14.lnh.mail.rcn.net> Date: Wed, 24 Aug 2011 22:10:28 +0200 Subject: Re: Reports from SSD purgatory From: "Tomas Vondra" To: gnuoytr@rcn.com Cc: pgsql-performance@postgresql.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/287 X-Sequence-Number: 44734 On 24 Srpen 2011, 21:42, gnuoytr@rcn.com wrote: > > > ---- Original message ---- >>Date: Wed, 24 Aug 2011 21:32:16 +0200 >>From: pgsql-performance-owner@postgresql.org (on behalf of "Tomas Vondra" >> ) >>Subject: Re: [PERFORM] Reports from SSD purgatory >>To: gnuoytr@rcn.com >>Cc: pgsql-performance@postgresql.org >> >>On 24 Srpen 2011, 20:48, gnuoytr@rcn.com wrote: >> >>> It's worth knowing exactly what that means. Turns out that NAND >>> quality >>> is price specific. There's gooduns and baduns. Is this a failure in >>> the >>> controller(s) or the NAND? >> >>Why is that important? It's simply a failure of electronics and it has >>nothing to do with the wear limits. It simply fails without prior warning >>from the SMART. > > It matters because if it's the controller, there's nothing one can do > about it (the vendor). If it's the NAND, then the vendor/customer can get > drives with gooduns rather than baduns. Not necessarily a quick fix, but > knowing the quality of the NAND in the SSD you're planning to buy matters. OK, now I see the difference. Still, it'll be quite difficult to find out which NAND manufacturers are good, especially when the drive manufacturer may use more of them at the same time. And as David Boreham pointed out, we don't know why the drives actually failed :-( >>> Also, given that PG is *nix centric and support for TRIM is win >>> centric, >>> having that makes a big difference in performance. >> >>Windows specific? What do you mean? TRIM is a low-level way to tell the >>drive 'this block is empty and may be used for something else' - it's >> just >>another command sent to the drive. It has to be supported by the >>filesystem, though (e.g. ext4/btrfs support it). > > My point. The firmware and MS have been faster to support TRIM than *nix, > linux in particular. Those that won't/can't move to a recent kernel don't > get TRIM. Faster? Windows 7 was released on October 2009, Linux supports TRIM since February 2010. That's about 3 or 4 months difference - given that it may easily take a year to put a new OS / kernel into a production, it's negligible difference. For example most of the corporations / banks I'm working for are still using Windows XP. Don't get me wrong - I'm not blindly fighting against Windows, I just don't see how this makes the TRIM a windows-specific feature. Tomas