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

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



From: Darrick J. Wong <djwong@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 common/populate |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


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
 




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux