Recent changes (master)
The following changes since commit b979af5cba25e31dc2a8f2fd89ac5e40c24b6519:
Merge branch 'howto_typos' of https://github.com/dirtyharrycallahan/fio (2018-03-05 10:29:39 -0700)
are available in the git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 674456bf7d0f775f774c8097c8bcb98b48cccc51:
Reduce LOG_MSEC_SLACK (2018-03-06 17:53:20 -0700)
----------------------------------------------------------------
Jason Dillaman (2):
rbd: fixed busy-loop when using eventfd polling
rbd: remove support for blkin tracing
Jeff Furlong (1):
Reduce LOG_MSEC_SLACK
Jens Axboe (3):
Don't make fadvise failure fatal
Default to building native code
Merge branch 'wip-rbd-engine' of https://github.com/dillaman/fio
Makefile | 3 +++ configure | 56 +++++++++++++++++++++----------------------------------- debug.h | 1 + engines/rbd.c | 41 ++++++++++++++++++----------------------- ioengines.c | 4 ++-- stat.c | 14 ++++++++------ 6 files changed, 53 insertions(+), 66 deletions(-)
---
Diff of recent changes:
Makefile +3 -0
@@ -31,6 +31,9 @@ SCRIPTS = $(addprefix $(SRCDIR)/,tools/fio_generate_plots tools/plot/fio2gnuplot ifndef CONFIG_FIO_NO_OPT CFLAGS += -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 endif +ifdef CONFIG_BUILD_NATIVE + CFLAGS += -march=native +endif ifdef CONFIG_GFIO PROGS += gfio
configure +21 -35
104 lines not on this page · raw message
debug.h +1 -0
@@ -43,6 +43,7 @@ enum {FIO_WARN_VERIFY_BUF =2 ,FIO_WARN_ZONED_BUG =4 ,FIO_WARN_IOLOG_DROP =8 , + FIO_WARN_FADVISE = 16, };#ifdef FIO_INC_DEBUG
engines/rbd.c +18 -23
102 lines not on this page · raw message
ioengines.c +2 -2
@@ -498,8 +498,8 @@ int td_io_open_file(struct thread_data *td, struct fio_file *f) }if (posix_fadvise (f->fd, f->file_offset, f->io_size, flags) <0 ) { -td_verror (td, errno,"fadvise" ); - goto err; +if (!fio_did_warn (FIO_WARN_FADVISE )) +log_err ("fio: fadvise hint failed\n" ); } }#ifdef FIO_HAVE_WRITE_HINT
stat.c +8 -6
@@ -18,7 +18,7 @@#include "helper_thread.h" #include "smalloc.h" -#define LOG_MSEC_SLACK 10 +#define LOG_MSEC_SLACK 1struct fio_mutex *stat_mutex;
@@ -2340,9 +2340,11 @@ static void _add_stat_to_log(struct io_log *iolog, unsigned long elapsed,__add_stat_to_log (iolog, ddir, elapsed, log_max); } -static long add_log_sample (struct thread_data *td,struct io_log *iolog, -union io_sample_data data,enum fio_ddir ddir, -unsigned int bs,uint64_t offset) +static unsigned long add_log_sample (struct thread_data *td, +struct io_log *iolog, +union io_sample_data data, +enum fio_ddir ddir,unsigned int bs, +uint64_t offset) {unsigned long elapsed, this_window;
@@ -2373,7 +2375,7 @@ static long add_log_sample(struct thread_data *td, struct io_log *iolog,if (elapsed < iolog->avg_last[ddir])return iolog->avg_last[ddir] - elapsed;else if (this_window < iolog->avg_msec) { -int diff = iolog->avg_msec - this_window; +unsigned long diff = iolog->avg_msec - this_window;if (inline_log (iolog) || diff >LOG_MSEC_SLACK )return diff;
@@ -2562,7 +2564,7 @@ static int __add_samples(struct thread_data *td, struct timespec *parent_tv, {unsigned long spent, rate;enum fio_ddir ddir; -unsigned int next, next_log; +unsigned long next, next_log; next_log = avg_time;