You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The control of the used CPU amount is done sending SIGSTOP and SIGCONT POSIX signals to processes.
this sounds like a bad idea on a busy machine
lets say our machine has 100 cores
we use cpulimit to launch 2 processes, each process starts 100 workers
ideally each process would use 50 workers on 50 cores, so both can run perfectly parallel
but with cpulimit, the 2 processes block each other, because the cpu caches are constantly invalidated ...
why not use taskset to set CPU affinity?
this sounds like a bad idea on a busy machine
lets say our machine has 100 cores
we use cpulimit to launch 2 processes, each process starts 100 workers
ideally each process would use 50 workers on 50 cores, so both can run perfectly parallel
but with cpulimit, the 2 processes block each other, because the cpu caches are constantly invalidated ...
warning:
i just crashed a machine with these commands.
this seems to start a fork bomb
The text was updated successfully, but these errors were encountered: