LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-21-2006, 06:06 AM   #1
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
Limit CPU usage


I have a laptop. I don't want to hear the fan ever. When I hear the fan, it means death usually. Programs start crashing and my laptop tries to burn a hole to the ground. No seriously, it can melt plastic chairs. You might say I have a bit of cooling problem, interestingly it gets the hottest near the GPU and memory area.

I've tried throttling. Basically my options are this 733mhz(burn off fingertips) and 1000 mhz (volcano hot) .

It runs OK at 733mhz but the problem is that individual programs I run can spike up the cpu usage to 99%.


Is there anyway I can hard limit cpu usage?
 
Old 02-21-2006, 06:25 AM   #2
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Rep: Reputation: 30
I donīt know if itīs avaible yet. Look at this discussion http://www.uwsg.iu.edu/hypermail/lin...08.2/0362.html. Itīs about limiting the cpu usage for a user/group (so you would use it for your user ).

I know that some programs have options to limit the resources they will use. Like apache for example. But it would take a longggggg time for you to config those things and most programs donīt have it.
 
Old 02-21-2006, 07:02 AM   #3
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Original Poster
Rep: Reputation: 35
I guess I'll try and mess with ulimit. Not exactly the user friendly this process can only use %80 of your cpu I was hoping for, though. Any recommended parameters?
 
Old 02-21-2006, 10:36 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,499

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Look there to see an alternate solution :

http://blogs.sun.com/roller/page/moi...ooling_station

It doesn't fit your "I don't want to hear the fan ever." requirement, though ...
 
Old 02-21-2006, 10:46 AM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Maybe you can throttle back on your CPU speed via the CMOS BIOS.

Is the computer on a hard surface when this happens? It should be on a hard surface because something like a blanket will act as a heat insulator. I've seen little lap tables for notebook computers. These lap tables have fans. Maybe that would be a good approach.
 
Old 02-23-2006, 03:37 AM   #6
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by stress_junkie
Maybe you can throttle back on your CPU speed via the CMOS BIOS.
Oooh don't I wish. I would even settle for ulimit, if it actually truly did what I want it to to do.
The closest thing I could find is maximum number of seconds thread is allowed to hold on CPU.

???

So what, do I increase the seconds to reduce number of switches between threads(which could be potentially eating up the CPU)

or decrease the number of seconds in order to increase the switches between threads because some particular threads are eating up the cpu.

?

All in all a very confusing parameter. Everything else seems to be memory related.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
limit cpu % usage for a process student04 Linux - General 15 03-18-2014 07:22 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
limit cpu usage by mysql eduac Linux - Software 3 06-08-2004 05:08 PM
How can I limit the CPU usage of a PID? ideasman Linux - Software 1 04-01-2004 07:15 AM


All times are GMT -5. The time now is 08:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration