Recent changes (master)
The following changes since commit 53ee8c17adb00e3db4f2c9441777ba777390cb9f:
engines/sg: improve error handling (2018-09-03 09:01:14 -0600)
are available in the git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to f111f76c0e6687c0cc6fc562cb902e4a64e42b37:
Merge branch 'master' of https://github.com/damien-lemoal/fio (2018-09-05 19:25:39 -0600)
----------------------------------------------------------------
Damien Le Moal (5):
zbd: Fix test scripts
zbd: Improve read randomness
zbd: Remove inexistent functions declaration
zbd: Fix zbd_zone_idx()
zbd: Use bytes unit
Jens Axboe (4):
Document oddity with --status-interval and --output-format=json Merge branch 'sz/log-names-need-help' of https://github.com/szaydel/fio
init: move log name generation into helper
Merge branch 'master' of https://github.com/damien-lemoal/fio
Rebecca Cran (1):
Windows: update download URL and add missing examples
Sam Zaydel (1):
Log files names start with _ when write_XX_log= keys in config file have empty value(s)
HOWTO | 5 +- fio.1 | 5 +- init.c | 20 ++++- os/windows/examples.wxs | 90 ++++++++++++++++++-- os/windows/install.wxs | 2 +- t/zbd/run-tests-against-regular-nullb | 4 +- t/zbd/run-tests-against-zoned-nullb | 4 +- zbd.c | 149 +++++++++++++++++++--------------- zbd.h | 12 --- 9 files changed, 196 insertions(+), 95 deletions(-)
---
Diff of recent changes:
HOWTO +4 -1
@@ -194,7 +194,10 @@ Command line options Force a full status dump of cumulative (from job start) values at `time` intervals. This option does *not* provide per-period measurements. So values such as bandwidth are running averages. When the time unit is omitted, - `time` is interpreted in seconds. + `time` is interpreted in seconds. Note that using this option with + ``--output-format=json`` will yield output that technically isn't valid + json, since the output will be collated sets of valid json. It will need + to be split into valid sets of json after the run. .. option:: --section=name
fio.1 +4 -1
@@ -93,7 +93,10 @@ the value is interpreted in seconds. Force a full status dump of cumulative (from job start) values at \fItime\fR intervals. This option does *not* provide per-period measurements. So values such as bandwidth are running averages. When the time unit is omitted, -\fItime\fR is interpreted in seconds. +\fItime\fR is interpreted in seconds. Note that using this option with +`\-\-output-format=json' will yield output that technically isn't valid json, +since the output will be collated sets of valid json. It will need to be split +into valid sets of json after the run. .TP .BI \-\-section \fR=\fPname Only run specified section \fIname\fR in job file. Multiple sections can be specified.
init.c +16 -4
@@ -1419,6 +1419,17 @@ static bool wait_for_ok(const char *jobname, struct thread_options *o) }/* +* Treat an empty log file name the same as a one not given +*/ +static const char *make_log_name (const char *logname,const char *jobname) +{ +if (logname &&strcmp (logname,"" )) +return logname; + +return jobname; +} + +/* * Adds a job to the list of things todo. Sanitizes the various options * to make sure we don't have conflicts, and initializes various * members of td.
@@ -1542,7 +1553,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, .log_gz = o->log_gz, .log_gz_store = o->log_gz_store, }; -const char *pre = o->lat_log_file ? o->lat_log_file : o->name; +const char *pre =make_log_name (o->lat_log_file, o->name);const char *suf;if (p.log_gz_store)
@@ -1561,6 +1572,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num,gen_log_name (logname,sizeof (logname),"clat" , pre, td->thread_number, suf, o->per_job_logs);setup_log (&td->clat_log, &p, logname); + }if (o->write_hist_log) {
@@ -1574,7 +1586,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, .log_gz = o->log_gz, .log_gz_store = o->log_gz_store, }; -const char *pre = o->hist_log_file ? o->hist_log_file : o->name; +const char *pre =make_log_name (o->hist_log_file, o->name);const char *suf;#ifndef CONFIG_ZLIB
@@ -1605,7 +1617,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, .log_gz = o->log_gz, .log_gz_store = o->log_gz_store, }; -const char *pre = o->bw_log_file ? o->bw_log_file : o->name; +const char *pre =make_log_name (o->bw_log_file, o->name);const char *suf;if (fio_option_is_set (o, bw_avg_time))
@@ -1636,7 +1648,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, .log_gz = o->log_gz, .log_gz_store = o->log_gz_store, }; -const char *pre = o->iops_log_file ? o->iops_log_file : o->name; +const char *pre =make_log_name (o->iops_log_file, o->name);const char *suf;if (fio_option_is_set (o, iops_avg_time))
os/windows/examples.wxs +81 -9
170 lines not on this page · raw message
os/windows/install.wxs +1 -1
@@ -61,7 +61,7 @@ <Property Id="ARPURLINFOABOUT" Value="http://git.kernel.dk/cgit/fio/" /> <Property Id='ARPCONTACT'>[email protected]</Property> <Property Id='ARPHELPLINK'>http://www.spinics.net/lists/fio/</Property> - <Property Id='ARPURLUPDATEINFO'>http://bluestop.org/fio/</Property> + <Property Id='ARPURLUPDATEINFO'>https://bluestop.org/fio/</Property> <WixVariable Id="WixUILicenseRtf" Value="eula.rtf" />
t/zbd/run-tests-against-regular-nullb +3 -1
@@ -4,6 +4,8 @@ # # This file is released under the GPL. +scriptdir="$(cd "$(dirname "$0")" && pwd)" + for d in /sys/kernel/config/nullb/*; do [ -d "$d" ] && rmdir "$d"; done modprobe -r null_blk modprobe null_blk nr_devices=0 || return $?
@@ -22,4 +24,4 @@ modprobe null_blk nr_devices=0 && echo 1 > memory_backed && echo 1 > power -"$(dirname "$0")"/test-zbd-support "$@" /dev/nullb0 +"${scriptdir}"/test-zbd-support "$@" /dev/nullb0
t/zbd/run-tests-against-zoned-nullb +3 -1
@@ -4,6 +4,8 @@ # # This file is released under the GPL. +scriptdir="$(cd "$(dirname "$0")" && pwd)" + for d in /sys/kernel/config/nullb/*; do [ -d "$d" ] && rmdir "$d"; done modprobe -r null_blk modprobe null_blk nr_devices=0 || return $?
@@ -24,4 +26,4 @@ modprobe null_blk nr_devices=0 && echo 1 > memory_backed && echo 1 > power -"$(dirname "$0")"/test-zbd-support "$@" /dev/nullb0 +"${scriptdir}"/test-zbd-support "$@" /dev/nullb0
zbd.c +84 -65
366 lines not on this page · raw message
zbd.h +0 -12
@@ -95,8 +95,6 @@ int zbd_init(struct thread_data *td);void zbd_file_reset (struct thread_data *td,struct fio_file *f);bool zbd_unaligned_write (int error_code);enum io_u_action zbd_adjust_block (struct thread_data *td,struct io_u *io_u); -int zbd_do_trim (struct thread_data *td,const struct io_u *io_u); -void zbd_update_wp (struct thread_data *td,const struct io_u *io_u);char *zbd_write_status (const struct thread_stat *ts);#else static inline void zbd_free_zone_info (struct fio_file *f)
@@ -123,16 +121,6 @@ static inline enum io_u_action zbd_adjust_block(struct thread_data *td,return io_u_accept; } -static inline int zbd_do_trim (struct thread_data *td,const struct io_u *io_u) -{ -return 1 ; -} - -static inline void zbd_update_wp (struct thread_data *td, -const struct io_u *io_u) -{ -} -static inline char *zbd_write_status (const struct thread_stat *ts) {return NULL ;