lkml.org 
[lkml]   [2009]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Discard support (was Re: [PATCH] swap: send callback when swap slot is freed)
    James Bottomley wrote:
    >
    > This means you have to drain the outstanding NCQ commands (stalling the
    > device) before you can send a TRIM. If we do this for every discard,
    > the performance impact will be pretty devastating, hence the need to
    > coalesce. It's nothing really to do with device characteristics, it's
    > an ATA protocol problem.
    ..

    I don't think that's really much of an issue -- we already have to do
    that for cache-flushes whenever barriers are enabled. Yes it costs,
    but not too much.

    The current problem is that the only existing SSDs in the wild with TRIM,
    take 100s of milliseconds per TRIM, mostly regardless of the amount being
    TRIMmed. Sure, some TRIMs take only 10-20ms, and very large ones (millions
    of sectors) can take 1-2 seconds, but most are in the 100ms range.

    Cheers


    \
     
     \ /
      Last update: 2009-08-15 15:25    [W:4.495 / U:0.556 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site