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

Expected Behavior of --include-children #107

Open
oldlavender opened this issue Apr 9, 2022 · 2 comments
Open

Expected Behavior of --include-children #107

oldlavender opened this issue Apr 9, 2022 · 2 comments

Comments

@oldlavender
Copy link

Hello,

It's more a clarification - likely a silly one - than an issue (although the help could include a note about that). What should I expected -i (--include-children) to do?

For instance, I run i.e. cpulimit -il 80 make -j5, I took make as an example because the -jn will start n sub-processes, so in this example 5. Therefore, we'll have a total of at least 6 processes here, the main make process and its 5 children, and a cpu limit of 80%.

It means the sum of the 6+ processes will have at most 80% of cpu? Or each of the 6+ processes will have 80% each, resulting in 540%?

@karelbilek
Copy link

Came to ask exactly this, but I guess nobody knows

@HiGarfield
Copy link

According to the code's logic, the sum of the CPU utilization rates of 6 processes does not exceed 80%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants