All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Rodrigo Ribeiro Gomes <rodrigorigomes@gmail.com>
Cc: fio@vger.kernel.org, Bruce Cran <bruce@cran.org.uk>
Subject: Re: --thinktime seems not work
Date: Wed, 13 May 2015 11:11:54 -0400	[thread overview]
Message-ID: <555369BA.4040101@kernel.dk> (raw)
In-Reply-To: <CAD09ZYR6FG7tbSYjXXjKj14ocJNijm=mvcvE06TFY7WEODajyg@mail.gmail.com>

On 05/13/2015 10:37 AM, Rodrigo Ribeiro Gomes wrote:
>
> On Wed, May 13, 2015 at 11:33 AM, Jens Axboe <axboe@kernel.dk> wrote:
>> On 05/13/2015 10:23 AM, Rodrigo Ribeiro Gomes wrote:
>>>
>>> HI guys!
>>>
>>> I'm trying use the --thinktime parameter to sleep between each io
>>> request for ten seconds.
>>>
>>> But, it seems not working... I'm doing  something incorrect?
>>>
>>> fio --name disktst  ... --thinktime 10000000
>>>
>>> In HOWTO, this param is described as 'Stall the job x microseconds'...
>>> But fio dont stop between each request and continues issuing. This is
>>> complete command line that i used:
>>>
>>>
>>> fio --name IoRequestDelayTest --directory J\:\  --iodepth 1 --bs 4k
>>> --size 1G --io_size 1G --direct 1 --thread --runtime 1h --time_based
>>> --rw randread --thinktime 10000000
>>>
>>> The J: is mounted on a USB flash drive (Kingston SE9 32GB)
>>
>>
>> Works fine for me:
>>
>> ./fio --name=think --size=1g --bs=4k --rw=randread --direct=1
>> [...]
>>    read : io=130244KB, bw=30114KB/s, iops=7528, runt=  4325msec
>>
>> ./fio --name=think --size=1g --bs=4k --rw=randread --direct=1
>> --thinktime=1000
>> [...]
>>    read : io=17668KB, bw=3340.6KB/s, iops=835, runt=  5289msec
>>
>> I tried your 10s as well, works too.
 >
 > Interesting. It Windows version?

(please don't top post!)

It's possible, the Windows part does have its own nanosleep() function, 
which fio calls for this part. That's the only OS dependent bit in this 
equation.

Bruce?

-- 
Jens Axboe



  reply	other threads:[~2015-05-13 15:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13 14:23 --thinktime seems not work Rodrigo Ribeiro Gomes
2015-05-13 14:33 ` Jens Axboe
2015-05-13 14:37   ` Rodrigo Ribeiro Gomes
2015-05-13 15:11     ` Jens Axboe [this message]
2015-05-13 15:33       ` Rodrigo Ribeiro Gomes
2015-05-13 17:28         ` Jens Axboe
2015-05-13 23:01       ` Bruce Cran
2015-05-14 15:33         ` Jens Axboe
2015-05-13 14:29 rodrigo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=555369BA.4040101@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=bruce@cran.org.uk \
    --cc=fio@vger.kernel.org \
    --cc=rodrigorigomes@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.