LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   preventing a program from using 100% of CPU? (https://www.linuxquestions.org/questions/linux-software-2/preventing-a-program-from-using-100-of-cpu-630841/)

MikeyCarter 03-26-2008 03:00 PM

preventing a program from using 100% of CPU?
 
I have a script which I have start when the computer has been idle from 15 minutes. On the laptops it can run for bursts at 100% for a few minutes. This really heats up the laptop.

Is there a way to limit a single process from using the full 100% cpu?

(Besides introducing sleep commands in the program)

pljvaldez 03-26-2008 03:03 PM

man cpulimit

bsdunix 03-26-2008 03:04 PM

http://cpulimit.sourceforge.net/

MikeyCarter 03-26-2008 03:15 PM

Perfect!

Thanks.

3ttt 04-27-2009 08:00 AM

I have intel core 2 duo, are there anybody have the idea and hints to modify the program for 200% cpu utilization?

3ttt 04-27-2009 10:35 AM

Quote:

Originally Posted by 3ttt (Post 3522372)
I have intel core 2 duo, are there anybody have the idea and hints to modify the program for 200% cpu utilization?

Now I got it, just only changed input of "limit" condition from 1 to 2.

H_TeXMeX_H 04-27-2009 10:43 AM

What's wrong with the sleep command ? I would think that would be the best solution in most cases.


All times are GMT -5. The time now is 02:46 PM.