-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No options to use isolated CPU cores #2539
Comments
Try using Linux cgroups instead. For example, if you have systemd on your system: |
Looks like cgroups / systemd-run is not working properly on your system. You could try verifying that by starting a scoped shell then looking at the content of /proc/cpuinfo to check that it reflects the range you gave, e.g.:
|
Hi, [user@linux build]sudo systemd-run --scope --property AllowedCPUs=0-19 sudo -u $USER bash -i I couldn't come early one this. Just tried your hint, but still same. Once cores are isolated from OS via 'tuned' Linux GPS will not be knowing that it has these cores. May be that's why this scope thing is not working. I have to explore about it. More suggestions are welcome. Thanks for the suggestions so far. Cheers ! |
Hi,
I'm working on a Linux system with Realtime Kernel, and I have most of the core isolated by tuned. 'isolated' in general if you don't know is that Linux OS cannot use these cores to run anything until you explicitly specify.
Now I have around 32 cores, where system is running only on 2 cores, rest of the cores isolated for Realtime software to run. Now whenever I have to compile this big Realtime software, building takes too much as ninja-build only can run 2 cores. While others are just idle.
Please provide an option so that ninja-build can launch compiler threads on a user provided core list. Below can be examples
ninja --core-list=1-31
ninja --core-list=1,2,3,4-20,25-27
Thanks
The text was updated successfully, but these errors were encountered: