Difference between revisions of "Development"

From OpenZFS on OS X
Jump to: navigation, search
m
m (Development)
Line 19: Line 19:
 
This is '''rsync -ar /usr/ /BOOM/deletea/''' running;
 
This is '''rsync -ar /usr/ /BOOM/deletea/''' running;
  
[[Media:rsyncflamegraph.svg|thumb|rsync flamegraph]]
+
[[File:rsyncflamegraph.svg|thumb|rsync flamegraph]]
  
  
Line 29: Line 29:
 
File:delete.svg|Delete files in sequential order|alt=Delete files in sequential order
 
File:delete.svg|Delete files in sequential order|alt=Delete files in sequential order
 
</gallery>
 
</gallery>
 
Create files in sequential order...
 
[[File:create.svg|thumb|bonnie create]]
 
 
Stat files in sequential order...
 
[[Media:stat.svg|thumb|bonnie stat]]
 
 
Delete files in sequential order...
 
[[Media:delete.svg|thumb|bonnie delete]]
 

Revision as of 02:36, 18 March 2014

Development

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

./stackcollapse.pl out.stacks > out.folded
./flamegraph.pl out.folded > out.svg


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

rsync flamegraph


Or running bonnie++ in various stages;