Skip to content

Better handle parallelism in cache priming #19721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Apr 30, 2025

Make best use of all available CPU cores.

Closes #19711.

Also change the flags of the prime-caches CLI command, and make it parallel by default.

This saves 0.305ms in the parallel prime-caches on omicron, although the benchmarks were very noisy.

I ran into a Salsa panic while running parallel prime caches on buck2... Need to debug that, but it doesn't reproduce now.

To make best use of available cores, and don't waste time waiting for other tasks. See the comments in the code for explanation.
And make it parallel by default (and remove the `--parallel` flag) to mirror the IDE cache priming.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants