Skip to content

feat: support setting the cores a container should use#120

Merged
syphar merged 1 commit intorust-lang:mainfrom
syphar:cpu-cores
Apr 7, 2026
Merged

feat: support setting the cores a container should use#120
syphar merged 1 commit intorust-lang:mainfrom
syphar:cpu-cores

Conversation

@syphar
Copy link
Copy Markdown
Member

@syphar syphar commented Apr 7, 2026

With --cpus it can happen that this quota-based scheduler stops a build on a core even when there is still capacity available. So directly assigning CPU cores works better.

See the docker docs.

Even when a core is used by a builder and a little by the webserver, we would be fine, the OS scheduler would manage that.

@syphar syphar self-assigned this Apr 7, 2026
@syphar syphar marked this pull request as draft April 7, 2026 13:30
@syphar syphar requested a review from GuillaumeGomez April 7, 2026 14:26
@syphar syphar marked this pull request as ready for review April 7, 2026 14:26
@syphar syphar merged commit 2323682 into rust-lang:main Apr 7, 2026
5 checks passed
@syphar syphar deleted the cpu-cores branch April 7, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants