summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-04-04 16:17:06 -0700
committerZorro Lang <zlang@kernel.org>2023-04-09 20:08:31 +0800
commit8d69dc3757cee7dbeafb1396d93453eee72e719c (patch)
tree06efc21f4fc13d7aa02fa1dd7a5288f23f989117 /common
parentc7db4edfe9677f29fb6d4c012257454473974a4f (diff)
populate: create fewer holes in directories and xattrs
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> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
Diffstat (limited to 'common')
-rw-r--r--common/populate6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/populate b/common/populate
index 524e0c32..3d233073 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