public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] nfs05: Reduce the default number of dirs and files
@ 2021-12-08 15:00 Martin Doucha
  2021-12-08 16:41 ` Petr Vorel
  2021-12-09 20:06 ` Petr Vorel
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Doucha @ 2021-12-08 15:00 UTC (permalink / raw)
  To: ltp

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] nfs05: Reduce the default number of dirs and files
  2021-12-08 15:00 [LTP] [PATCH] nfs05: Reduce the default number of dirs and files Martin Doucha
@ 2021-12-08 16:41 ` Petr Vorel
  2021-12-09 20:06 ` Petr Vorel
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2021-12-08 16:41 UTC (permalink / raw)
  To: Martin Doucha; +Cc: ltp

Hi Martin,

[ Cc Alexey ]

> 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!

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr

> 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"

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] nfs05: Reduce the default number of dirs and files
  2021-12-08 15:00 [LTP] [PATCH] nfs05: Reduce the default number of dirs and files Martin Doucha
  2021-12-08 16:41 ` Petr Vorel
@ 2021-12-09 20:06 ` Petr Vorel
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2021-12-09 20:06 UTC (permalink / raw)
  To: Martin Doucha; +Cc: ltp

Hi Martin,

Thanks, merged!

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-09 20:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-08 15:00 [LTP] [PATCH] nfs05: Reduce the default number of dirs and files Martin Doucha
2021-12-08 16:41 ` Petr Vorel
2021-12-09 20:06 ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox