public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 0/1] buildstats.bbclass: add functionality to collect
@ 2020-10-23 16:56 Sakib Sajal
  2020-10-23 16:56 ` [PATCH 1/1] buildstats.bbclass: add functionality to collect build system stats Sakib Sajal
  0 siblings, 1 reply; 5+ messages in thread
From: Sakib Sajal @ 2020-10-23 16:56 UTC (permalink / raw)
  To: openembedded-core

This functionality allows users to log host stats on a regualar
interval and/or upon failure.

Initial implementation design was to predefine a list of commands
to collect host system stats.

Obstacles:
Event TaskFailed runs in recipe specific environments, ie, the PATH
variable does not point to host tools. Moreover, having a predefined
list of tools to run is rigid and many of the tools may not be
available on the host system.

Solution:
Allow users to specify the tools with the absolute path, as well as 
the desired options to be run. The onus is on the users to make sure the
tools exist and the command runs to completion and exits.

Built core-image-minimal with an interval of 10s which resulted in a
log file of size 15Mb at a cost of 1-2% increase in build time.
core-image-minimal tmp-glibc is ~20Gb, and this increase is a trivial
increase.

Grepping the log file for specific tokens give a useful indication of
how the system resources are being used.

To Do:
1) Do selftests need to be added for this functionality?
2) Documentation about the usage.

Sakib Sajal (1):
  buildstats.bbclass: add functionality to collect build system stats

 meta/classes/buildstats.bbclass | 33 ++++++++++++++++++++++++++++++---
 1 file changed, 30 insertions(+), 3 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2020-10-28 14:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-23 16:56 [PATCH 0/1] buildstats.bbclass: add functionality to collect Sakib Sajal
2020-10-23 16:56 ` [PATCH 1/1] buildstats.bbclass: add functionality to collect build system stats Sakib Sajal
2020-10-23 17:25   ` [OE-core] " Christopher Larson
2020-10-23 18:58     ` Sakib Sajal
2020-10-28 14:27   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox