Skip to content

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.

13 points19 comments
Open on Reddit
About this post
Posted
Archived
Score
13 · 100% up
Kind
Text
ID
ba2vdb

Author

4
posts
45
comments
2
media
View profile

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.

7 points

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.

1 points

Congrats to openSUSE for making XFS the default for /home. And btrfs for /

6 points

XFS the default for /home. And btrfs for /

They don't anymore, It's been BTRFS entirely for new installs since earlier this year.

1 points

Yeah people tend to just talk about ext4 and btrfs and forget about xfs.

5 points

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

8 points

And performance wise ext4 beats on average xfs. But they are pretty close.

From Phoronix:

generally F2FS and XFS are the fastest on the consumer solid-state storage devices generally followed quite quickly (and commonly trading blows) with EXT4

The only benchmark I've seen that significantly favored EXT4 was Compile Bench.

2 points

What are the pros and cons of ex4 and XFS, for those of us who don't know much about filesystems?

4 points

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.

10 points

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.

1 points

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.

1 points

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.

1 points

How do you sense performance? I highly doubt there are any production systems which give you perceptible perf diff for average use case.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.