[bitbake-devel] [PATCH V2 0/4] system statistics sampling
Patrick Ohly
patrick.ohly at intel.com
Tue Nov 29 16:47:41 UTC 2016
These patches are a precondition for the corresponding patches to
OE-core. See https://bugzilla.yoctoproject.org/show_bug.cgi?id=10583
The original motivation for the heartbeat event was the system
statistics sampling, but it also turned out to be useful for
monitoring disks more deterministically. That improvement is also
included here and shows that the heartbeat mechanism is useful also
without the OE-core patches.
These changes work when using the normal, non-memory-resident bitbake.
When testing with memres bitbake, the bb.warn() output about invalid
BB_HEARTBEAT_EVENT was not visible (neither console nor log file) and
events also didn't seem to get triggered. This needs further analysis
once memres is ready. Tracked as YOCTO #10741.
Changes in V2:
"runqueue.py: monitor disk space at regular time intervals" was changed
so that it registers and unregisters the event handler during the build.
The following changes since commit d140f0ee6f301264e226914766d9f63558acfd6c:
COW.py: fix sample codes (2016-11-23 10:59:49 +0000)
are available in the git repository at:
git://github.com/pohly/bitbake heartbeat
https://github.com/pohly/bitbake/tree/heartbeat
Patrick Ohly (4):
cooker process: fire heartbeat event at regular time intervals
runqueue.py: monitor disk space at regular time intervals
monitordisk.py: minor code and comment cleanup
monitordisk: add event
lib/bb/event.py | 27 +++++++++++++++++++++++++++
lib/bb/monitordisk.py | 23 ++++++++++++++---------
lib/bb/runqueue.py | 24 +++++++++++++++++++-----
lib/bb/server/process.py | 25 +++++++++++++++++++++++++
lib/bb/ui/knotty.py | 1 +
lib/bb/ui/toasterui.py | 3 +++
6 files changed, 89 insertions(+), 14 deletions(-)
--
2.1.4
More information about the bitbake-devel
mailing list