February 4, 2012

ONTAP 7.3 – Hammer!

Looky here :)

A new command to perform system level stress test sneaked into ONTAP 7.3. Beware, it is UNDOCUMENTED and UNSUPPORTED. So chances are that it will bring your storage system to its knees.. Don’t say I did not warn you.

ontap1*> help hammer
hammer               - stress disks/filesystem
ontap1*> hammer ?
usage: hammer [abort|pause|restart|status|
       [-f]<# Runs><# BlocksInFile> (<# Runs> == -1 runs hammer forever)|
       fill  (use all available disk space)]

Let’s run it!

ontap1*> hammer 1024 /vol/smdst/test 1024

*** WARNING *** Hammer is a system level stress test.
CPU utilization may approach 100 percent
with very high disk IO rate when hammer is run.
This may adversely affect system performance
and may cause loss of filer service.
Hammer is an undocumented, unsuppported command.

Do you still want to run Hammer? yes
Mon Sep 15 21:38:27 EDT [blacksmith:warning]: blacksmith #0: Starting work.
 CPU    NFS   CIFS   HTTP      Net kB/s     Disk kB/s      Tape kB/s    Cache
                               in   out     read  write    read write     age
 78%      0      0      0       0     0      126    688       0     0     >60
 25%      0      0      0       0     0       44   2314       0     0     >60
 36%      0      0      0       0     0       39   2124       0     0     >60
 60%      0      0      0       0     0       20    947       0     0     >60
 27%      0      0      0       0     0       91   2183       0     0     >60
 11%      0      0      0       0     0      183   2289       0     0     >60
 29%      0      0      0       0     0       67   1629       0     0     >60
 84%      0      0      0       0     0       10    611       0     0     >60
 68%      0      0      0       0     0       33    911       0     0     >60
 88%      0      0      0       0     0       19    381       0     0     >60
 16%      0      0      0       0     0      171   2171       0     0     >60
 94%      0      0      0       0     0       17    415       0     0     >60
 62%      0      0      0       0     0       52   1313       0     0     >60
 37%      0      0      0       0     0       24   1754       0     0     >60
 35%      0      0      0       0     0      152   2128       0     0     >60
 95%      0      0      0       0     0       15     56       0     0     >60
 84%      0      0      0       0     0       12    579       0     0     >60
ontap1*> hammer status
blacksmith #0: file /vol/smdst/test, 2316 KB of 4096 KB writesize 4096 bytes, iteration 5 of 1024 - Writing
ontap1*> hammer abort
Mon Sep 15 21:39:01 EDT [blacksmith:info]: blacksmith #0: Detected Abort CleanUp Message
Mon Sep 15 21:39:01 EDT [blacksmith:info]: blacksmith #0: Stopping work

Nice!

Comments

  1. arvidjaar says:

    Sneaked into 7.3? It was around since 6.x at least.

  2. Oh WOW.. I have been around ONTAP for over 10 years and never managed to find it. Also, there is NO mention of this command anywhere.. but again, you might send me a link that will put me into shame :)

  3. Bill Holland says:

    I found out about it back in 2003 when I attended training at NetApp on ONTAP 6.4. Haven’t ever been brave enough to use it though.

Speak Your Mind

*