-
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
Support cpu limit in docker #1827
Conversation
Any idea why 1bcc689 did work for me? |
bf20848
to
8b2dd9d
Compare
I notice that there are many arguments about cpu-limit. so 1bcc689 work only when we should use minimal args when they both active. windows docker don't support
|
Thanks! The detection code is quite long (especially the cgroups version). If we include this, we should definitely not run it, if the user specified a job count with |
I have modified |
Thanks and nice approach using the destructor to set it at the end of the scope :) Looking forward to some further comments by others. |
Successfully tested with following configuration:
|
Anyone tested on Linux, especially start up time in different scenarios? (no idea how taxing those |
I tested with my version
system ninja
|
@jhasse: Anything else to get this PR merged? |
close #1824
on windows docker with process isolation, use job api to get cpu limit.
on linux docker, use cgroups to get cpu limit.