Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opsengine/cpulimit
CPU usage limiter for Linux
https://github.com/opsengine/cpulimit
Last synced: 5 days ago
JSON representation
CPU usage limiter for Linux
- Host: GitHub
- URL: https://github.com/opsengine/cpulimit
- Owner: opsengine
- License: other
- Created: 2012-05-30T00:06:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-07-20T16:14:43.000Z (6 months ago)
- Last Synced: 2025-01-08T20:03:23.944Z (12 days ago)
- Language: C
- Homepage:
- Size: 2.76 MB
- Stars: 1,719
- Watchers: 69
- Forks: 272
- Open Issues: 82
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CPULIMIT
========Cpulimit is a tool which limits the CPU usage of a process (expressed in percentage, not in CPU time). It is useful to control batch jobs, when you don't want them to eat too many CPU cycles. The goal is prevent a process from running for more than a specified time ratio. It does not change the nice value or other scheduling priority settings, but the real CPU usage. Also, it is able to adapt itself to the overall system load, dynamically and quickly.
The control of the used CPU amount is done sending SIGSTOP and SIGCONT POSIX signals to processes.
All the children processes and threads of the specified process will share the same percentage of CPU.Developed by Angelo Marletta.
Please send your feedback, bug reports, feature requests or just thanks.Get the latest source code
--------------------------The latest available code is here:
https://github.com/opsengine/cpulimit
Install instructions
--------------------On Linux/OS X:
$ make
# cp src/cpulimit /usr/binOn FreeBSD:
$ gmake
# cp src/cpulimit /usr/binRun unit tests:
$ ./tests/process_iterator_test
Contributions
-------------You are welcome to contribute to cpulimit with bugfixes, new features, or support for a new OS.
If you want to submit a pull request, please do it on the branch develop and make sure all tests pass.