commit | afad68f778a764cbe57d4a5d54cbea32444aaa45 | [log] [tgz] |
---|---|---|
author | Zhang, Yanmin <yanmin_zhang@linux.intel.com> | Wed May 20 11:30:55 2009 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed May 20 11:30:55 2009 +0200 |
tree | 34356f7f6443da6e7786201a5ac17b2c1d5d4d7e | |
parent | 8de43fd22302237a2b35515ff869fde514dfc76d [diff] [blame] |
Add pre_read option With this option set, files will be pre-read into memory before starting the given IO operation(s). Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c index 4a02f2e..185f99a 100644 --- a/fio.c +++ b/fio.c
@@ -1018,6 +1018,11 @@ goto err; } + if (td->o.pre_read) { + if (pre_read_files(td) < 0) + goto err; + } + fio_gettime(&td->epoch, NULL); getrusage(RUSAGE_SELF, &td->ts.ru_start);