Skip to content
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

build system: allow limiting the concurrent number of link jobs #557

Open
pjonsson opened this issue Aug 25, 2023 · 2 comments
Open

build system: allow limiting the concurrent number of link jobs #557

pjonsson opened this issue Aug 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@pjonsson
Copy link
Collaborator

With ccache, it's possible that building the object files is almost immediate, so the only long running commands are the linking jobs. Running too many concurrent linking jobs is usually bad for performance, so it would be nice to be able to limit that.

Did a quick search and there is apparently support in Meson for that: https://mesonbuild.com/Build-options.html#max-links

@keith-packard
Copy link
Collaborator

Given that meson already limits parallel operations to the number of cores available, and given that CI hosts have so few, is this necessary?

@pjonsson
Copy link
Collaborator Author

I think you're right about the Github CI, my main concern for this ticket was actually my home computer (cheap to get 20+ "cores" today). But I think this ticket is also relevant for downstream users of picolibc who have their own CI.

If the effort/code required for this is high, I think you should close the ticket.

@keith-packard keith-packard added the enhancement New feature or request label Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants