View previous topic :: View next topic |
Author |
Message |
Alix_7622 n00b
Joined: 04 Nov 2024 Posts: 1
|
Posted: Tue Jan 21, 2025 8:11 am Post subject: Which Flash-friendly FS on Linux: F2FS or NILFS2? |
|
|
I have been using F2FS for quite a few years, both on SATA SSD and M.2 PCIe stick. Works great.
But I wonder how it compares to NILFS2. I tried that one a decade ago to make a bootable USB stick and it also worked great, at least compared to ext4.
I know both are log-based and deep down NILFS2 makes different tradeoffs, which makes it take longer for initial mount, but IIRC it was friendlier WRT wear&tear.
I wonder how do they compare now. I can't find anything even remotely current on the subject... |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3886 Location: Rasi, Finland
|
Posted: Tue Jan 21, 2025 9:33 am Post subject: |
|
|
Well. NILFS2 had some patches commited lately, but it still seems to lack some basic features other filesystems have. TODO List: | Deletion of orphan inodes
O_TMPFILE
Hole-Punching
clone_file_range
in-kernel GC
Smarter and more efficient Garbage Collector
fsck
Extended attribute
POSIX ACLs
Tool listing versioning history of a specified file
Modelated checkpointing: make a checkpoint only when file overwriting/deletion occurs
nilfs-debug: offline debug tool to analyze broken volume
Better support of synch operations (fsync, etc).
Performance improvement (Better Block I/O submission)
Checkpoint rollback
Checkpoint based remote replication
Less frequently updated superblock for flash devices.
Optimization for silicon disks (e.g. SSD)
Online defrag
Faster inode allocation
atime
Compression of old data
Shred file along with its past versions
Better support of mmap and direct I/O.
System/package undo tool support: snapper, etc.
Unified user command ``nilfs'' (rather than separate commands like lscp, rmcp, mkcp, etc).
Offline resizing
Writable snapshots
Quota support
B-tree based directory management
Extent support |
I've been watching NILFS2 development from time to time... It's snapshot capability is pretty nice feature. But as I see it... I don't think you should use it as a root filesystem just yet. Especially if your system relies for some of the features still on the TODO list.
If you use lvm, you could easily just create an LV and start experimenting. ;) _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54744 Location: 56N 3W
|
Posted: Tue Jan 21, 2025 11:16 am Post subject: |
|
|
Alix_7622,
Careful what you wish for with F2FS. Its picky about the kernel block size.
It will not support 16k yet, so no F2FS on a Raspberry Pi 5 with the default kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3886 Location: Rasi, Finland
|
Posted: Tue Jan 21, 2025 12:25 pm Post subject: |
|
|
NeddySeagoon wrote: | It will not support 16k yet | ... and this is quite the opposite what NILFS2 can: _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
|