All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/4] system statistics sampling
@ 2016-11-29 16:47 Patrick Ohly
  2016-11-29 16:47 ` [PATCH V2 1/4] cooker process: fire heartbeat event at regular time intervals Patrick Ohly
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Patrick Ohly @ 2016-11-29 16:47 UTC (permalink / raw)
  To: bitbake-devel

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-29 16:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-29 16:47 [PATCH V2 0/4] system statistics sampling Patrick Ohly
2016-11-29 16:47 ` [PATCH V2 1/4] cooker process: fire heartbeat event at regular time intervals Patrick Ohly
2016-11-29 16:47 ` [PATCH V2 2/4] runqueue.py: monitor disk space " Patrick Ohly
2016-11-29 16:47 ` [PATCH V2 3/4] monitordisk.py: minor code and comment cleanup Patrick Ohly
2016-11-29 16:47 ` [PATCH V2 4/4] monitordisk: add event Patrick Ohly

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.