Hello @mbod,
This article may shed some light that f2fs is designed for smart devices too.
https://wiki.archlinux.org/index.php/F2FS
Key quote from this article:
F2FS (Flash-Friendly File System) is a file system intended for NAND-based flash memory equipped with Flash Translation Layer. Unlike JFFS or UBIFS it relies on FTL to handle write distribution. It is supported from kernel 3.8 onwards.
An FTL is found in all flash memory with a SCSI/SATA/PCIe/NVMe interface, opposed to bare NAND Flash and SmartMediaCards.
<Emphasis - mine>
So respectfully, the argument that f2fs no longer applies due to electronic advancement, doesn’t appear to be correct.
This article explains the purpose of FTL - and as you brought up, the FTL handles wear leveling.
https://itigic.com/ftl-why-is-it-so-important-in-ssds/
And in test conducted by people smarter than me, it performs well. LIke all FS’s - it has it’s strengths and weaknesses.
https://www.phoronix.com/scan.php?page=article&item=linux-50-filesystems&num=1
Then you have this reddit which deals specifically with the misconcption that f2fs is meant for “dumb” SSD devices only:
https://www.reddit.com/r/linux/comments/6bngw0/refuting_the_myth_about_f2fs/
And in the reddit here is the source information:
https://lwn.net/Articles/518988/
Bottom line - f2fs is a new FS. It has not had the benefit of the test of time such as ext4/3/2, XFS, etc.
As with all things new (like btrfs), while f2fs is considered mature, and btrfs is not…Some distros are now going with btrfs as the default fs. NOT ME. I do not trust btrfs - in most tests - it’s a slow, and in many posts I’ve read - in some use cases it is still causing catastrophic data loss…Which f2fs is not causing data loss by those who use it.
As with all things linux - it is the users choice (and their risk to assume). I’ve tested three other smart SSD’s/NVME’s I have in my system with f2fs for the last few months - including one that hosts my KVM machines…And in my usage scenario - f2fs performs flawlessly and very quickly. So the next logical step (for me) would be to convert my root FS (also an NVME) to f2fs.
Thank you for the reply - but I will be converting my root fs to f2fs. I will report back if it’s a disaster…but I’ve done f2fs on root with EOS and ArcoLinuxB on my laptop. Both installs went perfectly, the updates went perfectly, and the laptop (my service laptop) enjoyed a speed-up in the process as an additional “perk”.
Sincerely and respectfully,
Dave