Find the answer to your Linux question:
Results 1 to 3 of 3
Dear All I have installed cpulimit tar archive software on my suse linux Desktop I can limit any process upto a max cpu percentage uses with its pid with below ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3

    cpulimit problem

    Dear All
    I have installed cpulimit tar archive software on my suse linux Desktop

    I can limit any process upto a max cpu percentage uses with its pid with below command.
    # cpulimit -p <pid> -l <percentage>
    It is working i have tested.

    But when i run this command for a executable script with following command
    # cpulinit -e /<path with script file> -l <percentage>
    it shows message "Warning: no target process found. Waiting for it." though that
    script is running at that time.what could be the issuse.How can i rectify that problem
    please help.

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Scripts are interpreted by the shell program and thus are not really separate processes. If you put an & at the end of the command it should be run in a separate thread and maybe that would allow the limits to work.

  3. #3
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    Or maybe doing something like -e /bin/bash /path/to/script ?

    The idea would be to make the limits effective for the shell running the script. I however have no idea that the limits would be inherited by any child processes. I don't know that this program accepts multiple arguements for -e? Just an idea.

Posting Permissions

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