05-29-2008 07:51 AM
is there a way I can run some kind of script that will push all my cpus at the same time and see how they perform?
Like a stress tester..or something to that effect?
Solved! Go to Solution.
05-29-2008 09:17 AM
a=$(( 24353.345 / 3254.65 ))
# cat cpu_load_gen_li.ksh
while true; do
while [ $i -le 100000 ];do
a=$(( 20002344353.345 / 3254.65 ))
i=$(( $i + 1 ))
Run them in the background, then kill %1 and or 2 to end them...
05-30-2008 01:11 AM
Unless you are measuring the heat output, you can't see how they perform unless you have a known workload. Unless you have other work to be done at the same time?
05-30-2008 07:17 AM
Nobody's Hero, seriously now, reflect on your question and the answers it solicits such as the one provided by my friend Geoff. So that CPU now looks 100% busy. Now what? What does that tell you? How can you tell what is good or bad?
You need something specific you'd like to evaluate, and define a benchmark of some sort to measure that. The thing to measure should preferably be somewhat related to what the machine will be used for and for which clever software can not make a shortcut. At best a busy loop can be used to measure the impact it has on real work.
Suggestion: time how often you can compress a good sized sample file onto /dev/null. Compare between old and new (box, os). Compare 1 stream versus many.
Or compile a good sized set of program over and over.
Or tell Oracle to fetch a rock from its caches over and over.
And if you go with a trivial hard counter, then at least report the time it took to count to a gazillion, or the inverse: how high it counted every minute or so.
Google for some benchmark, where there might be existing results from comparable platforms. My first google hit for this is "lmbench" (
but it's results are sadly dated.
There are others, but there is little point in searching without knowing what you are really looking for. One would become nobody's hero for trying that.
Hein van den Heuvel
HvdH Performance Consulting.