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

bug: using cpulimit incorrectly #35

Open
coolaj86 opened this issue Aug 25, 2024 · 4 comments
Open

bug: using cpulimit incorrectly #35

coolaj86 opened this issue Aug 25, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@coolaj86
Copy link
Contributor

coolaj86 commented Aug 25, 2024

While looking for other customization options, I finally found a description of how cpulimit actually works. It's NOT a percent out of 100, but rather a float.

The calculation for 90% of 2 cpus would be 2 * .9 = 1.8.

Screenshot 2024-08-25 at 5 53 00 PM

See https://pve.proxmox.com/pve-docs/chapter-pct.html#pct_cpu.

cpuunits, on the other hand, is actually relative to ALL other containers. so it would need to be recalculated each time a new container is created on that system. The only way I could really see using this is according to payment (ex: all S-tier containers are 110, B-tier=100, D-tier=90, F-tier=80. Not sure if that would work.

@coolaj86 coolaj86 added the bug Something isn't working label Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@coolaj86 and others