From: Jens Axboe Date: Fri, 20 Oct 2006 07:07:46 +0000 (+0200) Subject: [PATCH] Automatically adjust iodepth for nr_files X-Git-Tag: fio-1.7~13 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=841ddd1322abbb48b2afe25712b4303dbf8cc5de [PATCH] Automatically adjust iodepth for nr_files If iodepth isn't directly specified, allocate 1 io_u per file to avoid serializing the workload. If iodepth is specified, use whatever value was given as previously. Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index 3df76551..c81dfddf 100644 --- a/init.c +++ b/init.c @@ -140,7 +140,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num) td->iodepth = 1; else { if (!td->iodepth) - td->iodepth = 1; + td->iodepth = td->nr_files; } /*