Debian Codegraph @

testsuite/systemtap.examples/profiling/latencytap.txt

raw
1 latencytap.stp - Show Reasons and Durations for Processes Sleeping
2
3 The latencytap.stp script collects data on the intervals processes
4 are deactivated (sleeping). The script categorizes the reasons for
5 the sleeps by analyzing the backtraces and displays a sorted list of
6 the top 20 causes from largest total sum time sleeping to smallest.
7 The output is updated every 30 seconds. The script needs to be
8 compiled with the '--all-modules' option to produce reasons for
9 sleeps caused by modules. Optionally, this script can be used with
10 the '-c' or '-x' options to focus on a specific PID.
11
12
13 $ stap latencytap.stp --all-modules -w
14
15 Reason Count Average(us) Maximum(us) Percent%
16 kernel workqueue thread 109 1232008 14462131 44%
17 Waiting for event (poll) 3 13340013 20020024 13%
18 Waiting for event (poll) 148 200224 200381 9%
19 RCU grace period kernel thread 7 4010912 9997792 9%
20 5 5615087 9997712 9%
21
22 jdb2() kernel thread 2 10716824 14449748 7%
23 Application requested delay 2 9999829 9999833 6%
24 jdb2() kernel thread 3 288906 541672 0%
25 RCU grace period kernel thread 8 2542 2994 0%
26 7 2519 2958 0%
27 Creating block layer request 1 1599 1599 0%
28 Submitting block IO 15 103 118 0%
29 jdb2() kernel thread 3 333 395 0%
30 Waiting for event (epoll) 1 342 342 0%
31 Creating block layer request 1 271 271 0%
32