Debian Codegraph @

EXAMPLES/lwtools/rwtime-nd_example.txt

raw
1 Examples of rwtime-nd.stp, the Linux SystemTap version.
2
3
4 rwtime-nd.stp measures syscall read() and write() times, summarizing them
5 as histograms. A process name can be specified. For example, to measure
6 read() and write() latency from processes named "node":
7
8 # ./rwtime-nd.stp node
9 Tracing read/write syscalls for processes named "node"... Hit Ctrl-C to end.
10 ^C
11 syscall read latency (ns):
12 value |-------------------------------------------------- count
13 512 | 0
14 1024 | 0
15 2048 | 2
16 4096 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 278
17 8192 | 1
18 16384 | 5
19 32768 | 0
20 65536 | 0
21
22 syscall write latency (ns):
23 value |-------------------------------------------------- count
24 4096 | 0
25 8192 | 0
26 16384 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 135
27 32768 |@@ 8
28 65536 | 0
29 131072 | 0
30
31 Those reads and writes were very fast, between 4 and 32 microseconds.
32
33
34 Here's an example with much higher latencies: processes named "bash":
35
36 # ./rwtime-nd.stp bash
37 Tracing read/write syscalls for processes named "bash"... Hit Ctrl-C to end.
38 ^C
39 syscall read latency (ns):
40 value |-------------------------------------------------- count
41 256 | 0
42 512 | 0
43 1024 |@ 1
44 2048 |@ 1
45 4096 | 0
46 8192 | 0
47 16384 | 0
48 32768 |@ 1
49 65536 |@@@@@@ 6
50 131072 |@@@@@@@@@@@ 11
51 262144 | 0
52 524288 | 0
53 ~
54 2097152 | 0
55 4194304 | 0
56 8388608 |@ 1
57 16777216 | 0
58 33554432 |@ 1
59 67108864 |@@@ 3
60 134217728 |@@@@@@@@@ 9
61 268435456 |@@@ 3
62 536870912 |@@ 2
63 1073741824 |@@ 2
64 2147483648 | 0
65 4294967296 |@ 1
66 8589934592 | 0
67 17179869184 | 0
68
69 syscall write latency (ns):
70 value |-------------------------------------------------- count
71 512 | 0
72 1024 | 0
73 2048 |@@@@@@@@@@@@@@@@@@@@@ 21
74 4096 |@@@@@@@@@@@@@@@@@@@@@@ 22
75 8192 |@@@@@@@@@@@@@@@@@@ 18
76 16384 | 0
77 32768 | 0
78
79 The high read time, with a mode between 134 and 268 milliseconds, corresponds
80 to inter-keystroke latency as the bash shell reads keystrokes.