From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <555360BE.6010303@kernel.dk> Date: Wed, 13 May 2015 10:33:34 -0400 From: Jens Axboe MIME-Version: 1.0 Subject: Re: --thinktime seems not work References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Rodrigo Ribeiro Gomes , fio@vger.kernel.org List-ID: 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. -- Jens Axboe