]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
fstests: xfs/227 is really slow
authorDave Chinner <dchinner@redhat.com>
Tue, 26 Nov 2024 20:58:05 +0000 (07:58 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 14:07:17 +0000 (22:07 +0800)
commitaaf40fb7b13606e470716ce25f724e5d2f297365
tree3f9d9cff95387093b60520ccb984bc4941cd270f
parentce79de11337e38bca2607024ea71c71fc42f8aac
fstests: xfs/227 is really slow

The slowest test tto run on my test VMs is xfs/227:

...
xfs/227 826
...

It is doing nested iteration on created filesets that are explicitly
defined, so separate the inner loop filesets and run the outer loops
in parallel.

Also reduce the number of times we have to execute setfattr and
xfs_io to once per created file instead of once per xattr/extent
count per file.

The result is test runtime reduction of ~60%.

....
xfs/227 336
....

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/227