Recent changes (master)
The following changes since commit 5c57c084346fbfe6f3f45236c151ad1c83b6b398:
null: add FIO_FAKEIO flag (2014-07-23 16:19:48 +0200)
are available in the git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 24ef7a61bc7b9ec0f479980b6b219ef7d986d708:
crc/test: cleanup and better precision (2014-07-25 10:12:26 +0200)
----------------------------------------------------------------
Jens Axboe (3):
Add test case for previous verify crash
Don't grab stat mutex for final stat output
crc/test: cleanup and better precision
Jiri Horky (1):
Allow reset of offset_increment counter
HOWTO | 11 ++-- backend.c | 2 +- crc/test.c | 132 +++++++++++++++------------------------------ filesetup.c | 2 +- fio.1 | 9 ++-- fio.h | 1 + init.c | 2 + stat.c | 2 +- stat.h | 1 + t/jobs/t0009-f8b0bd10.fio | 40 ++++++++++++++ 10 files changed, 101 insertions(+), 101 deletions(-) create mode 100644 t/jobs/t0009-f8b0bd10.fio
---
Diff of recent changes:
HOWTO +6 -5
@@ -736,11 +736,12 @@ offset=int Start io at the given offset in the file. The data before caps the file size at real_size - offset. offset_increment=int If this is provided, then the real offset becomes - the offset + offset_increment * thread_number, where the - thread number is a counter that starts at 0 and is incremented - for each job. This option is useful if there are several jobs - which are intended to operate on a file in parallel in disjoint - segments, with even spacing between the starting points. + offset + offset_increment * thread_number, where the thread + number is a counter that starts at 0 and is incremented for + each sub-job (i.e. when numjobs option is specified). This + option is useful if there are several jobs which are intended + to operate on a file in parallel disjoint segments, with + even spacing between the starting points. number_ios=int Fio will normally perform IOs until it has exhausted the size of the region set by size=, or if it exhaust the allocated
backend.c +1 -1
@@ -2068,7 +2068,7 @@ int fio_backend(void)run_threads ();if (!fio_abort) { -show_run_stats (); +__show_run_stats ();if (write_bw_log) {int i;
crc/test.c +43 -89
294 lines not on this page · raw message
filesetup.c +1 -1
@@ -758,7 +758,7 @@ uint64_t get_start_offset(struct thread_data *td, struct fio_file *f)return f->real_file_size;return td->o.start_offset + - (td->thread_number -1 ) * td->o.offset_increment; + td->subjob_number * td->o.offset_increment; }/*
fio.1 +5 -4
@@ -657,10 +657,11 @@ Offset in the file to start I/O. Data before the offset will not be touched. .TP .BI offset_increment \fR=\fPint If this is provided, then the real offset becomes the -offset + offset_increment * thread_number, where the thread number is a counter -that starts at 0 and is incremented for each job. This option is useful if -there are several jobs which are intended to operate on a file in parallel in -disjoint segments, with even spacing between the starting points. +offset + offset_increment * thread_number, where the thread number is a +counter that starts at 0 and is incremented for each sub-job (i.e. when +numjobs option is specified). This option is useful if there are several jobs +which are intended to operate on a file in parallel disjoint segments, with +even spacing between the starting points. .TP .BI number_ios \fR=\fPint Fio will normally perform IOs until it has exhausted the size of the region
fio.h +1 -0
@@ -102,6 +102,7 @@ struct thread_data {char verror[FIO_VERROR_SIZE ];pthread_t thread;unsigned int thread_number; +unsigned int subjob_number;unsigned int groupid;struct thread_stat ts;
init.c +2 -0
@@ -380,6 +380,7 @@ static struct thread_data *get_new_job(int global, struct thread_data *parent,profile_add_hooks (td); td->thread_number = thread_number; + td->subjob_number =0 ;if (jobname) td->o.name =strdup (jobname);
@@ -1288,6 +1289,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, td_new->o.numjobs =1 ; td_new->o.stonewall =0 ; td_new->o.new_group =0 ; + td_new->subjob_number = numjobs;if (file_alloced) {if (td_new->files) {
stat.c +1 -1
@@ -1169,7 +1169,7 @@ void init_thread_stat(struct thread_stat *ts) ts->groupid =-1 ; } -static void __show_run_stats (void ) +void __show_run_stats (void ) {struct group_run_stats *runstats, *rs;struct thread_data *td;
stat.h +1 -0
@@ -218,6 +218,7 @@ extern void show_group_stats(struct group_run_stats *rs);extern int calc_thread_status (struct jobs_eta *je,int force);extern void display_thread_status (struct jobs_eta *je);extern void show_run_stats (void ); +extern void __show_run_stats (void );extern void show_running_run_stats (void );extern void check_for_running_stats (void );extern void sum_thread_stats (struct thread_stat *dst,struct thread_stat *src,int nr);
t/jobs/t0009-f8b0bd10.fio new file +40 -0
@@ -0,0 +1,40 @@ +# Expected result: fio verifies and runs for 1m +# Buggy result: fio crashes with: +# __get_io_u: Assertion `io_u->flags & IO_U_F_FREE' failed + +[global] +direct=1 +ioengine=null +size=20g +norandommap +randrepeat=0 +bs=4096 +iodepth=170 +#iodepth=96 +#numjobs=1 +numjobs=1 +#numjobs=24 +# number_ios=1 +# runtime=216000 +runtime=3600 +time_based=1 +group_reporting=1 +thread +gtod_reduce=1 +iodepth_batch=4 +iodepth_batch_complete=4 +cpus_allowed=0-5 +cpus_allowed_policy=split +rw=randwrite +verify=crc32c-intel +verify_backlog=1m +do_verify=1 +verify_async=6 +verify_async_cpus=0-5 +runtime=1m + +[4_KiB_RR_drive_r] + +[4_KiB_RR_drive_s] + +