Re: Test CPU's (40 Views)
Reply
Valued Contributor
Nobody's Hero
Posts: 1,372
Registered: ‎12-08-1999
Message 1 of 4 (40 Views)
Accepted Solution

Test CPU's

Besides using the hardware tests via hp tools,
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?
UNIX IS GOOD
Please use plain text.
Honored Contributor
Geoff Wild
Posts: 7,168
Registered: ‎06-04-2001
Message 2 of 4 (40 Views)

Re: Test CPU's

Here's a couple of cpu loade scripts:

#!/usr/bin/ksh

while true;do
a=$(( 24353.345 / 3254.65 ))
done

# cat cpu_load_gen_li.ksh
#!/usr/bin/ksh

i=0
while true; do
while [ $i -le 100000 ];do
a=$(( 20002344353.345 / 3254.65 ))
i=$(( $i + 1 ))
done
sleep 1
i=0
done


Run them in the background, then kill %1 and or 2 to end them...


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,395
Registered: ‎03-06-2006
Message 3 of 4 (40 Views)

Re: Test CPU's

>run some kind of script that will push all my CPUs at the same time and see how they perform?

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?
Please use plain text.
Honored Contributor
Hein van den Heuvel
Posts: 6,578
Registered: ‎05-19-2003
Message 4 of 4 (40 Views)

Re: Test CPU's

Dennis, you should get negative points for destroying a happy go lucky fantasy by bringing in reality and practicalities. Don't try to confuse us with facts!

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" (
http://www.bitmover.com/lmbench/index.html )
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.

best regards,
Hein van den Heuvel
HvdH Performance Consulting.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation