* Re: [PATCH 2/2] sd: WRITE SAME(16) / UNMAP support
[not found] ` <yq1pr85scs4.fsf@sermon.lab.mkp.net>
@ 2009-10-30 16:02 ` Ric Wheeler
0 siblings, 0 replies; only message in thread
From: Ric Wheeler @ 2009-10-30 16:02 UTC (permalink / raw)
To: Martin K. Petersen
Cc: dgilbert, hch, axboe, matthew, linux-scsi, linux-fsdevel
On 10/30/2009 12:53 AM, Martin K. Petersen wrote:
>>>>>> "Doug" == Douglas Gilbert<dgilbert@interlog.com> writes:
>>>>>>
> Doug> And if both are supported by the logical unit, the patch prefers
> Doug> UNMAP?
>
> Yes.
>
> SBC states that if the device reports MAXIMUM UNMAP LBA COUNT> 1 and
> MAXIMUM UNMAP DESCRIPTOR COUNT> 1 then the device supports UNMAP. And
> in that case that's what I'll issue. In all other cases I'll send out
> WRITE SAME(16). I believe that approach is what's currently considered
> best practice.
>
This sounds like the correct thing to do.
We should at the same time try to unify the file system mount options so
we roll out the testing in a careful way.
Specifically, I would suggest that we default to "not" issuing discards
by default and that we try to use the same mount option for any file
system that supports barrier discards. My worry is that we will fry
SSD's (like the reported issues with the Intel SSD's and Windows 7) or
have horrific performance on arrays that are not tuned for fine grained
discards :-)
Ric
^ permalink raw reply [flat|nested] only message in thread