XFS filesystem is underrated.
https://wiki.archlinux.org/index.php/XFS
Just got to say, whether it's Arch or Void Linux I always get superb performance from this filesystem. It's highly recommended. Whoever invented this needs a medal. Bravo.
About this post
- Posted
- Archived
- Score
- 13 · 100% up
- Kind
- Text
- ID
- ba2vdb
24 comments
Yeah, Red Hat has been paying Dave Chinner to improve it for some years now. It's become an excellent filesystem. Having a working dump/restore that officially supports running on mounted filesystems (in fact, it's required) is great too.
Indeed. dump/restore has been invaluable for converting easily my /home XFS to LUKS (with a partition resize as well). It cannot be done on the fly with XFS.
Congrats to openSUSE for making XFS the default for /home. And btrfs for /
They don't anymore, It's been BTRFS entirely for new installs since earlier this year.
Indeed.
Yeah people tend to just talk about ext4 and btrfs and forget about xfs.
Mmh but xfs is highly pushed by radhat. They abandoned their btrfs plans and developing something atop xfs
And performance wise ext4 beats on average xfs. But they are pretty close.
For filesystem performance test look at phoronix.com. he is doing filesystem tests every month or two.
EDIT: https://www.phoronix.com/scan.php?page=search&q=XFS
From Phoronix:
The only benchmark I've seen that significantly favored EXT4 was Compile Bench.
What are the pros and cons of ex4 and XFS, for those of us who don't know much about filesystems?
My opinions, using XFS and ext4 on LVM on desktop (various small logical volumes):
I hate the "lost+found" directories that ext4 creates. They create clutter.
XFS cannot be shrunk, only expanded. But, IMHO, when shrinking ext4, you never know how much time it will take, and I always fear corruption and do a backup beforehand.
In my benchmarks, rsync'ing lots of small files to a ext4 filesystem tends to be faster than XFS (ie, 40% faster on MY benchmarks). This type of metadata changing seems to be the worst part of XFS for my usecase.
XFS can be faster for storing qcow2 files for VMs on host. In MY benchmarks, installing a Debian VM automated via preseed on XFS tends to be 20-30% faster in XFS.
Ignore what people say about XFS corrupting itself when the host looses power, or zeroing files. This is a thing from the past (I used XFS on 2000s and that problems have bitten me, but not anymore).
I never noticed any difference on ext4 and XFS on desktop normal usage, on SSD, rust RAID1 or RAID0, etc. Both performs very well.
In my view, XFS is being actively developed, adding nice features (snapshot/reflink for files, online scrub, etc). ext4 seems to be stagnating, but sometimes new performance improvements are made (take a look at Linux Changelog from Kernel Newbies).
XFS seems to have a more scalable architecture (b-trees everywhere, allocations groups, dynamic inodes, etc), when in theory is a better filesystem for large or busy systems. But ext4, as a simpler filesystem, seems to be (in my view), more robust when things go wrong and needs to be repaired.
I never have a corruption with XFS or ext4 that made me lost data, running desktops, laptops, 100+ VMs, 10+ physical servers on 10+ years.
I don't know personally. I hear XFS mentioned a lot in the context of servers but desktop users tend to ignore it. I'm not sure why.
I've used xfs some years ago and it was the only file system that I ever used that got me to lose data. So I'm not interested in touching it again. Also it was not possible to resize a xfs partition and that bit me more than once.
I've been using XFS since late 2016 and not had any data loss, other than some kernel bug in 4.9 when combined with BFQ scheduler that caused a kernel panic, my firefox session was lost, instead restoring the same session from the start of the boot that eventually panicked(so if system was running 4 days straight, I'd lose 4 days of FF session. No other data was affected though and it appeared to be more of a bug with BFQ at the time rather than XFS afaik.
How do you sense performance? I highly doubt there are any production systems which give you perceptible perf diff for average use case.