LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   tool to slow down processor under linux/solaris (https://www.linuxquestions.org/questions/linux-software-2/tool-to-slow-down-processor-under-linux-solaris-616878/)

tomaszadamczyk 01-28-2008 10:20 AM

tool to slow down processor under linux/solaris
 
Hi,

does anybody know a tool to stress processor. Important that processor has to be slowed down with constant configurable load (eg. 60%). Processor utilization for it's process should vary within (at most) 5%.

I think it should be some low level tool. I wrote simple program but processor utilization varied withing 15-20%. It is too much for my purposes.

Thanks

bigearsbilly 01-28-2008 03:32 PM

the only tool i know is called windows but that generally slows down to 90% or above
;)

lazlow 01-28-2008 03:37 PM

Tom

What are you trying to accomplish by holding the processor at a certain load?

tomaszadamczyk 01-29-2008 12:47 AM

Quote:

Originally Posted by lazlow (Post 3037974)
Tom

What are you trying to accomplish by holding the processor at a certain load?


We want to execute scalability test of our application
we need to know how much CPU power can help

syg00 01-29-2008 01:20 AM

I had hopes that CKRM would provide controls like this when I first saw it. Unfortunately it got subsumed by other projects with other goals. Control groups allow you to set limits on CPU (and/or memory), but the boundary is (entire) CPU or memory node.
This would allow you to let your app consume an entire CPU (or two, or ...), being some subset of the total. This likely isn't what you want in general. AFAIK you don't have the ability to set an arbitrary percentage within a CPU - or even across CPUs (say 25% of all CPUs).

tomaszadamczyk 01-30-2008 06:14 AM

Quote:

Originally Posted by syg00 (Post 3038483)
I had hopes that CKRM would provide controls like this when I first saw it. Unfortunately it got subsumed by other projects with other goals. Control groups allow you to set limits on CPU (and/or memory), but the boundary is (entire) CPU or memory node.
This would allow you to let your app consume an entire CPU (or two, or ...), being some subset of the total. This likely isn't what you want in general. AFAIK you don't have the ability to set an arbitrary percentage within a CPU - or even across CPUs (say 25% of all CPUs).

thanks for Your help
i will analyse if CKRM is enough for us

syg00 01-30-2008 03:21 PM

Just noticed this mentioned in another thread. Maybe you could use that - either to limit your own code, or to limit a "soaker" so you can manage a "known" competing load.
Haven't looked at this code yet - will try to soon.


All times are GMT -5. The time now is 05:51 AM.