Skip to content

Commit

Permalink
Reduce default children in dio_read test
Browse files Browse the repository at this point in the history
We reduce default children from 100 to 8 in order to reduce time
execution and memory footprint consuption when using default
values.

Signed-off-by: Andrea Cervesato <[email protected]>
Reviewed-by: Petr Vorel <[email protected]>
Acked-by: Martin Doucha <[email protected]>
Reviewed-by: Cyril Hrubis <[email protected]>
  • Loading branch information
acerv authored and metan-ucw committed Jan 21, 2022
1 parent 759a167 commit c37b9de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testcases/kernel/io/ltp-aiodio/dio_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static char *str_readsize;
static char *str_filesize;

static char *filename = "file.bin";
static int numchildren = 100;
static int numchildren = 8;
static long long writesize = 32 * 1024 * 1024;
static long long readsize = 32 * 1024 * 1024;
static long long filesize = 128 * 1024 * 1024;
Expand Down Expand Up @@ -171,7 +171,7 @@ static struct tst_test test = {
.needs_tmpdir = 1,
.forks_child = 1,
.options = (struct tst_option[]) {
{"n:", &str_numchildren, "Number of threads (default 100)"},
{"n:", &str_numchildren, "Number of threads (default 8)"},
{"w:", &str_writesize, "Size of writing blocks (default 32M)"},
{"r:", &str_readsize, "Size of reading blocks (default 32M)"},
{"s:", &str_filesize, "File size (default 128M)"},
Expand Down

0 comments on commit c37b9de

Please sign in to comment.