From OpenZFS on OS X
Revision as of 02:36, 18 March 2014 by Lundman (Talk | contribs)

Jump to: navigation, search


Huge thanks to BrendanGregg for so much of the dtrace magic.

dtrace the kernel while running a command:

dtrace -x stackframes=100 -n 'profile-997 /arg0/ {
   @[stack()] = count(); } tick-60s { exit(0); }' -o out.stacks

it will run for 60 seconds.

Convert it to a flamegraph

./ out.stacks > out.folded
./ out.folded > out.svg

This is rsync -ar /usr/ /BOOM/deletea/ running;

thumb|rsync flamegraph

Or running bonnie++ in various stages;

Create files in sequential order...
bonnie create
Stat files in sequential order...

thumb|bonnie stat

Delete files in sequential order...

thumb|bonnie delete