xapi-project/xcp-rrdd — pull request #17 by siddharthv (2014-07-24 06:30:49+00:00)
Title: CA-136792: Create IO metrics from '/dev/shm' and sysfs.

With blktap3, blkback is not on the datapath except for rare occasions.
The statistics originally produced by blkback are now done from tapdisk.
This patch attempts to acquire statistics from under '/dev/shm'
and sysfs to generate only valid datasources.

In case we obtain stats from both sysfs and '/dev/shm':
- We take the maximum value for usecs from amongst sysfs and shm
- We average the values for the read and write metrics

Signed-off-by: Siddharth Vinothkumar