Skip to contentSkip to conversation

xfs_inode slab

DISCUSSION Nikolay S. 2 participants 2 messages Feb 10, 2013

lore
Share & tools
lore

Nikolay S.

author
#0 lore raw

Hello there,

I see some bad behavior of xfs, which I can reproduce:

1. Create some directories and files on xfs volume (I use ~800000 files and 80000 directories on 4GB RAM system)
2. Create workload, that produces light page cache pressure (say, 4-8 MB/s) and while pagecache eats all of free ram. I use the code from [1])
3. Stat all the objects on xfs volume

The result depends on kernel version:
3.2) See kswapd struggling through D-state for several minutes. 3.7) See kswapd struggling through D-state forever

Same steps on ext4 do not produce any bad results

--
[1] https://bugzilla.kernel.org/show_bug.cgi?id=53031

[2]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#1 lore raw
Quoted 10 lines · Nikolay S.

Hello there,

I see some bad behavior of xfs, which I can reproduce:

1. Create some directories and files on xfs volume (I use ~800000 files and 80000 directories on 4GB RAM system)
2. Create workload, that produces light page cache pressure (say, 4-8 MB/s) and while pagecache eats all of free ram. I use the code from [1])
3. Stat all the objects on xfs volume

Quoted 3 lines

The result depends on kernel version:
3.2) See kswapd struggling through D-state for several minutes. 3.7) See kswapd struggling through D-state forever

I can't reproduce it on any of my test boxes (range from 1GB to 8GB RAM) on XFS or ext4. Indeed, this is a stress test I use all the time (file creation, traversal and removal under page cache pressure using 50-100 million files), and I haven't seen a stall for a long time....

Quoted 4 lines

Same steps on ext4 do not produce any bad results

--
[1] https://bugzilla.kernel.org/show_bug.cgi?id=53031

Having looked at the bz, I don't see what XFS has to do with this kswapd problem - it looks like it is THP/compaction related, and I don't enable THP and/or compaction on my test machines. kswapd is stuck deep in the VM on the page LRUs, so it doesn't look like an XFS problem at all. If you turn off THP/compaction, does the problem go away?

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs