From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v10 1/2] Rewrite aio-stress test using LTP API
Date: Fri, 9 Dec 2022 13:37:32 +0100 [thread overview]
Message-ID: <Y5MsDM0RlyfdA058@rei> (raw)
In-Reply-To: <20221130135451.28399-2-andrea.cervesato@suse.com>
Hi!
> +static struct tst_test test = {
> + .test_all = run,
> + .setup = setup,
> + .needs_tmpdir = 1,
> + .needs_root = 1,
One more thing, this needs runtime treatement since if you pass large
enough file size the test will timeout.
First of all we should add large enough max runtime as we do for the
rest of the aio tests, i.e. .max_runtime = 1800,
And secondly, I would do that in a subsequent patchset, we should add
check for running out of runtime into the worker loop.
> + .options = (struct tst_option[]){
> + { "a:", &str_iterations, "Total number of ayncs I/O the program will run (default 500)" },
> + { "b:", &str_max_io_submit, "Max number of iocbs to give io_submit at once" },
> + { "c:", &str_num_contexts, "Number of io contexts per file" },
> + { "d:", &str_depth, "Number of pending aio requests for each file (default 64)" },
> + { "e:", &str_io_iter, "Number of I/O per file sent before switching to the next file (default 8)" },
> + { "f:", &str_num_files, "Number of files to generate" },
> + { "g:", &str_context_offset, "Offset between contexts (default 2M)" },
> + { "l", &latency_stats, "Print io_submit latencies after each stage" },
> + { "L", &completion_latency_stats, "Print io completion latencies after each stage" },
> + { "m", &str_use_shm, "SHM use ipc shared memory for io buffers instead of malloc" },
> + { "n", &no_fsync_stages, "No fsyncs between write stage and read stage" },
> + { "o:", &str_stages, "Add an operation to the list: write=0, read=1, random write=2, random read=3" },
> + { "O", &str_o_flag, "Use O_DIRECT" },
> + { "r:", &str_rec_len, "Record size in KB used for each io (default 64K)" },
> + { "s:", &str_file_size, "Size in MB of the test file(s) (default 1024M)" },
> + { "t:", &str_num_threads, "Number of threads to run" },
> + { "u", &unlink_files, "Unlink files after completion" },
> + { "v", &verify, "Verification of bytes written" },
> + { "x", &no_stonewall, "Turn off thread stonewalling" },
> + {},
> + },
> +};
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-12-09 12:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-30 13:54 [LTP] [PATCH v10 0/2] Rewrite aio-stress test Andrea Cervesato via ltp
2022-11-30 13:54 ` [LTP] [PATCH v10 1/2] Rewrite aio-stress test using LTP API Andrea Cervesato via ltp
2022-12-01 10:29 ` Richard Palethorpe
2022-12-09 11:29 ` Cyril Hrubis
2022-12-09 12:37 ` Cyril Hrubis [this message]
2022-11-30 13:54 ` [LTP] [PATCH v10 2/2] Merge ltp-aio-stress part2 with part1 Andrea Cervesato via ltp
2022-12-01 10:33 ` Richard Palethorpe
2022-12-08 9:46 ` [LTP] [PATCH v10 0/2] Rewrite aio-stress test Richard Palethorpe
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=Y5MsDM0RlyfdA058@rei \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.com \
--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