* correct file size to use
@ 2014-03-15 11:10 jvogt
2014-03-16 12:12 ` Ming Lei
0 siblings, 1 reply; 9+ messages in thread
From: jvogt @ 2014-03-15 11:10 UTC (permalink / raw)
To: fio
Hi list
I was wondering:
When i start
fio --name=/srv/mail/test --size=10M --direct=1 --runtime=60
--time_based --group_reporting --refill_buffer --rw=read --numjobs=1
I get as result:
read : io=1177.4MB, bw=20093KB/s, iops=5023, runt= 60000msec
But when I do a
fio --name=/srv/mail/test --size=10G --direct=1 --runtime=60
--time_based --group_reporting --refill_buffer --rw=read --numjobs=1
The result is:
read : io=976692KB, bw=16278KB/s, iops=4069, runt= 60001msec
(decrease of 20%, in some scenarios it's even worse with more than 30%)
So how does the file size influence the speed (iops, bandwith)? My
understanding was that it is not important from which filesize we are
reading from - important is the block size and if the filesize is not
big enough, fio just restarts to read the file from the beginning. How
can that be explained? And which sizes should be used to get reliable
results?
Thanks
Josef
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: correct file size to use
2014-03-15 11:10 correct file size to use jvogt
@ 2014-03-16 12:12 ` Ming Lei
2014-03-16 23:16 ` Matthew Eaton
0 siblings, 1 reply; 9+ messages in thread
From: Ming Lei @ 2014-03-16 12:12 UTC (permalink / raw)
To: jvogt; +Cc: fio
On Sat, Mar 15, 2014 at 7:10 PM, jvogt <jvogt@adon.li> wrote:
> Hi list
>
> I was wondering:
> When i start
> fio --name=/srv/mail/test --size=10M --direct=1 --runtime=60 --time_based
> --group_reporting --refill_buffer --rw=read --numjobs=1
>
> I get as result:
> read : io=1177.4MB, bw=20093KB/s, iops=5023, runt= 60000msec
From fio/HOWTO:
time_based If set, fio will run for the duration of the runtime
specified even if the file(s) are completely read or
written. It will simply loop over the same workload
as many times as the runtime allows.
The same 10M file will be read many times(118), so most
of times it is read from page cache instead of the file, and
the result can't be accurate enough.
Thanks,
--
Ming Lei
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: correct file size to use
2014-03-16 12:12 ` Ming Lei
@ 2014-03-16 23:16 ` Matthew Eaton
2014-03-17 2:02 ` Carl Zwanzig
2014-03-17 2:55 ` Ming Lei
0 siblings, 2 replies; 9+ messages in thread
From: Matthew Eaton @ 2014-03-16 23:16 UTC (permalink / raw)
To: Ming Lei; +Cc: jvogt, fio
On Sun, Mar 16, 2014 at 5:12 AM, Ming Lei <tom.leiming@gmail.com> wrote:
> On Sat, Mar 15, 2014 at 7:10 PM, jvogt <jvogt@adon.li> wrote:
>> Hi list
>>
>> I was wondering:
>> When i start
>> fio --name=/srv/mail/test --size=10M --direct=1 --runtime=60 --time_based
>> --group_reporting --refill_buffer --rw=read --numjobs=1
>>
>> I get as result:
>> read : io=1177.4MB, bw=20093KB/s, iops=5023, runt= 60000msec
>
> From fio/HOWTO:
>
> time_based If set, fio will run for the duration of the runtime
> specified even if the file(s) are completely read or
> written. It will simply loop over the same workload
> as many times as the runtime allows.
>
> The same 10M file will be read many times(118), so most
> of times it is read from page cache instead of the file, and
> the result can't be accurate enough.
>
>
>
> Thanks,
> --
> Ming Lei
> --
> To unsubscribe from this list: send the line "unsubscribe fio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Tested on my system and saw no difference in performance. Direct io
will bypass the page cache so the only thing that comes to mind would
be an on-device cache, though, I would think the difference in
performance would be more dramatic if that were the case.
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: correct file size to use
2014-03-16 23:16 ` Matthew Eaton
@ 2014-03-17 2:02 ` Carl Zwanzig
2014-03-17 2:55 ` Ming Lei
1 sibling, 0 replies; 9+ messages in thread
From: Carl Zwanzig @ 2014-03-17 2:02 UTC (permalink / raw)
To: Matthew Eaton, Ming Lei; +Cc: jvogt, fio@vger.kernel.org
[sorry for the lack of quoting, OWA doesn't do it nicely.]
Which OS & file system? If the storage target is an NFS mount, you'll still have the server cache. Also, IIRC solaris doesn't honor direct=1 anyway. If zfs is involved.... there's no escaping it's optimizations :).
Please give us more info about the setup.
z!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: correct file size to use
2014-03-16 23:16 ` Matthew Eaton
2014-03-17 2:02 ` Carl Zwanzig
@ 2014-03-17 2:55 ` Ming Lei
2014-03-17 20:13 ` jvogt
1 sibling, 1 reply; 9+ messages in thread
From: Ming Lei @ 2014-03-17 2:55 UTC (permalink / raw)
To: Matthew Eaton; +Cc: jvogt, fio
On Mon, Mar 17, 2014 at 7:16 AM, Matthew Eaton
>
> Tested on my system and saw no difference in performance. Direct io
> will bypass the page cache so the only thing that comes to mind would
Looks I miss the '--direct=1' parameter, :-(
> be an on-device cache, though, I would think the difference in
> performance would be more dramatic if that were the case.
Another possible cause might be related with storage for the
big file. If the file is stored in lot of fragments of the disk, accessing
the whole file might become slower than just the first 10M, but not
sure if there is so big difference(30%).
Thanks,
--
Ming Lei
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: correct file size to use
2014-03-17 2:55 ` Ming Lei
@ 2014-03-17 20:13 ` jvogt
2014-03-17 20:34 ` Sitsofe Wheeler
0 siblings, 1 reply; 9+ messages in thread
From: jvogt @ 2014-03-17 20:13 UTC (permalink / raw)
To: Ming Lei, Matthew Eaton, fio, Carl Zwanzig
Am 17.03.2014 03:55, schrieb Ming Lei:
> On Mon, Mar 17, 2014 at 7:16 AM, Matthew Eaton
>> Tested on my system and saw no difference in performance. Direct io
>> will bypass the page cache so the only thing that comes to mind would
> Looks I miss the '--direct=1' parameter, :-(
>
>> be an on-device cache, though, I would think the difference in
>> performance would be more dramatic if that were the case.
> Another possible cause might be related with storage for the
> big file. If the file is stored in lot of fragments of the disk, accessing
> the whole file might become slower than just the first 10M, but not
> sure if there is so big difference(30%).
> Direct io
will bypass the page cache so the only thing that comes to mind would
be an on-device cache, though, I would think the difference in
performance would be more dramatic if that were the case.
This could be possible - I'm not so sure how to check that...
My setup is the following:
RHEL6.5 as virtual machine via VMWare - the storage is a Dell Equallogic
Storage connected via ISCSI to the host. These tests are not made via NFS.
I just wanted to make some tests before taking it all in production.
Thank you all for your answers!
Josef
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: correct file size to use
2014-03-17 20:13 ` jvogt
@ 2014-03-17 20:34 ` Sitsofe Wheeler
2014-03-17 20:40 ` jvogt
0 siblings, 1 reply; 9+ messages in thread
From: Sitsofe Wheeler @ 2014-03-17 20:34 UTC (permalink / raw)
To: jvogt; +Cc: Ming Lei, Matthew Eaton, fio, Carl Zwanzig
On Mon, Mar 17, 2014 at 09:13:47PM +0100, jvogt wrote:
>
> I just wanted to make some tests before taking it all in production.
> Thank you all for your answers!
If you want raw upper maximum numbers try using direct=1 ioengine=libaio
with an appropriate iodepth against the openiscsi block device. Bear in
mind things like iodepth and whether coalescing can take place can make
a huge difference...
--
Sitsofe | http://sucs.org/~sits/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: correct file size to use
2014-03-17 20:34 ` Sitsofe Wheeler
@ 2014-03-17 20:40 ` jvogt
2014-03-18 0:54 ` Carl Zwanzig
0 siblings, 1 reply; 9+ messages in thread
From: jvogt @ 2014-03-17 20:40 UTC (permalink / raw)
To: Sitsofe Wheeler; +Cc: Ming Lei, Matthew Eaton, fio, Carl Zwanzig
Am 17.03.2014 21:34, schrieb Sitsofe Wheeler:
> On Mon, Mar 17, 2014 at 09:13:47PM +0100, jvogt wrote:
>> I just wanted to make some tests before taking it all in production.
>> Thank you all for your answers!
> If you want raw upper maximum numbers try using direct=1 ioengine=libaio
> with an appropriate iodepth against the openiscsi block device. Bear in
> mind things like iodepth and whether coalescing can take place can make
> a huge difference...
Please explain, what do you mean with appropriate iodepth? What would
you suggest?
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-03-18 0:55 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-15 11:10 correct file size to use jvogt
2014-03-16 12:12 ` Ming Lei
2014-03-16 23:16 ` Matthew Eaton
2014-03-17 2:02 ` Carl Zwanzig
2014-03-17 2:55 ` Ming Lei
2014-03-17 20:13 ` jvogt
2014-03-17 20:34 ` Sitsofe Wheeler
2014-03-17 20:40 ` jvogt
2014-03-18 0:54 ` Carl Zwanzig
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.