Samsung Creates New File System F2Fs For Linux & Android
sfcrazy writes "Samsung has created a new Linux file system called F2FS. Jaegeuk Kim of Samsung writes on the Linux Kernel Mailing List: F2FS is a new file system carefully designed for the NAND flash memory-based storage devices. We chose a log structure file system approach, but we tried to adapt it to the new form of storage. Also we remedy some known issues of the very old log structured file system, such as snowball effect of wandering tree and high cleaning overhead."
While the primary benefit will initially be for Android devices, this will be great news for solid state drives as well. Great job Samsung!
I don't think Samsung would've created this if Android wasn't a huge driver behind their mobile success.
Glad to see proof that Samsung does innovate and not steal everything from AAPL like all Apple Fanboys think.
Karma: Bad
Commercial hardware companies contributing to open-source and the kernel, I mean.
It’s nice to see that Linux and the open-source philosophy more and more just is generally accepted.
Let's hope it.s because they have seen the advantages of humans working together, helping each other out... and not just for nefarious dog-eat-dog (aka capitalist aka "free market" aka law of the jungle*) purposes.
* Don’t worry. I know they're not supposed to be the same. The point I want to make, is that nowadays it gets all used to describe the same thing.
Maybe they can handle the case when multiple databases
are updated and the flash chip firmware goes into seconds of
Internal processing and reorganization.
(somehow it works worse with other brands of flash)
That's the beauty of the open source model. People and businesses contribute things that benefit them directly, but they benefit everyone indirectly. Large companies don't contribute to the Linux kernel to be nice guys, they generally contribute code and patches to benefit their own products and systems. Their contributions benefit everyone, however.
Yah on ways to destroy Apple.
by TheSpoom (715771) Uncaring Linux user here. I have nothing to add to this but please continue. *munches popcorn*
Watch out, Apple.. we have a FILE SYSTEM!!!
"I like to lick butts!" by MobileTatsu-NJG (#32700246) (Score:5, Informative)
to Cupertino and Redmond.
Hope Apple wasn't planning on using this in their iPads...
Peter predicted that you would "deliberately forget" creation 2000 years ago...
Hands up all those who saw the liower case s at the end of F2Fs and thought that it meant it was a plural of F2F which is presumably a fighter plane made by Grumman
No. SSDs present themselves to the OS as contiguous block devices. Filesystems intended for bare NAND flash like jffs(2), yaffs, and this new F2Fs would be totally useless for SSDs. They're intended for bare NAND, which SSDs are not.
You're wrong
f2fs work on top of block devices. f2fs sends TRIM (ATA command) down to the device. Bare NAND flash doesn't grok ATA commands.
Bogus
I would argue that anything is better than FAT for the NAND storage. Under FAT for example: Taking a picture with the FAT-formated camera can corrupt non-related files for some reason, if the camera is low on power. Entire music collections can get lost, when the battery in the FAT-formated phone went out during the write process. Anything better than FAT.
~ Best man at your service.
...that iApple is forbidden from using/(stealing) this code.
Watch out, Apple.. we have a FILE SYSTEM!!!
You know who else had a filesystem?...
the preceding comment is my own and in no way reflects the opinion of the Joint Chiefs of Staff
They have added necessary functionality no one in the Linux world gave a shit about implementing. This was a huge hole in competing with Apple and Microsoft in mobile devices.
So far, they're about $1,000,000,000 in the hole...
My first reaction was "Is this to replace FAT?" Then I read about "log files" and I wonder if this is essentially a file system for more efficient logging. The article and the mailing list message seem to be somewhat empty in that regard. "Hey, there's a new file system..." That's about the size of it. So what's it about?
It would be interesting if there were an improvement to FAT and it somehow ended up as an alternative in consumer devices... but then again, how to get it onto Windows machines? "driver software" I suppose...
No, the more I think about it, the more I believe it's a limited purpose file system intended to improve something about internal record keeping in embedded Linux devices.
since their hardware/software probably already deals directly with NAND flash chips inside the SOC.
Actually you should say "Samsung-ssi" or "Samsung sunsengnim" in Korean. The -san is a Japanese thing. :)
Um, Samsung is a Korean company. -san is not the right way to refer to them.
but how do you make a file system look like an iPhone?
that you think they care.
When they really, really, don't. They solved this issue before the first iPhone came out.
and slowly the Linux world catches up. The next thing will be vendors being able to deal with raw NAND in software instead
of having to buy ATA controller chips. The thing is, this is such a HUGE market that portable device development is starting to
directly influence how Linux will evolve. Power management in all of its forms is another big can of worms.
While the primary benefit will initially be for Android devices, this will be great news for solid state drives as well. Great job Samsung!
Before you go congratulating them on a great job, remember this is the second time they did this. The original attempt was called Robust File System. It was an abortion based on FAT16/32 with a duplicated file allocation table and some sort of journalling hacked on top.
It was claimed to be optimised for NAND devices and all that other good stuff, but the community quickly came to rename it Really Fucking Slow.
This file system was so slow that on the original Galaxy S the kernel would think software locked up while writing to the disk and prompt the user to force close the device. Search for "lagfix" if you're interested in what a disaster this was. There were users world wide trying to find fixes for the slow system performance, and the fix was often in the form of a kernel which supported ext4 or yaffs and a utility which converted the entire /system and /data partitions in the phone to the more common file systems.
I don't have high hopes in Samsung's competence here.
It looks to me like most the problems they are solving have already been solved. There are already several open source log-structured file systems. This list excludes experimental and similar software from educational institutions:
- Yaffs - http://www.yaffs.net/ - designed from the ground up for NAND
- JFFS2 - http://sourceware.org/jffs2/jffs2-html/jffs2-html.html - ditto.
- NANDFS - http://wiki.freebsd.org/NAND - BSD style licence
Plus there's Ext4 - which is used in Android now - not designed for NAND, but seems to work ok.
This work by Samsung fixes the problems with their previous file system. It's good, but it's not unique. Good PR though.
Heck, Google only has a Gold membership, and we know they like Linux.
Surely they like to take and modify, but playing along and contributing is another matter.
My exception safety is -fno-exceptions.
ReiserFS instead. I heard it's killer.
because if someone is reeeally good at filesystems for Android, it's Samsung. The Galaxy S had the best IO performance ever.
A new FS!?
Just what the world needs right now!
captcha=frenzied
I would actually support Samsung on this, if they provided a Gangnam Style lock screen app with the horsie dance cartoon character version of Psy. But sadly, if F2FS is anywhere near as bad as RFS, then the song lyrics may be somewhat applicable...
Um, yeah - but will Apple sue me?