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 ...
- 06-09-2010 #1Just 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.
- 06-10-2010 #2
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.
- 06-10-2010 #3Linux 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.


Reply With Quote