diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-24 21:41:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-29 11:22:06 +0000 |
commit | 3d34ae6c11bc2e800f784740c54b2dd2029658ed (patch) | |
tree | b3c0b766e39dfbd5c5817410ba586e92f85252ae /scripts/gen-lockedsig-cache | |
parent | 71b7c3a88ec5a20d5e4531751d0bf23d5c94e494 (diff) | |
download | poky-3d34ae6c11bc2e800f784740c54b2dd2029658ed.tar.gz |
bitbake: bitbake-worker: Handle cooker/worker IO deadlocking
I noiced builds where tasks seemed to be taking a surprisingly long time.
When I looked at the output of top/pstree, these tasks were no longer
running despite being listed in knotty. Some were in D/Z state waiting for
their exit code to be collected, others were simply not present at all.
strace showed communication problems between the worker and cooker, each
was trying to write to the other and nearly deadlocking. Eventually, timeouts
would allow them to echange 64kb of data but this was only happening every
few seconds.
Whilst this particularly affected builds on machines with large numbers
of cores (and hence highly parallal task execution) and in cases where
I had a lot of debug enabled, this situation is clearly bad in general.
This patch introduces a thread to the worker which is used to write data
back to cooker. This means that the deadlock can't occur and data flows
much more freely and effectively.
(Bitbake rev: 3cb0d1c78b4c2e4f251a59b86c8da583828ad08b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/gen-lockedsig-cache')
0 files changed, 0 insertions, 0 deletions