Re: HOWTO: Set maximum CPU consumption in percentage by any process
Elus1ve, I have written new version of cpulimit daemon. Replace step "2. WRITE CPULIMIT DAEMON FILE" from first post of this how-to with the file bellow. All other steps from how-to remains the same.
UPDATE: script deleted because of some bug. Please see script in new post bellow.
Daemon has two new variables: BLACK_PROCESSES_LIST and WHITE_PROCESSES_LIST.
If you would like only to limit process e.g "firefox" then set:
If you would like to limit all processes except e.g. "firefox" set:
If you would like to limit/exclude multiple processes just use "\|" separator (without quoting marks) between process names. Sample:
I haven't tested this new daemon in deep so I haven't changed first post's how-to. I would be very happy if someone out there could test this daemon and post some feed back.
Last edited by abcuser; May 3rd, 2009 at 09:50 AM.