Skip to contentSkip to conversation

nfs05: Reduce the default number of dirs and files

PATCH In review Martin Doucha 2 participants 3 messages Dec 8, 2021 – Dec 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs05: Reduce the default number of dirs and files

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.

---
 testcases/network/nfs/nfs_stress/nfs05.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
testcases/network/nfs/nfs_stress/nfs05.sh +2 -2
index 2742a54e6..7ddf8239e 100755
@@ -8,8 +8,8 @@
 #
 # Created by: Robbie Williamson ([email protected])
 
-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"
Signature · 5 lines
2.33.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#1 lore raw

Hi Martin,

[ Cc Alexey ]

Quoted 6 lines

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.

Good catch, thanks!

Kind regards,
Petr

Quoted 20 lines
---
 testcases/network/nfs/nfs_stress/nfs05.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
testcases/network/nfs/nfs_stress/nfs05.sh +2 -2
index 2742a54e6..7ddf8239e 100755
@@ -8,8 +8,8 @@
 
 # Created by: Robbie Williamson ([email protected])
 
-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"
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp