An f2fs teardown
An f2fs teardown
Posted Oct 12, 2012 8:21 UTC (Fri) by cmccabe (guest, #60281)Parent article: An f2fs teardown
I'm a little disturbed by the many arbitrary low limits in the filesystem. 16 TB max? Less than 4 TB max for a file? Timestamps only up to 2038?
I mean, sure, good design requires tradeoffs. But I thought the point of this filesystem was that it would become some kind of long-lived standard for how we accessed embedded flash devices, sort of like how FAT32 is now. We would probably not even be talking about replacing FAT32 on flash devices, despite its many inefficiencies and limitations, if it didn't have the 2TB limit.
Or am I misreading this, and it's simply about avoiding the FAT tax and getting some additional performance in the bargain?
Posted Oct 12, 2012 16:06 UTC (Fri)
by Aissen (subscriber, #59976)
[Link] (4 responses)
The thing I don't understand, is why work isn't done to make btrfs fit this use case. It already has less write amplification than ext4 or xfs due to it's COW nature (I think Arnd Bergmann did some research on that). It would use the years of experience and higher performance of btrfs (vs a newly developed filesystem). It would also fit the Linux philosophy of running on anything from the tiniest devices to TOP500 computers.
Is it because btrfs as a high CPU overhead ? Consumes lots of disk space ? Or just because every btrfs developer is working on "big data" server-side use cases ?
Posted Oct 14, 2012 18:38 UTC (Sun)
by cmccabe (guest, #60281)
[Link] (3 responses)
It's not obvious that btrfs is the best choice for SSDs. Ted T'so posted some information on this earlier: http://lwn.net/Articles/470553/
There is currently some work going into btrfs to make it a better match for SSDs. That would probably make an interesting LWN article of its own. Also keep in mind that the type of SSD you see on a desktop is much different than what you see in a mobile phone. The firmware is much fancier and so an optimization for one may be a pessimization for the other.
Posted Oct 15, 2012 8:18 UTC (Mon)
by Aissen (subscriber, #59976)
[Link]
I didn't use the work "SSD", and that's because (as you said) it might refer to different things. I talked about eMMCs and SD cards, which are the target use case of f2fs, and used in mobile phones.
Posted Oct 17, 2012 14:26 UTC (Wed)
by arnd (subscriber, #8866)
[Link] (1 responses)
On a lot of flash devices, btrfs starts out significantly faster than ext4 after a fresh mkfs, but it's possible that btrfs performance degrades more as the file system fragments with aging. I don't have any data to back that up though.
Posted Nov 16, 2012 15:33 UTC (Fri)
by oak (guest, #2786)
[Link]
Posted Oct 16, 2012 18:22 UTC (Tue)
by tomstdenis (guest, #86984)
[Link] (4 responses)
Let's look at your typical use case [e.g. cell phone]. Max download speeds are in the 5-50Mbit/sec range realistically. It'd take 2 days of straight downloading at 50Mbit/sec constantly to fill that up.
If that were an 720p quality video it'd play for 4+ days straight...
Posted Oct 17, 2012 18:13 UTC (Wed)
by intgr (subscriber, #39733)
[Link] (1 responses)
Famous last words.
2GB max for a file wasn't a problem in 1996 when they designed FAT 32, either. It would take over 5 days to fill that over a 33.6 kbaud modem in those days.
Now I can plug an HDMI-capable cellphone into a 1080p TV and stream multi-gigabyte Bluray rips over Wi-Fi. Yet I can't store them on the SD card because someone thought "it would never be a problem".
Posted Oct 28, 2012 17:20 UTC (Sun)
by khim (subscriber, #9252)
[Link]
This is interesting comment. Note that FAT32 was explicitly designed as stop-gap solution for Windows96 (and then retrofitted into Windows95OSR2 when Windows96 become first Windows97, then Windows98). Long-term solution was supposed to be Windows 2000 (and later Windows XP) and it worked like a charm. But then FAT32 was used for totally unrelated task (USB-sticks) and this is where it's limitation become problematic... and since Microsoft wants to monopolize this market, too instead of FAT32X we've gotten exFAT... which is, of course, not supported by many-many things because it's implementation is not free because exFAT is heavily patented. Moral? F2FS limitations are fine for what's it's designed for, but if we'll try to use it for some unrelated tasks... we may be in trouble.
Posted Oct 18, 2012 4:12 UTC (Thu)
by cyanit (guest, #86671)
[Link] (1 responses)
Not to mention the fact that files can be sparse.
Posted Oct 18, 2012 14:23 UTC (Thu)
by arnd (subscriber, #8866)
[Link]
An f2fs teardown
An f2fs teardown
> done to make btrfs fit this use case. It already
> has less write amplification than ext4 or xfs
> due to it's COW nature (I think Arnd Bergmann
> did some research on that).
An f2fs teardown
In some use cases, btrfs might be the best choice, according to Arnd's year old research:
http://www.youtube.com/watch?feature=player_detailpage&... (wasn't able to find the updated slides).
An f2fs teardown
An f2fs teardown
An f2fs teardown
An f2fs teardown
An f2fs teardown
An f2fs teardown
An f2fs teardown