public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Niemayer <niemayer@isg.de>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: xfs@oss.sgi.com
Subject: Re: XFS support for TRIM / blkdev_issue_discard?
Date: Mon, 20 Apr 2009 20:45:30 +0200	[thread overview]
Message-ID: <49ECC2CA.20108@isg.de> (raw)
In-Reply-To: <49EB487C.1020205@sandeen.net>

Eric Sandeen wrote:
> Dave Chinner wrote:
>> I did some initial work on tracking extents being freed, but then
>> the TRIM request morphed into a "tell the largest free space around
>> the area just freed" and that is much harder to do than simply to
>> issue a "we just freed this bit" command.
> 
> FWIW, ext[34] is still doing it block by block.  At least for SSDs, I
> think that's fine, isn't it? 

Well, theoretically, if there was a SSD that on one hand was sophisticated
enough to provide TRIM support, but would otherwise not use an intelligent
controller or cache memory and thus could pre-erase blocks only if the
TRIM was applied to a whole erase block at once, then even a SSD could
benefit from "telling the largest free space around the area just freed".

In practice, I don't think there will ever be a SSD like that on the market,
the primitive ones do not support TRIM, the sophisticated ones will
keep book of unused sectors internally and will notice when a whole erase-block
became empty and thus ready for proactive erasing.

And I did not find any requirement or hint to "tell the largest free space around
the area just freed" in
http://www.t13.org/Documents/UploadedDocuments/docs2008/e07154r6-Data_Set_Management_Proposal_for_ATA-ACS2.doc

Regards,

Peter Niemayer

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2009-04-20 18:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-31  5:30 [GIT PULL] XFS update for 2.6.30 Felix Blyakher
2009-04-02 16:26 ` Felix Blyakher
2009-04-03 16:52   ` Linus Torvalds
2009-04-03 17:02     ` Linus Torvalds
2009-04-03 17:41       ` Felix Blyakher
2009-04-04  1:19         ` david
2009-04-04  1:54           ` Felix Blyakher
2009-04-14 14:44 ` XFS support for TRIM / blkdev_issue_discard? Peter Niemayer
2009-04-14 18:32   ` Felix Blyakher
2009-04-15  9:43     ` Peter Niemayer
2009-04-15 11:58     ` Peter Niemayer
2009-04-17 16:09     ` Peter Niemayer
2009-04-17 16:50       ` Eric Sandeen
2009-04-19  8:19     ` Dave Chinner
2009-04-19 15:51       ` Eric Sandeen
2009-04-20 18:45         ` Peter Niemayer [this message]
2009-04-20 19:11           ` Martin K. Petersen

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=49ECC2CA.20108@isg.de \
    --to=niemayer@isg.de \
    --cc=sandeen@sandeen.net \
    --cc=xfs@oss.sgi.com \
    /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