Flash disks and FFS layout heuristics




I've laid my hands on a "M-Tron MOBI3000 32GB" flash disk (2.5" format,
it'll be in my laptop before long :-)

Here is a naive benchmark sequence, comparing it to a WD Raptor
(<WDC WD360GD-00FNA0 35.06K35>)

Flash Disk
---------------------------------------------------------------
Empty fsck: 0.83 2.47 -66%
restore -rf 839 1251 -33%
loaded fsck: 10.34 78.81 -87%
dump 0f /dev/null: 563.21 1094.91 -49%
---------------------------------------------------------------

So far so good, it's clearly the seektime that dominates the
flash-advantage.

But this reproducible observation by fsck concerns me a bit:

Flash: (205727 frags, 896270 blocks, 1.4% fragmentation)

Disk: (197095 frags, 1193944 blocks, 1.1% fragmentation)

I might indicate that the flash is fast enough to confuse some of
FFS's layout heuristics.

Any aspiring filesystems hackers should start to consider the
implications for filesystemlayout, if there is in essence no
seek-time penalty for reads and a fair seek pentalty for writes.

Poul-Henning

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@xxxxxxxxxxx | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Flash Memory Fragmentation -- Myths and Facts
    ... Flash cards unlike hard drives do not have movable parts so ... Fragmentation has a serious impact on flash card performance ... defragmentation is worthwhile once in a blue moon. ...
    (rec.photo.digital)
  • Re: XD picture card reformatting?
    ... memory in the first place) so will simply deleting the files, ... Deleting files does not prevent fragmentation, ... pool of free sectors. ... parts on a flash card that need to be moved to a different part of the ...
    (rec.photo.digital)
  • Re: Anyone interested in another public access system
    ... Bill Gunshannon wrote: ... that the 293 frags included unused areas of the files system that are ... The 0.0% fragmentation I would take to mean the ... If you don't have contiguous free space you can't allocate contiguous space to put files in! ...
    (comp.os.vms)
  • Re: Anyone interested in another public access system
    ... that the 293 frags included unused areas of the files system that are ... The 0.0% fragmentation I would take to mean the ... when computing filesystem performance. ...
    (comp.os.vms)
  • Re: ipfilter "flags s keep state" question
    ... > TCP packets allow fragmentation by intermediate routers ... I've read the ipf HOWTO too. ... I know tcp packets can get fragmented. ... frags" I really like to know when or when not to use "keep frags" ...
    (freebsd-questions)