Three Solaris Hogs for Testing


Tags:

These commands are meant to be used for testing, or to learn the stat commands. I would not run these on a production box and I would recommend having another shell open to the same box to allow for quick kills.

To saturate CPU:
(CAUTION! This will lay a heavy load on your CPU!)

------------------------------------------------------
while :; do :; done &
------------------------------------------------------

To flood RAM and cause paging:
(CAUTION! This can render your machine unuseable...)

------------------------------------------------------
mkfile 1g /tmp/fillfile &
find / -type f
------------------------------------------------------

To saturate Disk IO:
(set off a few of these...)

------------------------------------------------------
dd if=/dev/rdsk/c0t0d0s2 of=/dev/null bs=102400 &
------------------------------------------------------