All of lore.kernel.org
 help / color / mirror / Atom feed
* What's the right way to measure latency?
@ 2009-04-26 13:44 Chris Worley
  2009-04-26 13:49 ` Joshua Aune
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Worley @ 2009-04-26 13:44 UTC (permalink / raw)
  To: fio

I'm trying to measure latency.  Is this the right incantation for "8KB
block write latency"?

fio --name=test --numjobs=1 --bs=8k --rw=randwrite --sync=0 --direct=1
--iodepth=1 --ioengine=libaio --loops=1 --size=16091503001
--filename=/dev/sdb

... I figure I can only measure latency w/ just one thread and no
outstanding I/O's.

The results show two latency numbers: clat and slat... what are these?

Thanks,

Chris

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

* Re: What's the right way to measure latency?
  2009-04-26 13:44 What's the right way to measure latency? Chris Worley
@ 2009-04-26 13:49 ` Joshua Aune
  2009-04-27  6:03   ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua Aune @ 2009-04-26 13:49 UTC (permalink / raw)
  To: Chris Worley; +Cc: fio


On Apr 26, 2009, at 7:44 AM, Chris Worley wrote:

> The results show two latency numbers: clat and slat... what are these?

slat is not there for the sync engines but exists for libaio, submit  
latency.  clat sounds like completion latency.

Josh

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

* Re: What's the right way to measure latency?
  2009-04-26 13:49 ` Joshua Aune
@ 2009-04-27  6:03   ` Jens Axboe
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2009-04-27  6:03 UTC (permalink / raw)
  To: Joshua Aune; +Cc: Chris Worley, fio

On Sun, Apr 26 2009, Joshua Aune wrote:
>
> On Apr 26, 2009, at 7:44 AM, Chris Worley wrote:
>
>> The results show two latency numbers: clat and slat... what are these?
>
> slat is not there for the sync engines but exists for libaio, submit  
> latency.  clat sounds like completion latency.

It's in the HOWTO :-)

Basically slat is the time it too to enter the kernel and submit the IO
(submission latency) and clat is the time it took from submission to the
IO completed (completion latency). With the sync engines you cannot
separate the two, since when the submission syscall completes the IO has
also completed. Hence they have only clat numbers, where the async
engine has the ability to measure both.

-- 
Jens Axboe


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

end of thread, other threads:[~2009-04-27  6:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-26 13:44 What's the right way to measure latency? Chris Worley
2009-04-26 13:49 ` Joshua Aune
2009-04-27  6:03   ` Jens Axboe

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.