Skip to contentSkip to conversation

Linux-next parallel cp workload hang

DISCUSSION Al Viro 1 participant 1 message May 18, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Al Viro

author maintainer
#1 lore raw
In reply to a message not in the archive

[dchinner Cc'd]

Quoted 20 lines · Xiong Zhou

Hi,

Parallel cp workload (xfstests generic/273) hangs like blow. It's reproducible with a small chance, less the 1/100 i think.

Have hit this in linux-next 20160504 0506 0510 trees, testing on xfs with loop or block device. Ext4 survived several rounds of testing.

Linux next 20160510 tree hangs within 500 rounds testing several times. The same tree with vfs parallel lookup patchset reverted survived 900 rounds testing. Reverted commits are attached.

Bisecting in this patchset ided this commit:

3b0a3c1ac1598722fc289da19219d14f2a37b31f is the first bad commit commit 3b0a3c1ac1598722fc289da19219d14f2a37b31f

Author: Al Viro <[email protected]>
Date:   Wed Apr 20 23:42:46 2016 -0400
Quoted 7 lines

simple local filesystems: switch to ->iterate_shared()

no changes needed (XFS isn't simple, but it has the same parallelism in the interesting parts exercised from CXFS).

With this commit reverted on top of Linux next 0510 tree, 5000+ rounds of testing passed.

Joy... So much for CXFS testing, probably... All that commit changes for XFS is allowing xfs_readdir() to be called in parallel for different struct file. We can always revert the XFS part, of course, but it would be interesting to find out what happens to be dependent on external exclusion there.