Re: Questions about XFS

Stefan Ring
2013-06-11T13:35:38Z

> I have a few questions about XFS that didn't make the XFS FAQ. I'm trying to
> get a feel for where I might want to use it on my servers (or at home). A
> mix of ext3 & ext4 has worked well for me. But I'd like to get to know XFS a
> bit better. The target OS would be RHEL6.

That's what I'm using as well. Answers are obviously biased by my
limited experience. I'm not an XFS veteran and have only started using
it after delaylog was added.

> 1. I don't have "lots and large". Why should I run XFS?

For me, the main reason is this: on a multi-user system with a decent
amount of memory (let's say >= 32GB), a single user untarring a large
source tarball, checking out a large source repository etc. will
effectively stall an ext3/4 filesystem for minutes on end. This does
not happen with XFS. Maybe this has been solved with recent kernels,
but it used to be a major nuisance for several years with kernels in
the 2.6.25-2.6.30 range at least.

> 2. I don't have "lots and large". Why shouldn't I run XFS?

Cache/memory accounting as well as displayed % wait time in top are "strange".

XFS performance is more sensitive to free space fragmentation than
ext4. For this reason, I find that it is not overly problematic to
fill an ext filesystem 95%, while with XFS I would stay below 85%.