From: Bernd Schubert <bernd.schubert@fastmail.fm>
To: Bar Ziony <bartzy@gmail.com>
Cc: David Brown <david.brown@hesbynett.no>, linux-raid@vger.kernel.org
Subject: Re: Does mdadm supports TRIM command to SSDs?
Date: Wed, 11 Jul 2012 18:44:08 +0200 [thread overview]
Message-ID: <4FFDAD58.8090101@fastmail.fm> (raw)
In-Reply-To: <CAF-9JeiKvs+_aXF0gCJxLkGJsVqnqhBvcW7q2UyyDLSFoysxLQ@mail.gmail.com>
On 07/11/2012 06:22 PM, Bar Ziony wrote:
> If they are connected to a regular LSI controller they won't get TRIM
> commands... How do you know they need TRIM?
>
We discussed this with LSI, their answer from generic support was
basically nonsense, IMHO. This is a SAS Raid Controller, but after we
run into the trim issue for the first time, we are using it in non-raid
mode (flashed the corresponding fw). After we did so, we can trim with
sg_unmap, but as we don't know which blocks are in use by the
filesystem, we obviously have to trim the entire disk. And that means we
have to recreate LVM + file-system every time trimming is required.
Basic problem of those LSI controllers is that they don't announce their
trimming capabilities via scsi VPD or Read Capacity (16), which the
linux-scsi layer uses to query the disk for trim support. So the actual
problem is the LSI SATA-to-SAS translation, which doesn't seem to let
those important information through.
I already thought about writing a kernel patch to set those values vai
sysfs, but it probably will not get accepted, as setting the wrong
values would result in data corruption after trimming...
We are an HPC development group and our cluster is used sometimes for
benchmarking. Once trimming is required, write performance of those
disks goes down by about 50%. After manual sg_unmap performance is fine
again...
Cheers,
Bernd
prev parent reply other threads:[~2012-07-11 16:44 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
2012-07-11 16:22 ` Bar Ziony
2012-07-11 16:44 ` Bernd Schubert [this message]
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=4FFDAD58.8090101@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.