https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127651

--- Comment #5 from Itamar Turner-Trauring <itamar at pythonspeed dot com> ---
Using both CPU pinning and CPU quotas at the same time can lead to some weird
edge cases, yes.

In any case, whatever your opinion of cgroups APIs, the reality is that:

1. cgroups has massive real-world usage, via Kubernetes, Docker, systemd
containers, and more.
2. cgroups is actively used to limit the number of CPU cores available, using
amechanism that distinct from pinning.
3. libgomp doesn't respect these limits when choosing how many threads to use,
leading to CPU oversubscription.

Reply via email to