diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-05 15:04:18 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-07 13:36:04 +0000 |
| commit | fc027ef55fa5e03b6fd6241161fa46b3e1bd10d2 (patch) | |
| tree | 2f053d0907b95883f7c9af75414a1554b02a917b | |
| parent | 9500cf65a7c4e18ae4b994037f5b6b41af4b6dd9 (diff) | |
| download | poky-fc027ef55fa5e03b6fd6241161fa46b3e1bd10d2.tar.gz | |
bitbake: server/process: Decrease idle/main loop frequency
The idle and main loops have socket select calls to know when to execute.
This means we can increase the normal timeout frequency since this is
just a fall back and have some small efficiency gains.
(Bitbake rev: 8d8e17af8619c976819170c9d5d9a686a666c317)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/server/process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index b627ae0ab6..4b35be62cd 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
| @@ -329,7 +329,7 @@ class ProcessServer(): | |||
| 329 | bb.error("Idle thread terminated, main thread exiting too") | 329 | bb.error("Idle thread terminated, main thread exiting too") |
| 330 | self.quit = True | 330 | self.quit = True |
| 331 | 331 | ||
| 332 | nextsleep = 0.1 | 332 | nextsleep = 1.0 |
| 333 | if self.xmlrpc: | 333 | if self.xmlrpc: |
| 334 | nextsleep = self.xmlrpc.get_timeout(nextsleep) | 334 | nextsleep = self.xmlrpc.get_timeout(nextsleep) |
| 335 | try: | 335 | try: |
| @@ -439,7 +439,7 @@ class ProcessServer(): | |||
| 439 | self.idle_cond.notify_all() | 439 | self.idle_cond.notify_all() |
| 440 | 440 | ||
| 441 | while not self.quit: | 441 | while not self.quit: |
| 442 | nextsleep = 0.1 | 442 | nextsleep = 1.0 |
| 443 | fds = [] | 443 | fds = [] |
| 444 | 444 | ||
| 445 | with bb.utils.lock_timeout(self._idlefuncsLock): | 445 | with bb.utils.lock_timeout(self._idlefuncsLock): |
