diff mbox series

[3/3] populate: create fewer holes in directories and xattrs

Message ID 168065022660.494608.3347185703277760781.stgit@frogsfrogsfrogs (mailing list archive)
State New, archived
Headers show
Series populate: tweaks to the filesystems created | expand

Commit Message

Darrick J. Wong April 4, 2023, 11:17 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

The same study of aging filesystem metadumps also showed that the rate
of file and xattr deletion is a lot lower than what this script does.
Decrease the deletion interval from every other file/name to every 19th
item to get us to a more reasonable 5% deletion rate, but with a prime
number. ;)

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 common/populate |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/common/populate b/common/populate
index 524e0c32cb..3d233073c9 100644
--- a/common/populate
+++ b/common/populate
@@ -89,7 +89,7 @@  __populate_create_dir() {
 	$here/src/popdir.pl --dir "${name}" --end "${nr}" "$@"
 
 	test -z "${missing}" && return
-	$here/src/popdir.pl --dir "${name}" --start 1 --incr 2 --end "${nr}" --remove "$@"
+	$here/src/popdir.pl --dir "${name}" --start 1 --incr 19 --end "${nr}" --remove "$@"
 }
 
 # Create a large directory and ensure that it's a btree format
@@ -123,7 +123,7 @@  __populate_xfs_create_btree_dir() {
 	done
 
 	test -z "${missing}" && return
-	$here/src/popdir.pl --dir "${name}" --start 1 --incr 2 --end "${nr}" --remove
+	$here/src/popdir.pl --dir "${name}" --start 1 --incr 19 --end "${nr}" --remove
 }
 
 # Add a bunch of attrs to a file
@@ -138,7 +138,7 @@  __populate_create_attr() {
 		${PYTHON3_PROG} $here/src/popattr.py --file "${name}" --end "${nr}"
 
 		test -z "${missing}" && return
-		${PYTHON3_PROG} $here/src/popattr.py --file "${name}" --start 1 --incr 2 --end "${nr}" --remove
+		${PYTHON3_PROG} $here/src/popattr.py --file "${name}" --start 1 --incr 19 --end "${nr}" --remove
 		return
 	fi