Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0DA58B5DDEA for ; Wed, 24 Aug 2011 16:55:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 99297-02 for ; Wed, 24 Aug 2011 19:55:32 +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 88B23B5DD1D for ; Wed, 24 Aug 2011 16:54:48 -0300 (ADT) Received: from sq.gransy.com (localhost [127.0.0.1]) by elizabeth.gransy.com (Postfix) with ESMTP id 185C515E4118; Wed, 24 Aug 2011 21:54:48 +0200 (CEST) Received: from 78.45.133.255 (SquirrelMail authenticated user tv@fuzzy.cz) by sq.gransy.com with HTTP; Wed, 24 Aug 2011 21:54:48 +0200 Message-ID: <7f2f649f65217953bec5b3f3ca9c6998.squirrel@sq.gransy.com> In-Reply-To: References: <4E49B0A0.2060705@2ndQuadrant.com> <201108241848.061232@ms14.lnh.mail.rcn.net> Date: Wed, 24 Aug 2011 21:54:48 +0200 Subject: Re: Reports from SSD purgatory From: "Tomas Vondra" To: "Merlin Moncure" Cc: "Tomas Vondra" , gnuoytr@rcn.com, 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/286 X-Sequence-Number: 44733 On 24 Srpen 2011, 21:41, Merlin Moncure wrote: > On Wed, Aug 24, 2011 at 2:32 PM, Tomas Vondra wrote: >> On 24 Srpen 2011, 20:48, gnuoytr@rcn.com wrote: >>> 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). > > Well, it's a fair point that TRIM support is probably more widespread > on windows. AFAIK the only versions that supports it natively are Windows 7 and Windows Server 2008 R2 - with other versions you're stuck with command-line tools equal to wiper.sh or hdparm. So I don't see a significant difference here - with a reasonably new systems (at least kernel 2.6.33), the support is about the same. Obviously there more machines with Windows, especially in the field of desktop/laptop, but that does not make the TRIM Windows-specific I guess. Most of them runs old versions (without TRIM support) anyway. Tomas