]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
populate: remove file creation loops that take forever
authorDarrick J. Wong <djwong@kernel.org>
Wed, 18 Jan 2023 00:44:02 +0000 (16:44 -0800)
committerZorro Lang <zlang@kernel.org>
Sun, 22 Jan 2023 12:32:19 +0000 (20:32 +0800)
commit3ea9a3274403ad1cc07fde4d08bde9688b2875f1
treec4011a5ebe241c434ffcafb5c42613c5f0aabde4
parent116804dc92d234838d3ad06dc2e4f1769c0f4687
populate: remove file creation loops that take forever

Replace the file creation loops with a perl script that does everything
we want from a single process.  This reduces the runtime of
_scratch_xfs_populate substantially by avoiding thousands of execve
overhead.  On my system, this reduces the runtime of xfs/349 (with scrub
enabled) from ~140s to ~45s.

[zlang: add popdir.pl into src/Makefile install list]

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/populate
src/Makefile
src/popdir.pl [new file with mode: 0755]