[OE-core] [PATCH 0/1] Don't assume /proc/<pid>/io present
Juro Bystricky
juro.bystricky at intel.com
Sat Feb 20 01:37:21 UTC 2016
Latest enhancements to collect task statistics in the file
buildstats.bbclass also collect task I/O statistics using procfs interface.
However, it is not guaranteed the I/O counters are actually present. This depends
on how the kernel was configured. If the kernel was configured without
CONFIG_TASK_IO_ACCOUNTING=y, the corresponding procfs entries are missing.
This has been in fact observed in the wild (Build Appliance).
If we try to read the non-existent counters, we will basically hang bitbake.
The attached patch file checks for missing procfs entries and avoids
reading them if not present.
Bitbake will also issue a one-time warning message at the start of a build.
Juro Bystricky (1):
buildstats.bbclass: Don't assume /proc/<pid>/io present
meta/classes/buildstats.bbclass | 24 ++++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)
--
1.9.1
More information about the Openembedded-core
mailing list