cpulimit
cpulimit copied to clipboard
CPU usage limiter for Linux
why not use [taskset](https://man7.org/linux/man-pages/man1/taskset.1.html) to set CPU affinity? > The control of the used CPU amount is done sending SIGSTOP and SIGCONT POSIX signals to processes. this sounds like a...
We do not use anything from this header
When process is exiting, /proc/${pid}/cmdline may be deleted before /proc/${pid}/stat. If /proc/${pid}/cmdline doesn't exist(but /proc/${pid}/stat exists), fopen returns nullptr, which makes fgets coredump.
when process quit, cpulimit whill core
Fix crash with "-e" option and remove compiler warnings
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...
https://github.com/opsengine/cpulimit/blob/f4d2682804931e7aea02a869137344bb5452a3cd/src/process_group.c#L64 "strncmp" is not a correct way. For example, if we use "cpulimit -e abc -l 30", then the process with the name "abcd" may be limited. The correct way...
It looks like the CPU counter does not work and gives me zero instead of 4, resulting in a max limit of 0 (or 000) instead of 400. ``` $...
* cpulimit.c: Guard inclusion of which is needed only for __APPLE__ and is deprecated and unavailable starting with glibc-2.32.
Today I got the following assertion failure from cpulimit: ``` cpulimit: process_group.c:179: update_process_group: Assertion `tmp_process.starttime == p->starttime' failed. ``` It happene after the command I was running under cpulimit terminated...