Script to Generate CPU Load

I have seen a utility/script in the past that when run, it pegs the CPU at 100%. I wanted to see if I can track it down to test my zone/resource configuration. If you run it in one zone, you can see that zone taking 100% of the CPU. But then if you kick of the same script in a second zone, you can see the resource management scale back each of the zones to their respective CPU limits.

Does anybody know where I can get such a utility?

Thanks,

Bryan

[477 byte] By [B.Rain] at [2007-11-26 8:48:26]
# 1
Generating CPU load is simple - just typewhile :; do :; doneorperl -e 'while(1) {}'Message was edited by: koppenho
koppenho at 2007-7-6 22:36:51 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
There is also a very nice site with introductions to Zones and resources; http://users.tpg.com.au/adsln4yb/zones.html#scripts1 Henry
HenryC at 2007-7-6 22:36:51 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
cpuhog.sh #!/usr/bin/perlprint "eating the CPUs\n";foreach $i (1..16) {$pid = fork();last if $pid == 0;print "created PID $pid\n";}while (1) {$x++;}
jumper_5836 at 2007-7-6 22:36:51 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
Hey, whats wrong with staroffice? :-) 7/M.
mAbrante at 2007-7-6 22:36:51 > top of Java-index,Solaris Operating System,Solaris 10 Features...