projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
25205e9
)
[PATCH] Automatically adjust iodepth for nr_files
author
Jens Axboe
<jens.axboe@oracle.com>
Fri, 20 Oct 2006 07:07:46 +0000
(09:07 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Fri, 20 Oct 2006 07:07:46 +0000
(09:07 +0200)
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 <jens.axboe@oracle.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index 3df765516b4be89ea6e66fabb247c4d8b4998bc6..c81dfddf76d8e2e7b29991cd8f2d2ff702ec62b4 100644
(file)
--- 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;
else {
if (!td->iodepth)
- td->iodepth =
1
;
+ td->iodepth =
td->nr_files
;
}
/*
}
/*