bitbake: bitbake-worker/cooker: Increase default pipe size

The default pipe size is 64kb on builds, which can be inefficient
for larger log files from workers. Increase the pipe size to 512kb
since build systems have decent amounts of memory and this is a more
efficient way of batching the data.

Tweak the default read sizes to match the pipe size for efficiency.

Since the contstant is only present in python 3.10 onwards, add
some compatibility code.

(Bitbake rev: 69c14e46600ba5ae9703f67704ab2548875ae6d7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2024-11-20 10:37:04 +00:00
parent b97de63d2f
commit f95a645dd4
2 changed files with 13 additions and 3 deletions

View File

@@ -3318,7 +3318,7 @@ class runQueuePipe():
start = len(self.queue)
try:
self.queue.extend(self.input.read(102400) or b"")
self.queue.extend(self.input.read(512 * 1024) or b"")
except (OSError, IOError) as e:
if e.errno != errno.EAGAIN:
raise