summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-20 10:37:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-21 12:16:28 +0000
commitf95a645dd4fbb98afe6f10cd28d5908bbe845fbc (patch)
treeecf3a5a09c272de5bce44efb28622ac00d2c3f79 /bitbake/lib
parentb97de63d2feaeb7710b7550dfc4144f41f5c8fc6 (diff)
downloadpoky-f95a645dd4fbb98afe6f10cd28d5908bbe845fbc.tar.gz
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/runqueue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 1b5b58f352..61608ac603 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -3318,7 +3318,7 @@ class runQueuePipe():
3318 3318
3319 start = len(self.queue) 3319 start = len(self.queue)
3320 try: 3320 try:
3321 self.queue.extend(self.input.read(102400) or b"") 3321 self.queue.extend(self.input.read(512 * 1024) or b"")
3322 except (OSError, IOError) as e: 3322 except (OSError, IOError) as e:
3323 if e.errno != errno.EAGAIN: 3323 if e.errno != errno.EAGAIN:
3324 raise 3324 raise