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

Add ability to turn a cpulimit-ed process's limit up or down on the fly #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DrHyde
Copy link

@DrHyde DrHyde commented Mar 24, 2023

Send SIGUSR1 or SIGUSR2 to cpulimit to turn the limit up or down by 1 %age point at a time.

Send SIGUSR1 or SIGUSR2 to cpulimit to turn the limit up or down by 1 %age
point at a time.
@HiGarfield
Copy link

HiGarfield commented Sep 9, 2023

The access to limit is not atomic.

I have an improved solution with atomic access.

HiGarfield@cdbdb37

To be compatible with old compilers, my implementation is based on the c89atomic library.

HiGarfield added a commit to HiGarfield/cpulimit that referenced this pull request Sep 10, 2023
Send SIGUSR1 or SIGUSR2 to cpulimit to turn the limit up or down by 1%
at a time.

The original work can be found in opsengine#116
HiGarfield added a commit to HiGarfield/cpulimit that referenced this pull request Sep 10, 2023
Send SIGUSR1 or SIGUSR2 to cpulimit to turn the limit up or down by 1%
at a time.

The original work can be found in opsengine#116
HiGarfield added a commit to HiGarfield/cpulimit that referenced this pull request Sep 11, 2023
Send SIGUSR1 or SIGUSR2 to cpulimit to turn the limit up or down by 1%
at a time.

The original work can be found in opsengine#116
HiGarfield added a commit to HiGarfield/cpulimit that referenced this pull request Sep 20, 2023
Send SIGUSR1 or SIGUSR2 to cpulimit to turn the limit up or down by 1%
at a time.

The original work can be found in opsengine#116
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

Successfully merging this pull request may close these issues.

2 participants