Results 1 to 10 of 122

Thread: HOWTO: Set maximum CPU consumption in percentage by any process

Threaded View

  1. #11
    Join Date
    Mar 2007
    Beans
    680

    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:
    BLACK_PROCESSES_LIST="firefox"

    If you would like to limit all processes except e.g. "firefox" set:
    WHITE_PROCESSES_LIST="firefox"

    If you would like to limit/exclude multiple processes just use "\|" separator (without quoting marks) between process names. Sample:
    BLACK_PROCESSES_LIST="firefox|\gedit\|glchess"
    WHITE_PROCESSES_LIST="firefox|\gedit\|glchess"

    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.
    Regards
    Last edited by abcuser; May 3rd, 2009 at 09:50 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •