lkml.org 
[lkml]   [2008]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Higher than expected disk write(2) latency
David Newall wrote:
> Martin Lucina wrote:
>> Measurement of the write(2) time is performed using the TSC, so any
>> latency there is negligible.
>
> Measuring each write is lavish and bound to impact the results. To
> measure sustained throughput, get the time only at start and end, and
> divide the difference by the number of writes.

Hi,

We're using RDTSC to measure time, which takes ~30 nanoseconds to
complete. I would say this is negligible given that latency of a write
is 5 orders of magnitude higher.

Martin



\
 
 \ /
  Last update: 2008-06-29 14:05    [from the cache]
©2003-2011 Jasper Spaans