You can do this by installing cpulimit. You can limit a certain running application either by name or by process ID:
cpulimit -e firefox -l 30
This won’t let Firefox go beyond a 30% CPU usage limit.
If you’d rather go by process, you can do it like this:
cpulimit -p 3493 -l 40
This will limit process number 3493 to 40% CPU consumption.
Passing 640-802 exam is no more difficult with help of examsheets online training with most up to date 70-680 training resources.
Pingback: Remains of the Day: Life After Cable TV Edition [For What It's Worth] · TechBlogger
Awesome tool! Thanks!
Do you have any ideas for limiting the memory usage of a process?
Pingback: Tech Whiz Underground » Remains of the Day: Life After Cable TV Edition [For What It's Worth]
Pingback: Control CPU hogs with CpuLimit « Linux & Stuff
CPUlimit is in the Ubuntu repositories.
sudo apt-get install cpulimit
This is exactly what i was looking for, thanks.
Pingback: Remains of the Day: Life After Cable TV Edition [For What It's Worth] | Superstars Of Gaming
@ James: yes, according to this reply in comp.os.linux.misc there should be an option to limit memory using getrlimit.
For the Ubuntu users: This util apparently is contained in the package libbsd-resource-perl (according to apt-cache: perl BSD::Resource – BSD process resource limit and priority).
cu, w0lf.
You never give credits when you find a story on some small blog? I’ll be waiting around the corner…!
@name: …aaaaand by that you mean?
@name: vad ca ai IP de Bucuresti 🙂 Pai uite: scris de mine in 15 octombrie 2007: http://mylro.org/content/view/42/52/
Lucram cu cpulimit de vreo 5-6 ani cand am scris postul de mai sus, asa ca chill 😉
PS: mi-a placut faza cu “te astept dupa colt” :))
(James comment): If you limit the process memory, one of 2 happens: programs ends because of lack of memory with a crash, or if supported, a error message.
Pingback: Remains of the Day: Life After Cable TV Edition [For What It's Worth] | Key To Eden
@Jorge: that depends on how much memory the application is using. If it doesn’t pass that maximum required by the application being limited, then all should be fine. If it does pass that certain limit, then yes, one of the two things you mentioned will happen.
Pingback: Limitar el uso de CPU en aplicaciones Linux | Un Mundo Libre
Pingback: Hannes (rebugger) 's status on Wednesday, 15-Jul-09 18:14:29 UTC - Identi.ca
nice tool thanks