Skip to content

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