Skip to contentSkip to conversation

: Query on dmstats(8)

DISCUSSION Nalla, Ravikanth 2 participants 2 messages Dec 21, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

In dmstats(8) man page, what is the exact difference between "read_time" and "read_ticks" and also the exact difference between "write_nsecs" and "write_ticks"?

read_time
Accumulated duration of all read requests (ns).
read_ticks
Nanoseconds spent servicing reads.

write_nsecs
Accumulated duration of all write requests (ns).
write_ticks
Nanoseconds spent servicing writes.

Thanks,
Ravi

#1 lore raw

Hi Ravi,

Quoted 6 lines · Ravikanth

In dmstats(8) man page, what is the exact difference between "read_time" and "read_ticks" and also the exact difference between "write_nsecs" and "write_ticks"?

read_time
Accumulated duration of all read requests (ns).

The two "time" fields are the accumulated durations of reads and writes - i.e. the difference between the operation end and start times, summed for all reads or writes during the current interval.

Quoted 1 line

write_nsecs

'write_nsecs' is a typo in the man page - it should be 'write_time': I'll get that fixed. The tool help ('dmstats help') has the correct names:

write_time - Accumulated duration of all writes (ns).

Quoted 4 lines

read_ticks
Nanoseconds spent servicing reads.
write_ticks
Nanoseconds spent servicing writes.

These are the times spent actively servicing requests (as opposed to the time spent in queues, or waiting for hardware IO to finish etc).

The tool help output will always give you up-to-date information on the supported columns - there's also a bit more detail in the kernel documentation at Documentation/device-mapper/statistics.txt.

Regards,
Bryn.