[LTP] [PATCH] nfs05: Reduce the default number of dirs and files

Martin Doucha mdoucha@suse.cz
Wed Dec 8 16:00:34 CET 2021


The nfs05 test currently creates 1000 .c files per thread and then compiles
them using recursive Makefiles. It needs 6 minutes to finish on my machine
which is longer than the default test timeout. Running it on a local filesystem
(without NFS) still takes 2 minutes to finish so NFS performance is reasonable.
Reduce the default number of test files to 10x30 per thread to avoid timeouts.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/network/nfs/nfs_stress/nfs05.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/network/nfs/nfs_stress/nfs05.sh b/testcases/network/nfs/nfs_stress/nfs05.sh
index 2742a54e6..7ddf8239e 100755
--- a/testcases/network/nfs/nfs_stress/nfs05.sh
+++ b/testcases/network/nfs/nfs_stress/nfs05.sh
@@ -8,8 +8,8 @@
 #
 # Created by: Robbie Williamson (robbiew@us.ibm.com)
 
-DIR_NUM=${DIR_NUM:-"20"}
-FILE_NUM=${FILE_NUM:-"50"}
+DIR_NUM=${DIR_NUM:-"10"}
+FILE_NUM=${FILE_NUM:-"30"}
 THREAD_NUM=${THREAD_NUM:-"8"}
 TST_NEEDS_CMDS="make gcc"
 TST_TESTFUNC="do_test"
-- 
2.33.0



More information about the ltp mailing list