On-the-fly throttle of CPU consumption of a process

Yong Huang yong321 at yahoo.com
Tue Apr 6 17:55:27 UTC 2010


Hi sunhux and Cameron,

Sending SIGSTOP and SIGCONT signals to the process should work but be careful with process-to-process coordination. For example, the software could be  written in a way that one process periodically talks to another, and if it can't, it aborts the application to avoid data corruption.

BTW, when there's no other process using CPU, why do you not allow this renice'd process to use all? You just don't want to be bothered by the alert?

You can use taskset to set a process's CPU affinity.

Yong Huang


      




More information about the redhat-list mailing list