Flexible I/O Tester development
 help / color / mirror / Atom feed
* number_ios is checked on completion, not submission
@ 2014-03-10 21:12 Elliott, Robert (Server Storage)
  2014-03-11 15:35 ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Elliott, Robert (Server Storage) @ 2014-03-10 21:12 UTC (permalink / raw)
  To: fio@vger.kernel.org

Since number_ios is checked in io_u.c account_io_completion() rather than a submission function, fio actually runs the requested number of I/Os plus iodepth - 1.

Example: for a job specifying:
number_ios=5000
iodepth=128

the results are:
  read : io=20000KB, bw=222222KB/s, iops=56966, runt=    90msec
  IO depths    : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.2%, 16=0.3%, 32=0.6%, >=64=98.8%
     issued    : total=r=5127/w=0/d=0, short=r=0/w=0/d=0

Should that just be documented as such, or should this logic be moved to submission?
static void account_io_completion(struct thread_data *td, struct io_u *io_u,
...
        if (td->o.number_ios && !--td->o.number_ios)
                td->done = 1;

---
Rob Elliott    HP Server Storage



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-11 16:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-10 21:12 number_ios is checked on completion, not submission Elliott, Robert (Server Storage)
2014-03-11 15:35 ` Jens Axboe
2014-03-11 16:08   ` Elliott, Robert (Server Storage)
2014-03-11 16:14     ` Jens Axboe
2014-03-11 16:16       ` Jens Axboe
2014-03-11 16:19         ` Elliott, Robert (Server Storage)
2014-03-11 16:22           ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox