mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dongjun Shin" <djshin90@gmail.com>
To: "Tejun Heo" <teheo@suse.de>
Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	dwmw2@infradead.org, "Nick Piggin" <npiggin@suse.de>,
	"Jens Axboe" <jens.axboe@oracle.com>,
	"IDE/ATA development list" <linux-ide@vger.kernel.org>,
	"Jeff Garzik" <jeff@garzik.org>,
	chris.mason@oracle.com, "Matthew Wilcox" <matthew@wil.cx>
Subject: Re: about TRIM/DISCARD support and barriers
Date: Mon, 24 Nov 2008 14:40:29 +0900	[thread overview]
Message-ID: <7fe698080811232140ie896cc8m735a25261f447c47@mail.gmail.com> (raw)
In-Reply-To: <49290CEB.7070509@suse.de>

On Sun, Nov 23, 2008 at 4:57 PM, Tejun Heo <teheo@suse.de> wrote:
> Tejun Heo wrote:
>> Dongjun, the only doc I can find about ATA TRIM is the following one.
>>
>>  http://t13.org/Documents/UploadedDocuments/docs2007/e07154r3-Data_Set_Management_Proposal_for_ATA-ACS2.pdf
>>
>> And AFAICS this hasn't made into ACS yet.  Is this what you guys are
>> gonna implement and Windows7 is gonna use?
>

Sorry, I thought the trim spec has got into the final ACS, but it's not yet.
Microsoft can collaborate with SSD vendors for their internal evaluation &
feedback for Win7(with NDA between them, of course).

> Just went over it.  Matthew, if ATA trim is gonna be implemented as
> described in the above document, it will support multiple ranges per
> command.
>
> Dongjun, the above document strikes out all the latency/performance
> related stuff, which looks like the right move to me.  Most of those
> information can be extracted from access pattern by the device itself
> and exposing such optimization parameters to outside seldom works well.
>  I'm fairly sure such over complexity will end up being
> counter-optimization due to different interpretations and executions by
> different parties (be it harddrive vendors or different filesystems).
>
> So, can you please confirm that, what we eventually get is simple TRIM
> w/ multiple ranges?  Which, BTW, makes sense as it's something the
> device can't infer from the access pattern.  Also, if there still is
> wiggle room, what would be a worthy optimization is to allow TRIM
> commands to be sent together with other NCQ commands as otherwise the
> drive will have to drain all other commands to process a TRIM command
> which will be inefficient.
>

AFAIK, only the trim feature of data set management command will be included
and a single trim may contain multiple ranges. But, it's not possible to send
non-read/write command during NCQ as specified by the t13(1).

-- 
Dongjun

(1) In 4.15 of ATA8-ACS,
"If the device receives a command that is not an NCQ command while NCQ commands
are in the queue, then the device shall return command aborted for the
new command
and for all of the NCQ commands that are in thequeue."

  reply	other threads:[~2008-11-24  5:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-23  4:46 Tejun Heo
2008-11-23  7:11 ` Tejun Heo
2008-11-23  7:57   ` Tejun Heo
2008-11-24  5:40     ` Dongjun Shin [this message]
2008-11-24  5:45       ` Tejun Heo
2008-11-24  5:57       ` James Bottomley
2008-11-23 12:35   ` Matthew Wilcox
2008-11-23 13:39     ` David Woodhouse
2008-11-23 22:52       ` James Bottomley
2008-11-24  9:03         ` David Woodhouse
2008-11-24 18:42           ` James Bottomley
2008-11-24 18:52             ` David Woodhouse
2008-11-24 18:57               ` Jens Axboe
2008-11-24 19:08                 ` James Bottomley
2008-11-25  9:16                   ` Jens Axboe
2008-11-24 19:09               ` James Bottomley
2008-11-25  3:28           ` Matthew Wilcox
2008-11-25  9:15             ` Jens Axboe
2008-11-24  3:01       ` Theodore Tso

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=7fe698080811232140ie896cc8m735a25261f447c47@mail.gmail.com \
    --to=djshin90@gmail.com \
    --cc=chris.mason@oracle.com \
    --cc=dwmw2@infradead.org \
    --cc=jeff@garzik.org \
    --cc=jens.axboe@oracle.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=npiggin@suse.de \
    --cc=teheo@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®