-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[engine] Limit number of active subprocesses
Previously the number of concurrent subprocess invocations launched by `ctx.os.exec()` was unbounded, which could place a strain on the system. Now there's effectively a pool of NumCPU+2 workers for running subprocesses. `ctx.os.exec()` returns immediately, but the underlying subprocess is started asynchronously. `ba -against main` showed no significant difference in the results of the `ctx.os.exec()` benchmarks. Change-Id: I76e4542249783c9a503f0f927e327e9f90f8bb04 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/867979 Reviewed-by: Ina Huh <[email protected]> Commit-Queue: Oliver Newman <[email protected]>
- Loading branch information
Showing
5 changed files
with
68 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters