Log-structured file systems: There's one in every SSD
Log-structured file systems: There's one in every SSD
Posted Sep 18, 2009 21:02 UTC (Fri) by Yorick (guest, #19241)Parent article: Log-structured file systems: There's one in every SSD
disadvantage with SSDs, assuming the firmware algorithms were tuned for NTFS and with
overwriting in mind? If the file system prefers writing updates elsewhere as long as there is
unused space, I can imagine that will cause trouble for the poor FTL.
Posted Sep 18, 2009 21:36 UTC (Fri)
by ikm (guest, #493)
[Link] (6 responses)
I guess there are some people out there who never ever happen to use their drive to full capacity (imagine a person using Word to type documents and IE to surf the web, and doing nothing more than that) -- I guess that's what Valerie has been referring to. In-place filesystems should be beneficial to such kind of people, of course.
Btw, I strongly happen to believe that most SSDs would mark blocks as free if they are written as zeroes -- just because full NTFS format would mark all blocks as used otherwise.
Posted Sep 21, 2009 16:14 UTC (Mon)
by nye (subscriber, #51576)
[Link] (5 responses)
I'm getting pretty tired this afternoon - am I missing something obvious?
Posted Sep 21, 2009 16:35 UTC (Mon)
by farnz (subscriber, #17727)
[Link]
It takes a little intelligence on the part of the SSD designer. Reads from a logical block not currently mapped to any physical flash must be defined as returning all zeros; once you've done that, you can treat writing a logical block with all zeros as a "free" operation, not a write. The "free" operation just marks that logical block as not mapped to any physical flash.
You then know you don't need to hang onto the data that used to be important to that logical block; initially, it's still there, but when you garbage collect the physical block that used to contain the bytes from that logical block, you don't bother copying the data.
Posted Sep 21, 2009 20:22 UTC (Mon)
by ikm (guest, #493)
[Link] (3 responses)
Because it's the same thing. There's no point in actually storing zeroes -- you could just mark the block as unused instead, so if later read, it would read back as zeroes.
> When you read back from it you might find that it's been re-used in the meantime and filled with something else
SSD maintains a mapping between logical disk blocks and physical flash blocks. If a logical block is marked as unmapped, it just doesn't use any physical space at all. SSD can't reuse your logical block since it doesn't "use" logical blocks -- it uses physical flash blocks.
> the SSD firmware would complain that the (logical) block you are requesting doesn't currently map to any (physical) block.
It would return zeroes, since the block is empty (unmapped). And that's the intent of it.
Posted Sep 22, 2009 11:08 UTC (Tue)
by nye (subscriber, #51576)
[Link] (2 responses)
But thanks to both for making it explicit.
Posted Oct 6, 2009 16:45 UTC (Tue)
by sethml (guest, #8471)
[Link] (1 responses)
Posted Oct 6, 2009 19:59 UTC (Tue)
by ikm (guest, #493)
[Link]
Posted Sep 18, 2009 22:02 UTC (Fri)
by paravoid (subscriber, #32869)
[Link] (3 responses)
Posted Sep 19, 2009 6:44 UTC (Sat)
by butlerm (subscriber, #13312)
[Link] (2 responses)
Posted Sep 22, 2009 15:15 UTC (Tue)
by k8to (guest, #15413)
[Link]
Well, that's my guess, since it makes the most sense.
Posted Sep 25, 2009 14:38 UTC (Fri)
by knweiss (guest, #52912)
[Link]
Log-structured file systems: There's one in every SSD
Log-structured file systems: There's one in every SSD
Log-structured file systems: There's one in every SSD
Log-structured file systems: There's one in every SSD
Log-structured file systems: There's one in every SSD
I think the bit that I was somehow missing was that 'reading' from an unmapped block should just return all zeroes.
Log-structured file systems: There's one in every SSD
slow. Imagine if deleting a 10gb file took several minutes - that would be rather annoying.
Too bad SATA doesn't have a "write a million zeros" command. Of course, that's effectively
what a proper TRIM would do.
Log-structured file systems: There's one in every SSD
Log-structured file systems: There's one in every SSD
Log-structured file systems: There's one in every SSD
100% capacity - it takes too long to kick things out of the cache, just when
you need to put something new in.
Log-structured file systems: There's one in every SSD
Log-structured file systems: There's one in every SSD
