summaryrefslogtreecommitdiffstats
path: root/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-28 10:21:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-28 10:30:04 +0000
commitc8d8388ce9662574a390be3b849c07d1b044275d (patch)
treec1c5bb510e3683d5daf869a2a269a78fda9afca6 /lib/bb/runqueue.py
parent5bc773d46166938e68a17564a94ca1a7e62f00f1 (diff)
downloadbitbake-c8d8388ce9662574a390be3b849c07d1b044275d.tar.gz
bitbake/runqueue.py: Avoid starvation of events to the server
The server UI was reading 1024 bytes, then sleeping for 0.25 seconds. Since most new LogRecord events are larger than this it leads to a build up of data which is only processed slowly, leading to a bottleneck and a slow down of all bitbake processes. Thanks to Dongxiao Xu <dongxiao.xu@intel.com> for the great work in debugging this. A large value has been left in for the read() command just to ensure some fairness amongst process handling if a task tries to log truly huge amounts of data to the server, or goes crazy and ensures the main loop doesn't stall. (From Poky rev: 06c6db7929c75f576a395fb442abe447b833fc3b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r--lib/bb/runqueue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 8804e710c..db626e9f5 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1596,7 +1596,7 @@ class runQueuePipe():
def read(self):
start = len(self.queue)
try:
- self.queue = self.queue + self.input.read(1024)
+ self.queue = self.queue + self.input.read(102400)
except (OSError, IOError):
pass
end = len(self.queue)