Operating System - HP-UX
1833415 Members
3372 Online
110052 Solutions
New Discussion

Re: cpu workload simulator to test WLM

 
SOLVED
Go to solution
Tim Nelson
Honored Contributor

cpu workload simulator to test WLM

Attempting to configure WLM and create enough CPU load to see it work.

Does anyone know of a good CPU load simulator or some easy way to generate a lot of CPU load on a system ? I can putz around until I get some looping script to work but wondering if there was a better solution ?

Thanks !!
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: cpu workload simulator to test WLM

Try multiple find commands like this:

find / -exec grep -l 'foobar' {} \ ; &


Pete

Pete
Tim Nelson
Honored Contributor

Re: cpu workload simulator to test WLM

Thanks Pete but it seems that only jams up IO and memory (temporarily on mem).

Tim

Bill Hassell
Honored Contributor
Solution

Re: cpu workload simulator to test WLM

Perhaps the shortest shell script to produce 100% CPU usage:

while :
do
:
done

Run this as manu times as you need. Each copy will run in a different CPU and will not stop until you kill each subshell. Put them into the background if desired.


Bill Hassell, sysadmin
Bill Hassell
Honored Contributor

Re: cpu workload simulator to test WLM

Perhaps the shortest shell script to produce 100% CPU usage:

while :
do
:
done

Run this as many times as you need. Each copy will run in a different CPU and will not stop until you kill each subshell. Put them into the background if desired.


Bill Hassell, sysadmin
Tim Nelson
Honored Contributor

Re: cpu workload simulator to test WLM

You will not believe this but that was my first thought but I discounted it due to the null action.

Guess I should try first before I ask.

Four of those pegged out 4 processors immediatly.

Thanks Bill your input on this and every forum question seems to be right on the $$ !!!
20 points as your answer is there twice :)