]> code.ossystems Code Review - openembedded-core.git/commit
buildstats.bbclass: Adding disk io measurement
authorBeth Flanagan <elizabeth.flanagan@intel.com>
Wed, 3 Aug 2011 19:31:08 +0000 (12:31 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Aug 2011 16:12:59 +0000 (17:12 +0100)
commiteeebcebf0d695358e72f3aed753f66cddd5e0e61
treeb19623875da6fb1474c650c54f141d75bf8e5274
parent96931af89f9cc3056e413cff437a85eca85b3b75
buildstats.bbclass: Adding disk io measurement

This commit adds disk-io statistics functionality on a build
and per-task basis.

It pulls measurements for whatever partition TMPDIR exists on.
This data could be off if SSTATE_DIR and DL_DIR exist on
a different partition/volume.

Notes on what this pulls:

ReadsComp: Total number of reads complete
ReadsMerged: Total number of adjacent reads merged
SectRead: Total number of sectors read
TimeReads: Total number of m/s spent reading
WritesComp: Total number of writes completed
SectWrite: Total number of sectors written
TimeWrite: Total number of m/s spent writing
IOinProgress: Total amount of IO in progress at the time of
              we look at /proc/diskstats.
TimeIO: Total number of m/s spent doing IO
WTimeIO: Weighted time doing I/O. From iostats.txt:

"This field is incremented at each I/O start, I/O completion, I/O
 merge, or read of these stats by the number of I/Os in progress
 (field 9) times the number of milliseconds spent doing I/O since the
 last update of this field.  This can provide an easy measure of both
 I/O completion time and the backlog that may be accumulating."

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
meta/classes/buildstats.bbclass