All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernd Schubert <bernd.schubert@fastmail.fm>
To: David Brown <david.brown@hesbynett.no>
Cc: Bar Ziony <bartzy@gmail.com>, linux-raid@vger.kernel.org
Subject: Re: Does mdadm supports TRIM command to SSDs?
Date: Wed, 11 Jul 2012 18:21:41 +0200	[thread overview]
Message-ID: <4FFDA815.4080006@fastmail.fm> (raw)
In-Reply-To: <4FFD632F.3060407@hesbynett.no>

On 07/11/2012 01:27 PM, David Brown wrote:
> On 07/11/2012 12:55 AM, Bar Ziony wrote:
>> Hi,
>>
>> I wasn't able to find any information about it after searching for
>> hours - Does mdadm supports sending the TRIM command to SSDs, if using
>> the right filesystem with the 'discard' flag?
>> If it does support it, from what kernel version it is?
>>
>> Thank you,
>> Bar.
> 
> The big question here is /why/ would you want TRIM support?  In many
> circumstances it leads to slower operations, and for SSDs from the past
> couple of years it is almost entirely superseded by the SSD's own
> garbage collection.
> 
> So while there certainly has been some work done on TRIM and md raid, it
> is not a priority as it is of questionable benefit.  You might find some
> operations are a little faster for older SSDs if you use TRIM, but your
> metadata operations will be a lot slower.
> 
> Your best bet is just to make sure you only buy SSDs that are at least
> half decent, and don't worry about TRIM.


Well, we do have not-so-old Intel 510 SSDs on our institute cluster and
these SSDs really need trim. And it gives us quite some headache for
some reason (reason is an annoying LSI SAS controller they are connected
to).


Cheers,
Bernd

  parent reply	other threads:[~2012-07-11 16:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10 22:55 Does mdadm supports TRIM command to SSDs? Bar Ziony
2012-07-11  0:43 ` Igor M Podlesny
2012-07-11  1:08   ` Igor M Podlesny
2012-07-11  7:59     ` Bar Ziony
2012-07-11 11:27 ` David Brown
2012-07-11 11:49   ` Bar Ziony
2012-07-11 14:54     ` David Brown
     [not found]   ` <CAA8Hn0eWuHJy9ivmvUVc-m=2t+L2_ACTy52tGVOYnFy97XFTXA@mail.gmail.com>
2012-07-11 15:08     ` David Brown
2012-07-11 16:21   ` Bernd Schubert [this message]
2012-07-11 16:22     ` Bar Ziony
2012-07-11 16:44       ` Bernd Schubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FFDA815.4080006@fastmail.fm \
    --to=bernd.schubert@fastmail.fm \
    --cc=bartzy@gmail.com \
    --cc=david.brown@hesbynett.no \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.