Operating Systems > Linux and UNIX
Throttling
KernelPanic:
No I dont wan't advice on how to strangle annoying people :D
What I was wondering was, in Linux, is there a way to throttle CPU usage to a certain % load?
KernelPanic:
quote:Originally posted by X11:
ERROR - QUESTION DEFINITION NEEDS DETAIL
code 451 - do not understand.
--- End quote ---
I want to be able to limit my system to, for example, 20% CPU load for a period of time. So is there a way to stop the system from using all the resources availiable somehow?
pkd_lives:
I think this technically possible, but I doubt there is code for it because it seems pretty pointless.
Surely it is useless, all it will do is slow down your PC, you are limiting how fast it will process information, that information still uses the whole data bus, and still needs to be processed for your system to run. You could always just really underclock your system, this would achieve the same affect. You could, I suppose configure your system to process in 16 bit mode instead of 32 (or whatever you have), but again this does not seem to have much use.
I really can't see why you would want to do this, unless you are trying to create a test condition for performing stability tests, or something like thermal cycling or noise pick-up.
Are you trying to limit user use of the processor, if so then maybe you should look into process queing, of which I know nothing significant.
Could you eleborate a bit.
Master of Reality:
ulimit will do it for ya.
"man bash" i think will show details about it.
voidmain:
Well, that's what process priority is supposed to be all about in UNIX/Linux (nice level). With a proper scheduler you can set priorities on processes so that they will give up CPU time to more important processes. However, if there are no other processes of higher priority running at the time then those lower priority processes will get the full CPU time.
See:
$ man renice
$ man nice
Navigation
[0] Message Index
[#] Next page
Go to full version