Return-Path: MIME-Version: 1.0 In-Reply-To: <20100427064224.GX27497@kernel.dk> References: <4BD62D8A.5050109@auckland.ac.nz> <20100427064224.GX27497@kernel.dk> Date: Tue, 27 Apr 2010 18:49:02 +1200 Message-ID: Subject: Re: Using offsets in fio From: DongJin Lee Content-Type: multipart/alternative; boundary=000e0cdf1bd8fbe22704853249b5 To: Jens Axboe Cc: Michael O'Sullivan , fio@vger.kernel.org List-ID: --000e0cdf1bd8fbe22704853249b5 Content-Type: text/plain; charset=ISO-8859-1 So for example, you'd expect, for example, at the end of 1TB position (1073741824 bytes) the offset is to be 1073741824 ? and similarly for end of 2TB position, the offset would be the twice? Regards On Tue, Apr 27, 2010 at 6:42 PM, Jens Axboe wrote: > On Tue, Apr 27 2010, Michael O'Sullivan wrote: > > Hi everyone, > > > > We are using fio to emulate the SPC-1 benchmark (we hope to get this > > included as a --profile in fio in the not too distant future). However, > > we have noticed that when running our benchmark the disk we are testing > > does not seem to be overly busy seeking to different locations on the > > disk. When we run tests using Iometer we can hear the disk seeking to > > different sections of the disk pretty much the whole time. We are using > > io_u->offset to define the position in the file we wish to read/write > > at, but it is not clear to us whether this is having the desired effect. > > It doesn't seem so at this point... We have been using the sync and > > libaio engines. > > io_u->offset is the byte offset that the engine will seek to before > performing IO, so whatever you put in there will be the real offset. If > the disk doesn't sound as busy as it should, perhaps it's because > iometer drives a higher queue depth as well? > > > Can someone please give us some advice to help us troubleshoot this > > problem? Or point us to a tool that will let us see where fio is > > reading/writing on the disk? Any help is greatly appreciated. > > For shorter samples, you could always just strace fio and see what it's > doing. For a better view, you could use blktrace. > > -- > Jens Axboe > > --000e0cdf1bd8fbe22704853249b5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So for example, you'd expect, for example,
at the end of 1TB positi= on (1073741824 bytes) the offset is to be 1073741824 ?
and similarly for= end of 2TB position, the offset would be the twice?

Regards


On Tue, Apr 27, 2010 at 6:42 PM, Jens Axboe = <jens.axboe@o= racle.com> wrote:
On Tue, Apr 27 2010, Michael O'Sullivan wrote:
> Hi everyone,
>
> We are using fio to emulate the SPC-1 benchmark (we hope to get this > included as a --profile in fio in the not too distant future). However= ,
> we have noticed that when running our benchmark the disk we are testin= g
> does not seem to be overly busy seeking to different locations on the<= br> > disk. When we run tests using Iometer we can hear the disk seeking to<= br> > different sections of the disk pretty much the whole time. We are usin= g
> io_u->offset to define the position in the file we wish to read/wri= te
> at, but it is not clear to us whether this is having the desired effec= t.
> It doesn't seem so at this point... We have been using the sync an= d
> libaio engines.

io_u->offset is the byte offset that the engine will seek to befor= e
performing IO, so whatever you put in there will be the real offset. If
the disk doesn't sound as busy as it should, perhaps it's because iometer drives a higher queue depth as well?

> Can someone please give us some advice to help us troubleshoot this > problem? Or point us to a tool that will let us see where fio is
> reading/writing on the disk? Any help is greatly appreciated.

For shorter samples, you could always just strace fio and see what it= 's
doing. For a better view, you could use blktrace.

--
Jens Axboe


--000e0cdf1bd8fbe22704853249b5--