linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 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

only message in thread, other threads:[~2009-10-30 16:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1256873409-12668-1-git-send-email-martin.petersen@oracle.com>
     [not found] ` <1256873409-12668-3-git-send-email-martin.petersen@oracle.com>
     [not found]   ` <4AEA6B76.2010303@interlog.com>
     [not found]     ` <yq1pr85scs4.fsf@sermon.lab.mkp.net>
2009-10-30 16:02       ` [PATCH 2/2] sd: WRITE SAME(16) / UNMAP support Ric Wheeler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).