A few things all of us are probably interested in:
- SSD Write Amplification:
http://www.extremetech.com/article2/0,2845,2329594,00.asp
- Journaling and write performance in ext4:
http://thunk.org/tytso/blog/2009/03/01/ssds-journaling-and-noatimerelatime/
The bottom-line as far as wear and tear: vfat is basically the same as a journaled FS from a wear-leveling standpoint, both are worst case. Thankfully vfat, being the worst case, forced the manufacturers to deal with the problem early. So all those outlandish claims I made about the world being flat and NTFS on thumbdrives are unfounded. Ted’s evidence does not speak to the amount of effort it takes to create an NTFS thumbdrive in Windows, however
Feed
Comment by Theodore Tso
#1 Monday, March 2, 2009, 8:26 am o'clock |
The bottom-line as far as wear and tear: vfat is basically the same as a journaled FS from a wear-leveling standpoint, both are worst case.
Well….. not necessarily. You’re overstating the case I made. Many flash drives are only doing wear leveling at the erase block level, and so they suffer from the write amplification effect — an update of a single 4k block in an 128k region may still require the update and rewrite on the entire 128k erase block.
VFAT is better suited for ‘dumb’ first generation flash drives because if you are writing a single large file, you only need to update one, maybe two erase block’s in the FAT area, plus the space for the large file, plus the directory entry. So for digital cameras, and for moving files around, thumb drives and CF/SD cards work just fine.
Both ext2 and ext3 write more data to different parts of the disk. For large files, what they write will likely be more efficient than FAT in terms of number of blocks modified on disk (the FAT table is astonishingly inefficient, since you have to modify 4 bytes for every 8-32k of data blocks that are modified), but the writes are scattered across the disk. So for Flash drives that aren’t doing wear-leveling at the 512 byte or 4k block level, but rather at the 128k erase block level, the write amplification effect will cause the flash to be worn down much more rapidly than you might expect simply looking at the number of blocks written. This isn’t an issue for the Intel SSD’s, but it almost certainly is an issue for the $9.95 thumb drive for sale at grocery store hanging on the rack near the checkout counter next to the chewing gum.
And before you ask, NTFS has similar issue for a large file (say, a raw camera image), it probably requires fewer metadata block writes than FAT, but they aren’t located close together, which means there will be a similar write amplification issue.
Comment by spencer
#2 Sunday, March 15, 2009, 9:49 pm o'clock |
Thanks for elaborating Ted.
Would an accurate “short and sweet” description be (?):
FAT/VFAT files and directories are less distributed than it’s counterparts like ext234/NTFS. Therefore FAT is less likely to suffer from the same write amplification problems.