[RC5] Limiting the client's CPU usage?

dan the person motion at es.co.nz
Tue Apr 11 13:09:13 EDT 2000

Doug Yoder wrote:

> Is there a way to have the client limit itself? If not, can I make something
> else limit it?

The current client is not able to limit the amount of CPU being used (unless it is
an SMP system in which case you could configure it to only run on say 1 of the 2

If you can find out what length of time the automatic kill program works on then
you could effectively acheive this.  For instance if the kill program looks at the
process tables every ten minutes, and kills anything that has used >50% CPU time
over the last ten minutes, then you could run this script instead of running the
client directly. The idea is to have the program run for 5 minutes then stop for 5

while true;do
    dnetc -h 0:05
    sleep 300

you'd want to double check that dnetc -h accepts minutes as valid input, and that i
got the sleep command correct, by you get the idea...

, hmm if =h 0:05 doesn't work then

while true; do
    dnetc &
    sleep 300
    dnetc -shutdown
    sleep 300

To unsubscribe, send 'unsubscribe rc5' to majordomo at lists.distributed.net
rc5-digest subscribers replace rc5 with rc5-digest

More information about the rc5 mailing list