summaryrefslogtreecommitdiff
path: root/Examples/writedist_example.txt
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
commit055173dba4a263acf10325a49eebf82915369ed2 (patch)
treeaec2772e8855e6dbaea6d8136ed0c47bcb825dee /Examples/writedist_example.txt
parent87c8f7aa3a46118212b99f0d58b18aa93c06b02a (diff)
Notes
Diffstat (limited to 'Examples/writedist_example.txt')
-rw-r--r--Examples/writedist_example.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/Examples/writedist_example.txt b/Examples/writedist_example.txt
new file mode 100644
index 000000000000..f334843e2c10
--- /dev/null
+++ b/Examples/writedist_example.txt
@@ -0,0 +1,38 @@
+The following is an example of the writedist.d script,
+
+
+Here the writedist.d script is run for a few seconds, then Ctrl-C is hit,
+
+ # writedist.d
+ dtrace: description 'sysinfo:::writech ' matched 4 probes
+ ^C
+ [...]
+ Xorg
+ value ------------- Distribution ------------- count
+ 16 | 0
+ 32 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 169
+ 64 |@@@ 16
+ 128 |@@ 10
+ 256 | 0
+
+ gnome-terminal
+ value ------------- Distribution ------------- count
+ 0 | 0
+ 1 |@@ 6
+ 2 | 0
+ 4 | 0
+ 8 | 1
+ 16 |@ 2
+ 32 |@@@ 7
+ 64 | 0
+ 128 |@@@@@@@@@@@@@@@@@@@@@@@ 63
+ 256 |@@@@ 10
+ 512 | 1
+ 1024 |@@@@@ 13
+ 2048 |@ 2
+ 4096 |@@@ 7
+
+This allows us to understand the write behaviour of each process. The
+gnome-terminal command has executed 6 writes that returned 0 bytes, through
+to 7 writes that were at least 4096 bytes (up to 8192).
+