From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v1] Reduce default number of threads in dio_sparse.c
Date: Tue, 18 Jan 2022 14:02:06 +0100 [thread overview]
Message-ID: <Yea6TuVuOlceWN0y@yuki> (raw)
In-Reply-To: <20220118105044.547-1-andrea.cervesato@suse.de>
Hi!
> Initialized options out of setup and reduced default number of
> threads from 1000 to 16
I've added a bit more verbose descriptioin here about how the default
has changed and pushed, thanks.
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.de>
> ---
> testcases/kernel/io/ltp-aiodio/dio_sparse.c | 18 ++++++------------
> 1 file changed, 6 insertions(+), 12 deletions(-)
>
> diff --git a/testcases/kernel/io/ltp-aiodio/dio_sparse.c b/testcases/kernel/io/ltp-aiodio/dio_sparse.c
> index 929adbfba..8635df82f 100644
> --- a/testcases/kernel/io/ltp-aiodio/dio_sparse.c
> +++ b/testcases/kernel/io/ltp-aiodio/dio_sparse.c
> @@ -33,11 +33,11 @@ static char *str_writesize;
> static char *str_filesize;
> static char *str_offset;
>
> -static int numchildren;
> -static long long writesize;
> -static long long filesize;
> -static long long offset;
> -static long long alignment;
> +static int numchildren = 16;
> +static long long writesize = 1024;
> +static long long filesize = 100 * 1024 * 1024;
> +static long long offset = 0;
> +static long long alignment = 512;
I've also removed this assignment since alignment is initialized
unconditionally.
> static void dio_sparse(int fd, int align, long long fs, int ws, long long off)
> {
> @@ -60,12 +60,6 @@ static void setup(void)
> {
> struct stat sb;
>
> - numchildren = 1000;
> - writesize = 1024;
> - filesize = 100 * 1024 * 1024;
> - offset = 0;
> - alignment = 512;
> -
> if (tst_parse_int(str_numchildren, &numchildren, 1, INT_MAX))
> tst_brk(TBROK, "Invalid number of children '%s'", str_numchildren);
>
> @@ -129,7 +123,7 @@ static struct tst_test test = {
> .needs_tmpdir = 1,
> .forks_child = 1,
> .options = (struct tst_option[]) {
> - {"n:", &str_numchildren, "Number of threads (default 1000)"},
> + {"n:", &str_numchildren, "Number of threads (default 16)"},
> {"w:", &str_writesize, "Size of writing blocks (default 1K)"},
> {"s:", &str_filesize, "Size of file (default 100M)"},
> {"o:", &str_offset, "File offset (default 0)"},
> --
> 2.34.1
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2022-01-18 13:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-18 10:50 [LTP] [PATCH v1] Reduce default number of threads in dio_sparse.c Andrea Cervesato
2022-01-18 12:11 ` Martin Doucha
2022-01-18 13:02 ` Cyril Hrubis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yea6TuVuOlceWN0y@yuki \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox