Debian Codegraph @

README.md

raw
1 [![Build Status](https://travis-ci.org/iipeace/guider.svg?branch=master)](https://travis-ci.org/iipeace/guider)
2 [![license](http://img.shields.io/badge/license-GNU-blue.svg)](https://raw.githubusercontent.com/iipeace/guider/master/LICENSE)
3 [![Coverity](https://scan.coverity.com/projects/15302/badge.svg)](https://scan.coverity.com/projects/iipeace-guider)
4 [![PyPI version](https://badge.fury.io/py/guider.svg)](https://badge.fury.io/py/guider)
5 [![Download guider](https://img.shields.io/sourceforge/dt/guider.svg)](https://sourceforge.net/projects/guider/files/latest/download)
6 [![Join the chat at https://gitter.im/guiderchat/Lobby](https://badges.gitter.im/guiderchat/Lobby.svg)](https://gitter.im/guiderchat/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
7
8 ![Guider_Logo_mini](https://user-images.githubusercontent.com/15862689/69008465-3062aa80-098e-11ea-8185-cfb8d7c4aafe.png)
9
10 Table of contents
11 =================
12 <!--ts-->
13 * [Guider](#Guider)
14 * [Output](#Output)
15 * [How to use](#How-to-use)
16 * [Build & Installation](#Build--Installation)
17 * [Kernel Configuration](#Kernel-Configuration)
18 * [Help](#Help)
19 <!--te-->
20
21 Guider
22 =======
23
24 Guider is a comprehensive performance analysis tool designed to meet all your system performance needs.
25 With features like monitoring, profiling, tracing, visualization, control, logging, networking, testing, and utilities,
26 Guider provides you with everything you need to measure, analyze, and verify your system's performance.
27
28 Some of the key features of Guider include:
29 1. Accurate measurements: Guider provides measurements in units of count, time (in microseconds), and size (in bytes) for precise results.
30 2. Comprehensive functionality: Guider offers a range of functions for analysis and experimentation.
31 3. Detailed reports: Guider provides in-depth reports with as much information as possible.
32 4. Browser-based visualization: Guider outputs visualizations in SVG format for easy viewing in a browser.
33 5. Easy to use: Guider is designed to be simple and straightforward, with no need for installation or setup.
34
35 Guider supports a wide range of platforms based on the Linux kernel,
36 including distros like Ubuntu, CentOS, and RHEL, as well as Android, ccOS, webOS, Tizen, and AGL.
37 Limited support is also available for Windows and MacOS.
38 In terms of architecture, Guider can work on x86, x64, ARM, AArch64, RISC-V.
39
40 Output
41 =======
42 $ python3 guider/guider.py top -a
43
44 [Top Info] [Time: 4588832.570] [Inter: 1.0] [Ctxt: 314463] [Life: +0/-0] [IRQ: 26606] [Core: 4] [Task: 498/625] [Load: 0/0/0] [RAM: 125.7G] [Swap: 4.0G]
45 [Cycle: 8.3G / Inst: 5.7G / IPC: 0.69 / CacheMiss : 13.7M(23%) / BrcMiss: 25.7M(1%) / Clk: 38.7G / MinFlt: 358 / MajFlt: 0]
46 ==========================================================================================================================================================
47 ID | CPU(Usr/Ker/Blk/IRQ)|MemAvl( Per/ User/Cache/Kern)| Swap( Per/ In/Out)| PgRclm | BlkRW | NrFlt | PrBlk | NrSIRQ | PgMlk | PgDirt | Network |
48 ----------------------------------------------------------------------------------------------------------------------------------------------------------
49 Total | 10 %( 1 / 6 / 0 / 0 )|124649( 96/ 453/ 5690/1787)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 15889 | 4616 | 20 | 2K/0 |
50 ----------------------------------------------------------------------------------------------------------------------------------------------------------
51 CPU [##### ] MEM [### ] SWAP [ ]|
52 ----------------------------------------------------------------------------------------------------------------------------------------------------------
53 Core/0 |100 %(66 /34 / 0 / 0 )|###################################################################| powersave | 0-0 | 24 C | 2874 Mhz [1171-3515]|
54 Core/1 | 7 %( 0 / 6 / 0 / 0 )|#### | powersave | 0-1 | 22 C | 2307 Mhz [1171-3515]|
55 Core/2 | 0 %( 0 / 0 / 0 / 0 )| | powersave | 0-2 | 23 C | 2165 Mhz [1171-3515]|
56 Core/3 | 0 %( 0 / 0 / 0 / 0 )| | powersave | 0-3 | 22 C | 2170 Mhz [1171-3515]|
57 ==========================================================================================================================================================
58 Process ( PID/ PPID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS( RSS/Txt/Shr/Swp)| Blk( RD/ WR/NrFlt)| SID | USER | FD | LifeTime| Parent |
59 ----------------------------------------------------------------------------------------------------------------------------------------------------------
60 screen ( 2451/ 1/ 1/C 0)| 100( 66/ 34/ 0)| 11( 6/ 0/ 2/ 0)| 0( -/ -/ 0)| 2451|peacel| 64|53d:00:22| systemd(1)|
61 yes (1341199/1340350/ 1/C 0)| 99( 0/ 99/ 0)| 5( 0/ 0/ 0/ 0)| 0( -/ -/ 0)| 2452|peacel| 64| 00:00:03| vi(1340350)|
62 kworker/u80: (1341030/ 2/ 1/C 0)| 90( 0/ 90/ 0)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| root| 64| 00:15:46| kthreadd(2)|
63 kworker/u80: (1340705/ 2/ 1/C 0)| 26( 0/ 26/ 0)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| root| 64| 02:04:59| kthreadd(2)|
64 kworker/u80: (1340966/ 2/ 1/C 0)| 21( 0/ 21/ 0)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| root| 64| 00:20:56| kthreadd(2)|
65 [ TOTAL ]| 344.0( 72/ 271)|RSS: 1G / Swp: 0)| 0.0( -/ -/ 0)| Yld: -| Prmt: -| Task: 498|
66 ----------------------------------------------------------------------------------------------------------------------------------------------------------
67 [Z]bash ( 820918/ 820917/ 1/C 0)| 0( 0/ 0/ -)| 0( 0/ 0/ 0/ -)| 0( -/ -/ 0)| -| -| -| 3d:06:10| tmux: server(820917)|
68 ----------------------------------------------------------------------------------------------------------------------------------------------------------
69
70 >>>
71
72 $ python3 guider/guider.py top -R 5 -o
73 $ cat guider.out
74
75 [Top Summary Info]
76 ==========================================================================================================================================================
77 IDX | Interval | CPU | Avl/User/Cache | BlkRW | Blk | SWAP | NrPgRclm | NrFlt | NrCtx | NrIRQ | NrTask | Core | Network |
78 ==========================================================================================================================================================
79 1 | START - 497231.500 | 98 | 124442/962/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 631 | 10660 | 482/701 | 40 | 2K/156 |
80 2 | 497231.500 - 497232.520 | 98 | 124440/963/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 646 | 10506 | 482/701 | 40 | 1K/104 |
81 3 | 497232.520 - 497233.540 | 98 | 124440/964/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 741 | 10562 | 482/701 | 40 | 2K/104 |
82 4 | 497233.540 - 497234.570 | 98 | 124440/964/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 629 | 10489 | 482/701 | 40 | 1K/104 |
83 5 | 497234.570 - 497235.590 | 98 | 124440/964/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 699 | 10602 | 482/701 | 40 | 2K/208 |
84 ----------------------------------------------------------------------------------------------------------------------------------------------------------
85
86 [Top CPU Info] (Unit: %)
87 ==========================================================================================================================================================
88 COMM ( PID / PPID / Nr / Pri)| Min/Avg/Max | 1 2 3 4 5
89 ==========================================================================================================================================================
90 [CPU] ( -/ -/ -/ -)| 98/98.0/98 | 98 98 98 98 98
91 ----------------------------------------------------------------------------------------------------------------------------------------------------------
92 FahCore_a8 ( 55469/ 55465/ 41/C 19)| 384/387.0/389| 384 3898 3898 3860 3883
93 ----------------------------------------------------------------------------------------------------------------------------------------------------------
94 guider ( 55767/ 9591/ 1/C 0)| 1/1.6/3 | 1 1 2 3 1
95 ----------------------------------------------------------------------------------------------------------------------------------------------------------
96
97 [Top RSS Info] (Unit: MB)
98 ==========================================================================================================================================================
99 COMM ( PID / PPID / Nr / Pri)| Max | 1 2 3 4 5
100 ==========================================================================================================================================================
101 [FREE/MIN] ( -/ -/ -/ -)|124440 | 124442 124440 124440 124440 124440
102 ----------------------------------------------------------------------------------------------------------------------------------------------------------
103 FahCore_a8 ( 55469/ 55465/ 41/C 19)| 548 | 548 548 548 548 548
104 ----------------------------------------------------------------------------------------------------------------------------------------------------------
105 guider ( 55767/ 9591/ 1/C 0)| 34 | 33 34 34 34 34
106 ----------------------------------------------------------------------------------------------------------------------------------------------------------
107
108 >>>
109
110 $ python3 guider/guider.py ttop
111
112 [Top Info] [Time: 194025.590] [Interval: 1.0] [Ctxt: 4995] [Life: +0/-0] [OOM: 0] [IRQ: 1879] [Core: 8] [Task: 333/1188] [Load: 3.1/1.9/0.9] [RAM: 62.8G]
113 ==========================================================================================================================================================
114 ID | CPU(Usr/Ker/Blk/IRQ)| Avl(Diff/ User/Cache/Kern)| Swap(Diff/ In/Out)| PgRclm | BlkRW | NrFlt | PrBlk | NrSIRQ | PgMlk | PgDrt | Network |
115 ----------------------------------------------------------------------------------------------------------------------------------------------------------
116 Total | 3 %( 1 / 0 /23 / 0 )|59874( -3/ 3110/15153/ 355)| 0( 0/ 0/ 0)| 0/0 | 0/5 | 0 | 2 | 313 | 1607 | 939290 | 0/0 |
117 ==========================================================================================================================================================
118 Thread ( TID/ PID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS(RSS/Txt/Shr/Swp)| Blk( RD/ WR/NrFlt)| Yld | Prmt | FD | LifeTime| Process |
119 ----------------------------------------------------------------------------------------------------------------------------------------------------------
120 guider ( 8160/ 8160/ 1/C 0)| 3( 2/ 0/ 0)| 66( 33/ 2/ 6/ 0)| 0( -/ -/ 0)| 1| 0|2048| 00:00:02| guider(8160)|
121 gnome-terminal- ( 4864/ 4864/ 4/C 0)| 1( 0/ 0/ -)| 627( 57/ 0/ 40/ 0)| 0( -/ -/ 0)| -| -| 128| 2d:05:52|gnome-terminal-(4864)|
122 Xorg ( 1525/ 1525/ 2/C 0)| 1( 0/ 0/ -)| 431( 84/ 0/ 48/ 0)| 0( -/ -/ 0)| -| -| 128| 2d:05:53| Xorg(1525)|
123 [ TOTAL ]| 5( 2/ 0)|RSS: 174M / Swp: 0)| 0.0( -/ -/ 0)| Yld: 1| Prmt: 0| Task: 3|
124 ----------------------------------------------------------------------------------------------------------------------------------------------------------
125 [D]kworker/u16:0 ( 7784/ 7784/ 1/C 0)| 0( 0/ 0/ -)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| -| -| 00:07:07| -|
126 [D]pool ( 8024/ 2450/ 13/C 0)| 0( 0/ 0/ -)| 1025( 82/ 1/ -/ -)| 0( -/ -/ 0)| -| -| -| 00:04:31| -|
127 [D]usb-storage ( 7825/ 7825/ 1/C 0)| 0( 0/ 0/ -)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| -| -| 00:06:38| -|
128 ----------------------------------------------------------------------------------------------------------------------------------------------------------
129
130 >>>
131
132 # python3 guider/guider.py utop -g yes -H
133
134 [Top Usercall Info] [Time: 82094.260000] [Interval: 1.001784] [NrSamples: 955] [yes(7202): 28%(Usr/27%+Sys/0%)] [SampleTime: 0.000100]
135 ==========================================================================================================================================================
136 Usage | Function [Path]
137 ==========================================================================================================================================================
138 35.6% | _IO_file_xsputn@GLIBC_2.17 [/lib/libc-2.24.so]
139 100.0% | <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils] <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
140 ----------------------------------------------------------------------------------------------------------------------------------------------------------
141 17.8% | fputs_unlocked@GLIBC_2.17 [/lib/libc-2.24.so]
142 100.0% | <- ??[/usr/bin/yes.coreutils] <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
143 ----------------------------------------------------------------------------------------------------------------------------------------------------------
144 16.1% | __libc_start_main@GLIBC_2.17 [/lib/libc-2.24.so]
145 ----------------------------------------------------------------------------------------------------------------------------------------------------------
146 14.7% | memcpy@GLIBC_2.17 [/lib/libc-2.24.so]
147 100.0% | <- _IO_file_xsputn@GLIBC_2.17[/lib/libc-2.24.so] <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils]
148 <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
149 ----------------------------------------------------------------------------------------------------------------------------------------------------------
150 12.3% | strlen@GLIBC_2.17 [/lib/libc-2.24.so]
151 100.0% | <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils] <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
152 ----------------------------------------------------------------------------------------------------------------------------------------------------------
153 3.0% | _IO_file_write@GLIBC_2.17 [/lib/libc-2.24.so]
154 100.0% | <- ??[/lib/libc-2.24.so] <- _IO_do_write@GLIBC_2.17[/lib/libc-2.24.so] <- _IO_file_xsputn@GLIBC_2.17[/lib/libc-2.24.so]
155 <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils]
156 <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
157 ----------------------------------------------------------------------------------------------------------------------------------------------------------
158
159 >>>
160
161 # python3 guider/guider.py utop -g node -H -q JITSYM
162
163 [Top Usercall Info] [Time: 7249986.900] [Interval: 1.015] [Samples: 442] [SYS: 2%/120G] [node(1068318): 50%(U46%+S3%)/897M] [guider(1068338): 53%/256M] [Freq:
164 ==========================================================================================================================================================
165 Usage | Function [PATH] <Sample>
166 ==========================================================================================================================================================
167 18.6% | write@GLIBC_2.28 [/usr/lib/x86_64-linux-gnu/libpthread-2.31.so] <Cnt: 82>
168 100.0% | <- 0x13250[/usr/lib/x86_64-linux-gnu/libuv.so.1.0.0] <- uv_fs_write[/usr/lib/x86_64-linux-gnu/libuv.so.1.0.0]
169 <- 0x573090[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- JIT[JIT] <- LazyCompile:*writeSync fs.js:551[JIT]
170 <- Builtin:ArgumentsAdaptorTrampoline[JIT] <- LazyCompile:*writeOrBuffer _stream_writable.js:365[JIT]
171 <- LazyCompile:*log console.js:199[JIT] <- Builtin:ArgumentsAdaptorTrampoline[JIT] <- Builtin:JSEntryTrampoline[JIT] <- JIT[JIT]
172 <- 0xab0110[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- 0xab0720[/usr/lib/x86_64-linux-gnu/libnode.so.64]
173 <- v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::O
174 <- v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
175 <- 0x630d40[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- JIT[JIT] <- LazyCompile:* /home/peacelee/test/test.js:1[JIT]
176 <- Builtin:InterpreterEntryTrampoline[JIT] <- Builtin:JSEntryTrampoline[JIT] * 8 <- JIT[JIT]
177 <- 0xab0110[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- 0xab0720[/usr/lib/x86_64-linux-gnu/libnode.so.64]
178 <- v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::O
179 <- v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
180 <- 0x52cae0[/usr/lib/x86_64-linux-gnu/libnode.so.64]
181 <- node::LoadEnvironment(node::Environment*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
182 <- node::Start(v8::Isolate*, node::IsolateData*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char
183 <- node::Start(int, char**)[/usr/lib/x86_64-linux-gnu/libnode.so.64] <Cnt: 82>
184 ----------------------------------------------------------------------------------------------------------------------------------------------------------
185 3.8% | LazyCompile:*writeOrBuffer _stream_writable.js:365 [JIT] <Cnt: 17>
186 64.7% | <- LazyCompile:*log console.js:199[JIT] <- Builtin:ArgumentsAdaptorTrampoline[JIT] <- Builtin:JSEntryTrampoline[JIT] <- JIT[JIT]
187 <- 0xab0110[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- 0xab0720[/usr/lib/x86_64-linux-gnu/libnode.so.64]
188 <- v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::O
189 <- v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
190 <- 0x630d40[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- JIT[JIT] <- LazyCompile:* /home/peacelee/test/test.js:1[JIT]
191 <- Builtin:InterpreterEntryTrampoline[JIT] <- Builtin:JSEntryTrampoline[JIT] * 8 <- JIT[JIT]
192 <- 0xab0110[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- 0xab0720[/usr/lib/x86_64-linux-gnu/libnode.so.64]
193 <- v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::O
194 <- v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
195 <- 0x52cae0[/usr/lib/x86_64-linux-gnu/libnode.so.64]
196 <- node::LoadEnvironment(node::Environment*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
197 <- node::Start(v8::Isolate*, node::IsolateData*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char
198 <- node::Start(int, char**)[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- main[/usr/bin/node]
199 <- __libc_start_main@GLIBC_2.2.5[/usr/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 11>
200 ----------------------------------------------------------------------------------------------------------------------------------------------------------
201
202 >>>
203
204 # python3 guider/guider.py systop -g yes -H
205
206 [Top Syscall Info] [Time: 82043.230000] [Interval: 1.000940] [NrSamples: 634] [yes(7202): 5%(Usr/4%+Sys/0%)]
207 ==========================================================================================================================================================
208 Usage | Function [Count]
209 ==========================================================================================================================================================
210 100.0% | write [Cnt: 634, Tot: 0.830203, Avg: 0.001309, Max: 0.005875, Err: 0]
211 100.0% | <- ??[/lib/libc-2.24.so] <- _IO_file_write@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/lib/libc-2.24.so]
212 <- _IO_do_write@GLIBC_2.17[/lib/libc-2.24.so] <- _IO_file_xsputn@GLIBC_2.17[/lib/libc-2.24.so]
213 <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils]
214 <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
215 ----------------------------------------------------------------------------------------------------------------------------------------------------------
216
217 >>>
218
219 # python3 guider/guider.py btop -g a.out -H
220
221 [Top Breakcall Info] [Time: 4542869.660] [Interval: 1.001] [NrSamples: 994] [a.out(1219772): 7%(Usr/0%+Sys/6%)] [guider(1219775): 97%]
222 ==========================================================================================================================================================
223 Usage | Function [PATH] <Interval>
224 ==========================================================================================================================================================
225 16.7% | __mempcpy_sse2_unaligned_erms [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 166, Avg: 0.005994, Min: 0.002999, Max: 0.012299]
226 100.0% | <- _IO_new_file_xsputn[/lib/x86_64-linux-gnu/libc-2.31.so] <- __vfprintf_internal[/lib/x86_64-linux-gnu/libc-2.31.so]
227 <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
228 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
229 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
230 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
231 ----------------------------------------------------------------------------------------------------------------------------------------------------------
232 16.7% | _IO_new_file_xsputn [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 166, Avg: 0.005997, Min: 0.002988, Max: 0.012302]
233 100.0% | <- __vfprintf_internal[/lib/x86_64-linux-gnu/libc-2.31.so] <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
234 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
235 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
236 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
237 ----------------------------------------------------------------------------------------------------------------------------------------------------------
238 11.2% | __strchrnul_sse2 [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 111, Avg: 0.008974, Min: 0.006034, Max: 0.012381]
239 100.0% | <- __vfprintf_internal[/lib/x86_64-linux-gnu/libc-2.31.so] <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
240 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
241 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
242 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
243 ----------------------------------------------------------------------------------------------------------------------------------------------------------
244 5.5% | close@GLIBC_2.4 [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 55, Avg: 0.017763, Min: 0.017895, Max: 0.018863]
245 100.0% | <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
246 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
247 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
248 ----------------------------------------------------------------------------------------------------------------------------------------------------------
249 5.5% | __vfprintf_internal [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 55, Avg: 0.017764, Min: 0.017838, Max: 0.018741]
250 100.0% | <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
251 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
252 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
253 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
254 ----------------------------------------------------------------------------------------------------------------------------------------------------------
255 5.5% | _IO_file_overflow@GLIBC_2.2.5 [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 55, Avg: 0.017764, Min: 0.017924, Max: 0.018732]
256 100.0% | <- _IO_new_file_xsputn[/lib/x86_64-linux-gnu/libc-2.31.so] <- __vfprintf_internal[/lib/x86_64-linux-gnu/libc-2.31.so]
257 <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
258 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
259 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
260 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
261 ----------------------------------------------------------------------------------------------------------------------------------------------------------
262
263 >>>
264
265 # python3 guider/guider.py pytop -g iotop -H
266
267 [Top Pycall Info] [Time: 7469667.000] [Interval: 1.003] [NrSamples: 283] [iotop(2943070): 13%(Usr/10%+Sys/2%)] [guider(2943073): 53%] [SampleRate: 0.001]
268 ==========================================================================================================================================================
269 Usage | Function [PATH] <Sample>
270 ==========================================================================================================================================================
271 56.9% | WAIT(poll@GLIBC_2.2.5) [/usr/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 161>
272 100.0% | <- run[/usr/lib/python3/dist-packages/iotop/ui.py] <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py]
273 <- wrapper[/usr/lib/python3.8/curses/__init__.py] <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py]
274 <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py] <- main[/usr/lib/python3/dist-packages/iotop/ui.py]
275 <- <module>[/usr/sbin/iotop] <Cnt: 161>
276 ----------------------------------------------------------------------------------------------------------------------------------------------------------
277 10.2% | parse_proc_pid_status [/usr/lib/python3/dist-packages/iotop/data.py] <Cnt: 29>
278 100.0% | <- get_cmdline[/usr/lib/python3/dist-packages/iotop/data.py] <- format[/usr/lib/python3/dist-packages/iotop/ui.py]
279 <- get_data[/usr/lib/python3/dist-packages/iotop/ui.py] <- refresh_display[/usr/lib/python3/dist-packages/iotop/ui.py]
280 <- run[/usr/lib/python3/dist-packages/iotop/ui.py] <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py]
281 <- wrapper[/usr/lib/python3.8/curses/__init__.py] <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py]
282 <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py] <- main[/usr/lib/python3/dist-packages/iotop/ui.py]
283 <- <module>[/usr/sbin/iotop] <Cnt: 29>
284 ----------------------------------------------------------------------------------------------------------------------------------------------------------
285 4.6% | read@GLIBC_2.26 [/usr/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 13>
286 76.9% | <- parse_proc_pid_status[/usr/lib/python3/dist-packages/iotop/data.py] <- get_cmdline[/usr/lib/python3/dist-packages/iotop/data.py]
287 <- format[/usr/lib/python3/dist-packages/iotop/ui.py] <- get_data[/usr/lib/python3/dist-packages/iotop/ui.py]
288 <- refresh_display[/usr/lib/python3/dist-packages/iotop/ui.py] <- run[/usr/lib/python3/dist-packages/iotop/ui.py]
289 <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py] <- wrapper[/usr/lib/python3.8/curses/__init__.py]
290 <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py] <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py]
291 <- main[/usr/lib/python3/dist-packages/iotop/ui.py] <- <module>[/usr/sbin/iotop] <Cnt: 10>
292 23.1% | <- get_cmdline[/usr/lib/python3/dist-packages/iotop/data.py] <- format[/usr/lib/python3/dist-packages/iotop/ui.py]
293 <- get_data[/usr/lib/python3/dist-packages/iotop/ui.py] <- refresh_display[/usr/lib/python3/dist-packages/iotop/ui.py]
294 <- run[/usr/lib/python3/dist-packages/iotop/ui.py] <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py]
295 <- wrapper[/usr/lib/python3.8/curses/__init__.py] <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py]
296 <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py] <- main[/usr/lib/python3/dist-packages/iotop/ui.py]
297 <- <module>[/usr/sbin/iotop] <Cnt: 3>
298 ----------------------------------------------------------------------------------------------------------------------------------------------------------
299 4.2% | format [/usr/lib/python3/dist-packages/iotop/ui.py] <Cnt: 12>
300 100.0% | <- get_data[/usr/lib/python3/dist-packages/iotop/ui.py] <- refresh_display[/usr/lib/python3/dist-packages/iotop/ui.py]
301 <- run[/usr/lib/python3/dist-packages/iotop/ui.py] <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py]
302 <- wrapper[/usr/lib/python3.8/curses/__init__.py] <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py]
303 <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py] <- main[/usr/lib/python3/dist-packages/iotop/ui.py]
304 <- <module>[/usr/sbin/iotop] <Cnt: 12>
305 ----------------------------------------------------------------------------------------------------------------------------------------------------------
306
307 >>>
308
309 # python3 guider/guider.py ftop -g nginx
310
311 [Top File Info] [Time: 497555.620] [Proc: 41] [FD: 2,047] [File: 87] [CPU: 95%(Usr:54%/Sys:41%)] (Unit: %/MB/NR)
312 ==========================================================================================================================================================
313 Process ( ID / Pid / Nr / Pri)| FD | Path |
314 ----------------------------------------------------------------------------------------------------------------------------------------------------------
315 nginx ( 1348/ 1333/ 1/C 0)| 49| SOCKET: 42 NORMAL: 3 DEVICE: 2 EVENT: 2 PIPE: 0 PROC: 0 |
316 | 49| /var/log/nginx/error.log (0, O_WRONLY|O_APPEND|O_CLOEXEC) |
317 | 48| socket:[32124] |
318 | 37| socket:[32102] |
319 | 36| anon_inode:[eventfd] |
320 | 35| anon_inode:[eventpoll] |
321 | 34| socket:[32073] |
322 | 8| socket:[32074] |
323 | 7| socket:[20935] |
324 | 6| socket:[20934] (TCP:0.0.0.0:80/LISTEN) |
325 | 5| /var/log/nginx/access.log (0, O_WRONLY|O_APPEND|O_CLOEXEC) |
326 | 3| socket:[32046] |
327 | 2| /var/log/nginx/error.log (0, O_WRONLY) |
328 | 1| /dev/null (0, O_RDWR) |
329 | 0| /dev/null (0, O_RDWR) |
330 ----------------------------------------------------------------------------------------------------------------------------------------------------------
331
332 >>>
333
334 # python3 guider/guider.py stacktop -g syslog
335
336 [Top Info] [Time: 7176163.830] [Interval: 1.0] [Ctxt: 2914] [Life: +13/-12] [IRQ: 5103] [Core: 24] [Task: 328/435] [RAM: 63876] [Swap: 65491] (Unit: %/MB/NR)
337 [Cycle: 2G / Inst: 3G / IPC: 1.34 / CacheMiss: 6M(34%) / BranchMiss: 4M(0%) / Clock: 23G / MinFlt: 53,257 / MajFlt: 0]
338 ==========================================================================================================================================================
339 ID | CPU (Usr/Ker/Blk/IRQ)| Mem (Diff/ User/Cache/Kern)| Swap (Diff/ I/O )|NrPgRclm | BlkRW | NrFlt | NrBlk | NrSIRQ | NrMlk | NrDrt | Network |
340 ----------------------------------------------------------------------------------------------------------------------------------------------------------
341 Total | 6 %( 3 / 1 / 0 / 0 )| 4913(-204/ 974/56824/1165)| 0 ( 0 / 0/0 )| 0/0 | 0/42 | 0 | 0 | 3713 | 0 | 90901 | 2K/13K |
342 ==========================================================================================================================================================
343 Thread ( TID/ PID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| Mem(RSS/Txt/Shr/Swp)| Blk( RD / WR /NrFlt)| Yld | Prmt | FD | LifeTime| WaitChannel |
344 ----------------------------------------------------------------------------------------------------------------------------------------------------------
345 rsyslogd ( 2702/ 2702/ 4/C 0)| 0( 0/ 0/ -)| 244( 5/ 0/ 2/ 0)| 0( -/ -/ 0)| 0| 0| 64| 1K:22:40|poll_schedule_timeout|
346 100% | poll_schedule_timeout+0x43/0x70 <- do_select+0x711/0x7f0 <- core_sys_select+0x196/0x280 <-
347 SyS_select+0xa6/0xe0 <- entry_SYSCALL_64_fastpath+0x1a/0xa5
348 ----------------------------------------------------------------------------------------------------------------------------------------------------------
349 rsyslogd ( 2779/ 2702/ 4/C 0)| 0( 0/ 0/ -)| 244( 5/ 0/ 2/ 0)| 0( -/ -/ 0)| 0| 0| 64| 1K:22:40|poll_schedule_timeout|
350 100% | poll_schedule_timeout+0x43/0x70 <- do_select+0x711/0x7f0 <- core_sys_select+0x196/0x280 <-
351 SyS_select+0xa6/0xe0 <- entry_SYSCALL_64_fastpath+0x1a/0xa5
352 ----------------------------------------------------------------------------------------------------------------------------------------------------------
353 rsyslogd ( 2780/ 2702/ 4/C 0)| 0( 0/ 0/ 0)| 244( 5/ 0/ 2/ 0)| 0( -/ -/ 0)| 116| 0| 64| 1K:22:40| do_syslog |
354 99% | do_syslog+0x446/0x4c0 <- kmsg_read+0x3f/0x50 <- proc_reg_read+0x3d/0x60 <- __vfs_read+0x23/0x110 <-
355 vfs_read+0x91/0x130 <- SyS_read+0x41/0xa0 <- entry_SYSCALL_64_fastpath+0x1a/0xa5
356 ----------------------------------------------------------------------------------------------------------------------------------------------------------
357
358 >>>
359
360 # python3 guider/guider.py ptop -g yes
361
362 [Top Info] [Time: 7181955.420] [Interval: 1.0] [Ctxt: 121] [Life: +0/-0] [IRQ: 1947] [Core: 24] [Task: 317/424] [RAM: 63876] [Swap: 65491] (Unit: %/MB/NR)
363 ==========================================================================================================================================================
364 ID | CPU (Usr/Ker/Blk/IRQ)| Mem (Diff/ User/Cache/Kern)| Swap (Diff/ I/O )|NrPgRclm | BlkRW | NrFlt | NrBlk | NrSIRQ | NrMlk | NrDrt | Network |
365 ----------------------------------------------------------------------------------------------------------------------------------------------------------
366 Total | 5 %( 4 / 0 / 0 / 0 )| 3783( 0/ 875/58078/1140)| 0 ( 0 / 0/0 )| 0/0 | 0/0 | 0 | 0 | 2023 | 0 | 0 | 1K/3K |
367 ==========================================================================================================================================================
368 Process ( PID/ PPID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| Mem(RSS/Txt/Shr/Swp)| Blk( RD / WR /NrFlt)| Yld | Prmt | FD | LifeTime| WaitChannel |
369 ----------------------------------------------------------------------------------------------------------------------------------------------------------
370 yes (22371/ 9085/ 1/R 90)| 99( 99/ 0/ 0)| 8( 0/ 0/ 0/ 0)| 0( -/ -/ 0)| 0| 0| 256| 1:34:11| RUNNING |
371 | [Cycle: 2G / Inst: 6G / IPC: 2.82 / CacheMiss: 11K(98%) / BranchMiss: 26K(0%) / Clock: 972M / MinFlt: 0 / MajFlt: 0]
372 ----------------------------------------------------------------------------------------------------------------------------------------------------------
373
374 >>>
375
376 # python3 guider/guider.py mtop
377
378 [Top Info] [Time: 92097.250] [Inter: 1.0] [Ctxt: 41] [Life: +0/-0] [IRQ: 6] [Core: 8] [Task: 49/77] [Load: 0/0/0] [RAM: 3.7G] [Swap: 1.0G] [Bat: 99%/08:43:
379 [SYSTEM > Active: 490.2M, Active(anon): 3.8M, Active(file): 486.4M, AnonHugePages: 46.0M, AnonPages: 139.8M
380 Buffers: 127.7M, Cached: 698.4M, CommitLimit: 2.9G, Committed_AS: 675.7M, DirectMap1G: 8.0G
381 DirectMap2M: 3.8G, DirectMap4k: 101.0M, Dirty: 88.0K, Hugepagesize: 2.0M, Inactive: 483.1M
382 Inactive(anon): 159.6M, Inactive(file): 323.5M, KReclaimable: 66.2M, KernelStack: 3.6M, Mapped: 99.9M
383 MemAvailable: 3.1G, MemFree: 2.4G, MemTotal: 3.7G, PageTables: 3.5M, Percpu: 3.9M
384 SReclaimable: 66.2M, SUnreclaim: 49.3M, Shmem: 16.2M, Slab: 115.5M, SwapFree: 1.0G
385 SwapTotal: 1.0G, VmallocTotal: 32.0T, VmallocUsed: 24.7M]
386 [BUDDY > DMA: 0_0_0_0_0_0_0_0_0_1_3 / DMA32: 1,721_922_562_1,003_698_425_265_98_13_15_543 / Normal: 7_4_2_2_1_0_0_1_0_0_0]
387 [KSM > full_scans: 0, max_page_sharing: 256, pages_shared: 0, pages_sharing: 0, pages_to_scan: 100, pages_total: 0, pages_unshared: 0
388 pages_volatile: 0, run: 0, sleep_millisecs: 20, stable_node_chains: 0, stable_node_chains_prune_millisecs: 2,000, stable_node_dups: 0
389 use_zero_pages: 0]
390 [VM > swappiness: 60 / cache_pressure: 100 / overcommit: 0]
391 [N0-DMA > diff: 0 / free: 14.0M / min: 244.0K / low: 304.0K / high: 364.0K / managed: 14.0M / present: 14.6M / spanned: 16.0M]
392 [N0-DMA32 > diff: -252.0K / free: 2.4G / min: 65.2M / low: 81.5M / high: 97.8M / managed: 3.7G / present: 3.9G / spanned: 4.0G]
393 [N0-Device > diff: 0 / free: 0 / min: 0 / low: 0 / high: 0 / managed: 0 / present: 0 / spanned: 8.0G]
394 [N0-Normal > diff: 0 / free: 732.0K / min: 592.0K / low: 740.0K / high: 888.0K / managed: 33.5M / present: 42.0M / spanned: 42.0M]
395 ==========================================================================================================================================================
396 ID | CPU(Usr/Ker/Blk/IRQ)|MemAvl(Per/ User/ Cache/ Kern)| Swap( Per/ In/Out)| PgRclm | BlkRW | NrFlt |Blk| NrSIRQ | PgMlk | PgDirt | NetIO |
397 ----------------------------------------------------------------------------------------------------------------------------------------------------------
398 Total | 0 %( 0/ 0/ 0/ 0)| 3143( 18/ 139/ 941/ 259)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 0 | 0 | 22 | 255/52 |
399 ----------------------------------------------------------------------------------------------------------------------------------------------------------
400 CPU [ ] MEM [####### ] SWAP [ ]|
401 ==========================================================================================================================================================
402 Process ( PID/PPID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS( RSS/Txt/Shr/Swp)| Blk( RD/ WR/NrFlt)| SID| USER| FD| LifeTime| Parent|
403 ----------------------------------------------------------------------------------------------------------------------------------------------------------
404 snapd (3094/ 1/ 15/C 0)| 0( 0/ 0/ -)|1722( 43/ 9/ 18/ 0)| 0( -/ -/ 0)| 3094| root| 128| 16:50:57| systemd(1)|
405 MEM(ANON/73) | VSS: 1.7G / RSS: 23.7M / PSS: 23.7M / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
406 MEM(FILE/4) | VSS: 23.7M / RSS: 21.5M / PSS: 19.9M / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
407 MEM(HEAP/1) | VSS: 132.0K / RSS: 4.0K / PSS: 4.0K / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
408 MEM(OTHER/2) | VSS: 24.0K / RSS: 4.0K / PSS: 0 / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
409 MEM(STACK/1) | VSS: 132.0K / RSS: 20.0K / PSS: 20.0K / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
410 MEM(SUM) | VmPeak: 1.7G, VmHWM: 54.2M, VmData: 175.5M, HugetlbPages: 0, RssAnon: 24.7M, RssFile: 19.0M, RssShmem: 0 |
411 ----------------------------------------------------------------------------------------------------------------------------------------------------------
412
413 >>>
414
415 # python3 guider/guider.py ntop
416
417 [Top Info] [Time: 186473.960] [Interval: 1.0] [Ctxt: 7865] [Life: +0/-0] [OOM: 0] [IRQ: 4229] [Core: 8] [Task: 328/1171] [Load: 0.5/0.3/0.3] [RAM: 62.8G]
418 ==========================================================================================================================================================
419 ID | CPU(Usr/Ker/Blk/IRQ)| Avl(Diff/ User/Cache/Kern)| Swap(Diff/ In/Out)| PgRclm | BlkRW | NrFlt | PrBlk | NrSIRQ | PgMlk | PgDrt | Network |
420 ----------------------------------------------------------------------------------------------------------------------------------------------------------
421 Total | 1 %( 0 / 0 / 0 / 0 )|59939( -2/ 3054/ 6429/ 350)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 1661 | 1607 | 343 | 652K/9K |
422 ==========================================================================================================================================================
423 Network | Receive | Transfer |
424 ----------------------------------------------------------------------------------------------------------------------------------------------------------
425 Dev | IP | Size | Packet | Error | Drop | Multicast | Size | Packet | Error | Drop | Multicast |
426 ==========================================================================================================================================================
427 docker0 | 166.104.101.26 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
428 eno1 | 166.104.101.1 | 665.9K | 475 | 0 | 0 | 1 | 12.0K | 168 | 0 | 0 | 0 |
429 enx201601190a25 | 166.104.101.27 | 48 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
430 lo | 127.0.0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
431 virbr0 | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
432 virbr0-nic | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
433 [ TOTAL ] | | 666.0K | 476 | 0 | 0 | 1 | 12.0K | 168 | 0 | 0 | 0 |
434 ==========================================================================================================================================================
435
436 >>>
437
438 # python3 guider/guider.py disktop
439
440 [Top Info] [Time: 262411.830] [Inter: 1.0] [Ctxt: 802] [Life: +0/-0] [IRQ: 10675] [Core: 40] [Task: 481/700] [Load: 38/38/38] [RAM: 125.7G] [Swap: 4.0G]
441 ==========================================================================================================================================================
442 ID | CPU(Usr/Ker/Blk/IRQ)| Avl( Per/ User/Cache/Kern)| Swap( Per/ In/Out)| PgRclm | BlkRW | NrFlt | PrBlk | NrSIRQ | PgMlk | PgDrt | Network |
443 ----------------------------------------------------------------------------------------------------------------------------------------------------------
444 Total | 98 %(97 / 0 / 0 / 0 )|124431( 96/ 994/ 3531/1733)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 11620 | 4613 | 70 | 1K/0 |
445 ==========================================================================================================================================================
446 DEV |BUSY| AVQ | READ | WRITE | FREE( DIFF)|USAGE| TOTAL | AVF | FS | MountPoint <Option> |
447 ----------------------------------------------------------------------------------------------------------------------------------------------------------
448 /dev/sda2 | 0%| 0| 0| 0| 670.6G( 0)| 28%| 937.4G| 57.6M| ext4 | / <rw,relatime> |
449 /dev/loop4 | 0%| 0| 0| 0| 0( 0)| 100%| 30.0M| 0|squashfs| /snap/snapd/9279 <ro,nodev,relatime> |
450 /dev/loop5 | 0%| 0| 0| 0| 0( 0)| 100%| 70.0M| 0|squashfs| /snap/lxd/16922 <ro,nodev,relatime> |
451 /dev/sda1 | 0%| 0| 0| 0| 503.0M( 0)| 1%| 510.0M| 0| vfat | /boot/efi <rw,relatime> |
452 /dev/loop1 | 0%| 0| 0| 0| 0( 0)| 100%| 55.0M| 0|squashfs| /snap/core18/1885 <ro,nodev,relatime> |
453 /dev/loop2 | 0%| 0| 0| 0| 0( 0)| 100%| 70.0M| 0|squashfs| /snap/lxd/16894 <ro,nodev,relatime> |
454 /dev/loop0 | 0%| 0| 0| 0| 0( 0)| 100%| 55.0M| 0|squashfs| /snap/core18/1880 <ro,nodev,relatime> |
455 /dev/loop3 | 0%| 0| 0| 0| 0( 0)| 100%| 30.0M| 0|squashfs| /snap/snapd/8790 <ro,nodev,relatime> |
456 /run/snapd/ns | 0%| 0| 0| 0| 12.6G( 0)| 0%| 12.6G| 15.7M| tmpfs | /run/snapd/ns |
457 /run/user/1004 | 0%| 0| 0| 0| 12.6G( 0)| 0%| 12.6G| 15.7M| tmpfs | /run/user/1004 <rw,nosuid,nodev,relatime> |
458 /sys/fs/cgroup | 0%| 0| 0| 0| 62.9G( 0)| 0%| 62.9G| 15.7M| tmpfs | /sys/fs/cgroup <ro,nosuid,nodev,noexec> |
459 /run | 0%| 0| 0| 0| 12.6G( 0)| 0%| 12.6G| 15.7M| tmpfs | /run <rw,nosuid,nodev,noexec,relatime> |
460 /run/lock | 0%| 0| 0| 0| 5.0M( 0)| 0%| 5.0M| 15.7M| tmpfs | /run/lock <rw,nosuid,nodev,noexec,relatime> |
461 /dev/shm | 0%| 0| 0| 0| 62.9G( 0)| 0%| 62.9G| 15.7M| tmpfs | /dev/shm <rw,nosuid,nodev> |
462 ==========================================================================================================================================================
463
464 >>>
465
466 # python3 guider/guider.py wtop -g yes
467
468 [Top Info] [Time: 92197.480] [Inter: 1.0] [Ctxt: 72] [Life: +0/-0] [IRQ: 18] [Core: 8] [Task: 49/77] [Load: 0/0/0] [RAM: 3.7G] [Swap: 1.0G] [Bat: 99%/08:43:53/+]
469 ==========================================================================================================================================================
470 ID | CPU(Usr/Ker/Blk/IRQ)|MemAvl(Per/ User/ Cache/ Kern)| Swap( Per/ In/Out)| PgRclm | BlkRW | NrFlt |Blk| NrSIRQ | PgMlk | PgDirt | NetIO |
471 ----------------------------------------------------------------------------------------------------------------------------------------------------------
472 Total | 1 %( 0/ 0/ 0/ 0)| 3134( 18/ 140/ 941/ 267)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 0 | 0 | 36 | 0/0 |
473 ----------------------------------------------------------------------------------------------------------------------------------------------------------
474 CPU [ ] MEM [####### ] SWAP [ ]|
475 ==========================================================================================================================================================
476 Process ( PID/PPID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS( RSS/Txt/Shr/Swp)| Blk( RD/ WR/NrFlt)| SID| USER| FD| LifeTime| Parent|
477 ----------------------------------------------------------------------------------------------------------------------------------------------------------
478 snapd (3094/ 1/ 15/C 0)| 0( 0/ 0/ 0)|1722( 43/ 9/ 18/ 0)| 0( -/ -/ 0)| 3094| root| 128| 16:52:37| systemd(1)|
479 MEM(VSS) | VSS: [ 1.7G] -> 1.7G -> 1.7G -> 1.7G -> 1.7G -> 1.7G -> 1.7G -> 1.7G -> 1.7G
480 MEM(RSS) | RSS: [ 45.4M] -> 45.4M -> 45.4M -> 45.4M -> 45.4M -> 45.4M -> 45.4M -> 45.4M -> 45.4M
481 MEM(PSS) | PSS: [ 43.8M] -> 43.8M -> 43.8M -> 43.8M -> 43.8M -> 43.8M -> 43.8M -> 43.8M -> 43.8M
482 MEM(USS) | USS: [ 43.7M] -> 43.7M -> 43.7M -> 43.7M -> 43.7M -> 43.7M -> 43.7M -> 43.7M -> 43.7M
483 MEM(WSS) | WSS: [ 1.7M] -> 0 -> 12.7M -> 12.7M -> 12.7M -> 12.7M -> 12.7M -> 12.7M -> 12.7M
484 MEM(ANON/73) | VSS: 1.7G / RSS: 23.9M / PSS: 23.9M / SWAP: 0 / HUGE: 16M / LOCK: 0 / SDRT: 0 / PDRT: 23.9M|
485 | WSS: [ 0] -> 0 -> 12.2M -> 12.2M -> 12.2M -> 12.2M -> 12.2M -> 12.2M -> 12.2M
486 MEM(FILE/4) | VSS: 23.7M / RSS: 21.5M / PSS: 19.9M / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 1.9M|
487 | WSS: [ 1.7M] -> 0 -> 436.0K -> 436.0K -> 436.0K -> 436.0K -> 436.0K -> 436.0K -> 436.0K
488 MEM(HEAP/1) | VSS: 132.0K / RSS: 4.0K / PSS: 4.0K / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 4.0K|
489 | WSS: [ 0] -> 0 -> 0 -> 0 -> 0 -> 0 -> 0 -> 0 -> 0
490 MEM(OTHER/2) | VSS: 24.0K / RSS: 4.0K / PSS: 0 / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
491 | WSS: [ 4.0K] -> 0 -> 4.0K -> 4.0K -> 4.0K -> 4.0K -> 4.0K -> 4.0K -> 4.0K
492 MEM(STACK/1) | VSS: 132.0K / RSS: 20.0K / PSS: 20.0K / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 20.0K|
493 | WSS: [ 0] -> 0 -> 0 -> 0 -> 0 -> 0 -> 0 -> 0 -> 0
494 MEM(SUM) | VmPeak: 1.7G, VmHWM: 54.2M, VmData: 175.5M, HugetlbPages: 0, RssAnon: 24.7M, RssFile: 19.0M, RssShmem: 0 |
495 ----------------------------------------------------------------------------------------------------------------------------------------------------------
496 [ TOTAL ]| 0.0( 0/ 0)| RSS: 43.0M|Swp: 0| 0( -/ -/ 0)| Yld: -| Prmt: -| Task: 1|
497 ----------------------------------------------------------------------------------------------------------------------------------------------------------
498
499 >>>
500
501 # python3 guider/guider.py btrace -g a.out -H
502
503 _start/0x55e321d151ee [/home/peacelee/test/a.out]
504 __libc_start_main/0x7ffb520af0b3 [/lib/x86_64-linux-gnu/libc-2.31.so]
505 main/0x55e321d15478 [/home/peacelee/test/a.out]
506 printPeace/0x55e321d15451 [/home/peacelee/test/a.out]
507 printPeace2/0x55e321d15392 [/home/peacelee/test/a.out]
508 asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfas/0x55e321d152e2 [/home/peacelee/test/a.out]
509 0.000384 read@GLIBC_2.26/0x7ffb52199130(-0x1,0x0,0x0,0x0,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
510 0.000391 close@GLIBC_2.4/0x7ffb52199970(-0x1,0x0,0xffffffffffffff80,0x0,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
511 0.000398 printf/0x7ffb520ece10(0x55e321d1600a,0x9,0xffffffffffffff80,0x0,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
512 0.000405 __vfprintf_internal/0x7ffb521019e0(0x7ffb522746a0,0x55e321d1600a,0x7fff41688b40,0x55e321d1600a,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
513 0.000412 __strchrnul_sse2/0x7ffb5213c820(0x55e321d1600a,0x25,0x7fff41688b40,0x55e321d1600a,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
514 0.000420 _IO_new_file_xsputn/0x7ffb5211a750(0x7ffb522746a0,0x55e321d1600a,0x3,0x55e321d1600a,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
515 0.000426 __mempcpy_sse2_unaligned_erms/0x7ffb52146d00(0x55e322290330,0x55e321d1600a,0x3,0x55e321d1600a,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
516 0.000432 _itoa_word/0x7ffb520e6760(0x9,0x7fff41688af8,0xa,0x55e321d1600e,-0x1,0x3) [/lib/x86_64-linux-gnu/libc-2.31.so]
517 0.000439 _IO_new_file_xsputn/0x7ffb5211a750(0x7ffb522746a0,0x7fff41688af7,0x1,0x55e321d1600e,0x0,0x3) [/lib/x86_64-linux-gnu/libc-2.31.so]
518 0.000446 __mempcpy_sse2_unaligned_erms/0x7ffb52146d00(0x55e322290333,0x7fff41688af7,0x1,0x55e321d1600e,0x0,0x3) [/lib/x86_64-linux-gnu/libc-2.31.so]
519 0.000452 __strchrnul_sse2/0x7ffb5213c820(0x55e321d1600f,0x25,0x1,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
520 0.000458 _IO_new_file_xsputn/0x7ffb5211a750(0x7ffb522746a0,0x55e321d1600f,0x1,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
521 0.000464 __mempcpy_sse2_unaligned_erms/0x7ffb52146d00(0x55e322290334,0x55e321d1600f,0x1,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
522 0.000471 _IO_file_overflow@GLIBC_2.2.5/0x7ffb5211bf00(0x7ffb522746a0,-0x1,0xc00,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
523 0.000480 _IO_do_write@GLIBC_2.2.5/0x7ffb5211ba20(0x7ffb522746a0,0x55e322290330,0x5,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
524 0.000486 _IO_file_write@GLIBC_2.2.5/0x7ffb52119fe0(0x7ffb522746a0,0x55e322290330,0x5,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
525 0.000493 write@GLIBC_2.2.5/0x7ffb521991d0(0x1,0x55e322290330,0x5,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
526
527 >>>
528
529 # python3 guider/guider.py btrace -g yes -H -c "*|getret"
530
531 0.532473 0x2cf0/0x560d7fd28cf0(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
532 0.532488 0x4c40/0x560d7fd2ac40(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
533 0.532501 write@GLIBC_2.2.5/0x7faab22f1040(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/lib/x86_64-linux-gnu/libc-2.31.so]
534 0.532516 write@GLIBC_2.2.5[RET]=0x2000(8192)/0.000015 -> 0x4c40/0x560d7fd26000 [/usr/bin/yes]
535 0.532557 0x4c40[RET]=0x2000(8192)/0.000069 -> 0x2cf0/0x560d7fd26000 [/usr/bin/yes]
536 0.532618 0x2cf0[RET]=0x2000(8192)/0.000145 -> 0x2580/0x560d7fd26000 [/usr/bin/yes]
537 0.532678 0x2cf0/0x560d7fd28cf0(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
538 0.532691 0x4c40/0x560d7fd2ac40(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
539 0.532706 write@GLIBC_2.2.5/0x7faab22f1040(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/lib/x86_64-linux-gnu/libc-2.31.so]
540 0.532721 write@GLIBC_2.2.5[RET]=0x2000(8192)/0.000015 -> 0x4c40/0x560d7fd26000 [/usr/bin/yes]
541 0.532798 0x4c40[RET]=0x2000(8192)/0.000107 -> 0x2cf0/0x560d7fd26000 [/usr/bin/yes]
542 0.532881 0x2cf0[RET]=0x2000(8192)/0.000204 -> 0x2580/0x560d7fd26000 [/usr/bin/yes]
543 0.532946 0x2cf0/0x560d7fd28cf0(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
544 0.532961 0x4c40/0x560d7fd2ac40(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
545 0.532975 write@GLIBC_2.2.5/0x7faab22f1040(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/lib/x86_64-linux-gnu/libc-2.31.so]
546 0.532990 write@GLIBC_2.2.5[RET]=0x2000(8192)/0.000015 -> 0x4c40/0x560d7fd26000 [/usr/bin/yes]
547 0.533067 0x4c40[RET]=0x2000(8192)/0.000106 -> 0x2cf0/0x560d7fd26000 [/usr/bin/yes]
548 0.533194 0x2cf0[RET]=0x2000(8192)/0.000248 -> 0x2580/0x560d7fd26000 [/usr/bin/yes]
549
550 >>>
551
552 $ python3 guider/guider.py rtop &
553 $ cat /tmp/guider.report
554
555 {
556 "task": {
557 "nrThread": 397,
558 "nrBlocked": 0,
559 "nrCtx": 4290,
560 "nrProc": 292
561 },
562 "mem": {
563 "kernel": 1432,
564 "anonDiff": -1,
565 "pgRclmFg": 0,
566 "cache": 35332,
567 "slabDiff": 0,
568 "free": 26929,
569 "anon": 698,
570 "pgDirty": 28,
571 "file": 31751,
572 "freeDiff": -1,
573 "pgRclmBg": 0,
574 "total": 64391,
575 "slab": 3581,
576 "fileDiff": -1
577 "procs": {
578 "1954": {
579 "text": 0,
580 "pid": 1954,
581 "rank": 2,
582 "comm": "ruby1.9.1",
583 "runtime": "110:43:32",
584 "rss": 104
585 },
586 },
587 "storage": {
588 "total": {
589 "read": 0,
590 "mount": {},
591 "favail": 133443655,
592 "free": 1141633,
593 "write": 1,
594 "usage": 1152423,
595 "total": 2294056,
596 "usageper": 50
597 },
598 "/dev/sdb1": {
599 "read": 0,
600 "mount": {
601 "path": "/mnt/hdd1",
602 "fs": "ext4",
603 "option": "rw,relatime,data=ordered"
604 },
605 "favail": 50709466,
606 "free": 293649,
607 "write": 0,
608 "usage": 645251,
609 "total": 938900,
610 "usageper": 68
611 },
612 },
613 "system": {
614 "load5m": 2.38,
615 "uptime": 4191643.92,
616 "nrSoftIrq": 7405,
617 "nrIrq": 7289,
618 "load15m": 0.84,
619 "interval": 1.029999999795109,
620 "pid": 14578,
621 "load1m": 9.39
622 },
623 "event": {
624 "CPU_INTENSIVE": {
625 "14592": {
626 "kernel": 0,
627 "runtime": "0:0:47",
628 "pid": 14592,
629 "rank": 3,
630 "comm": "yes",
631 "user": 99,
632 "total": 100
633 },
634 "14593": {
635 "kernel": 0,
636 "runtime": "0:0:46",
637 "pid": 14593,
638 "rank": 10,
639 "comm": "yes",
640 "user": 99,
641 "total": 100
642 },
643 },
644 "swap": {
645 "usage": 76,
646 "total": 65491,
647 "usageDiff": 0
648 },
649 "net": {
650 "inbound": 1479,
651 "outbound": 392
652 },
653 "cpu": {
654 "kernel": 0,
655 "iowait": 0,
656 "nrCore": 24,
657 "idle": 8,
658 "user": 91,
659 "irq": 0,
660 "total": 92,
661 "procs": {
662 "14592": {
663 "kernel": 0,
664 "runtime": "0:0:47",
665 "pid": 14592,
666 "rank": 3,
667 "comm": "yes",
668 "user": 99,
669 "total": 100
670 },
671 },
672 "block": {
673 "read": 0,
674 "write": 0,
675 "procs": {},
676 "nrMajFlt": 0,
677 "ioWait": 0
678 }
679 }
680
681 >>>
682
683 # python3 guider/guider.py limitcpu -g yes:50 -v
684
685 [Info] limited cpu usage of yes(22371) process to 50%, it used 50%
686
687 [WARN] <guider(574420)> started 1th guider(574420)
688
689 [WARN] <guider(574420)> 1th guider(574420) took 0.421747 seconds to finish one job
690
691 >>>
692
693 # python3 guider/guider.py sigtrace -g a.out
694
695 0.000929 [SIGABRT] {code=SI_TKILL, pid=signal(6858)|addr=0x1aca, uid=root(0), status=0}
696 [INFO] load /usr/lib/x86_64-linux-gnu/libc.so.6... [done]
697 [INFO] load /home/iipeace/test/a.out... [done]
698 ==========================================================================================================================================================
699 Backtrace Info [a.out(6858)<-a.out(6858)]
700 ----------------------------------------------------------------------------------------------------------------------------------------------------------
701 pthread_kill@GLIBC_2.34+300/0x7f9656bd29fc[/usr/lib/x86_64-linux-gnu/libc.so.6]
702 gsignal@GLIBC_2.13+22/0x7f9656b7e476[/usr/lib/x86_64-linux-gnu/libc.so.6]
703 abort@GLIBC_2.2.5+211/0x7f9656b647f3[/usr/lib/x86_64-linux-gnu/libc.so.6]
704 0x893e0+662/0x7f9656bc5676[/usr/lib/x86_64-linux-gnu/libc.so.6]
705 __fortify_fail@GLIBC_2.2.5+42/0x7f9656c7259a[/usr/lib/x86_64-linux-gnu/libc.so.6]
706 __stack_chk_fail+22/0x7f9656c72566[/usr/lib/x86_64-linux-gnu/libc.so.6]
707 main+64/0x55a53b20e1f5[/home/iipeace/test/a.out]
708 0x29d10+128/0x7f9656b65d90[/usr/lib/x86_64-linux-gnu/libc.so.6]
709 __libc_start_main@GLIBC_2.2.5+128/0x7f9656b65e40[/usr/lib/x86_64-linux-gnu/libc.so.6]
710 [.text]+37/0x55a53b20e0a5[/home/iipeace/test/a.out]
711 ----------------------------------------------------------------------------------------------------------------------------------------------------------
712
713 0.001051 +++ exited a.out(6858) with 6(SIGABRT) +++
714
715 >>>
716
717 # python3 guider/guider.py setsched r:90:yes
718
719 [Info] changed the priority of yes(22371) to 90[R]
720
721 >>>
722
723 # python3 guider/guider.py remote -g a.out -c usercall:write#1#HOOK#4
724
725 [usercall] write(7f94ed747140)(1, HOOK, 4) = 0x4(4)
726
727 >>>
728
729 # python3 guider/guider.py printenv -g systemd
730
731 [ systemd(1) ]
732 -----------------------------------------------------------------------------
733 HOME=/
734 init=/sbin/init
735 NETWORK_SKIP_ENSLAVED=
736 recovery=
737 TERM=linux
738 drop_caps=
739 BOOT_IMAGE=/boot/vmlinuz-5.3.0-28-generic
740 PATH=/sbin:/usr/sbin:/bin:/usr/bin
741 PWD=/
742 rootmnt=/root
743
744 [ systemd(3310) ]
745 -----------------------------------------------------------------------------
746 LANG=en_US.UTF-8
747 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
748 NOTIFY_SOCKET=/run/systemd/notify
749 HOME=/home/syjung
750 LOGNAME=syjung
751 USER=syjung
752 SHELL=/bin/bash
753 INVOCATION_ID=bbc56cc8552e4a1d815197e0a6160270
754 JOURNAL_STREAM=9:10617556
755 XDG_RUNTIME_DIR=/run/user/1002
756
757 [ systemd(7094) ]
758 -----------------------------------------------------------------------------
759 LANG=en_US.UTF-8
760 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
761 NOTIFY_SOCKET=/run/systemd/notify
762 HOME=/home/peacelee
763 LOGNAME=peacelee
764 USER=peacelee
765 SHELL=/bin/bash
766 INVOCATION_ID=be65ebdd72964e09a3ac06495261702b
767 JOURNAL_STREAM=9:31410
768 XDG_RUNTIME_DIR=/run/user/1004
769
770 >>>
771
772 # python3 guider/guider.py kill -stop yes
773
774 [Info] sent SIGSTOP to yes(10594)
775
776 >>>
777
778 # python3 guider/guider.py printbind -g yes
779
780 [Function Bind Info] [Target: yes(410113)]
781 ==========================================================================================================================================================
782 Path Type Sym[Bind/Vis] => Link
783 ----------------------------------------------------------------------------------------------------------------------------------------------------------
784 [/usr/bin/yes]
785 NOTYPE _ITM_deregisterTMCloneTable@GLIBC_2.2.5[WEAK/DEFAULT] => NONE
786 NOTYPE _ITM_registerTMCloneTable@GLIBC_2.2.5[WEAK/DEFAULT] => NONE
787 FUNC __ctype_b_loc@GLIBC_2.2.5[GLOBAL/DEFAULT] => __ctype_b_loc/0x7f474b600400[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x37400]
788 FUNC __cxa_atexit@GLIBC_2.2.5[GLOBAL/DEFAULT] => __cxa_atexit@GLIBC_2.2.5/0x7f474b612f60[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x49f60]
789 FUNC __cxa_finalize@GLIBC_2.2.5[WEAK/DEFAULT] => __cxa_finalize@GLIBC_2.2.5/0x7f474b613090[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x4a090]
790 FUNC __fpending@GLIBC_2.2.5[GLOBAL/DEFAULT] => __fpending@GLIBC_2.2.5/0x7f474b658f80[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x8ff80]
791 FUNC __fprintf_chk[GLOBAL/DEFAULT] => __fprintf_chk@GLIBC_2.14/0x7f474b6fa110[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x131110]
792 FUNC __freading@GLIBC_2.2.5[GLOBAL/DEFAULT] => __freading@GLIBC_2.2.5/0x7f474b658e90[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x8fe90]
793 NOTYPE __gmon_start__@GLIBC_2.14[WEAK/DEFAULT] => NONE
794 FUNC __libc_start_main@GLIBC_2.2.5[GLOBAL/DEFAULT] => __libc_start_main@GLIBC_2.2.5/0x7f474b5effc0[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x26fc0]
795 FUNC __printf_chk@GLIBC_2.2.5[GLOBAL/DEFAULT] => __printf_chk@GLIBC_2.2.5/0x7f474b6fa040[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x131040]
796 FUNC __stack_chk_fail@GLIBC_2.2.5[GLOBAL/DEFAULT] => __stack_chk_fail@GLIBC_2.2.5/0x7f474b6fbb00[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x132b00]
797 FUNC _exit@GLIBC_2.2.5[GLOBAL/DEFAULT] => _Exit@GLIBC_2.3/0x7f474b6af290[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0xe6290]
798 FUNC abort@GLIBC_2.2.5[GLOBAL/DEFAULT] => abort@GLIBC_2.2.5/0x7f474b5ee72e[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x2572e]
799 FUNC bindtextdomain@GLIBC_2.2.5[GLOBAL/DEFAULT] => bindtextdomain@GLIBC_2.2.5/0x7f474b600920[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x37920]
800 FUNC calloc[GLOBAL/DEFAULT] => calloc@GLIBC_2.2.5/0x7f474b667c90[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x9ec90]
801 ----------------------------------------------------------------------------------------------------------------------------------------------------------
802
803 >>>
804
805 # python3 guider/guider.py rec -a -e m,b
806
807 [Thread Info] [ Elapsed: 2.050 ] [ Start: 2849868.198 ] [ Running: 112 ] [ CtxSwc: 3357 ] [ LogSize: 4054 KB ] [ Unit: Sec/MB/NR ]
808 ==========================================================================================================================================================
809 __________Thread Info___________|_____________CPU Info______________|______SCHED Info______|________BLOCK Info________|_____________MEM Info_____________|
810 | | | | |
811 Name( Tid/ Pid)|LF|Usage( %)|Delay( Max)|Pri| IRQ | Yld| Lose|Steal| Mig| Read( MB/ Cnt)|WCnt( MB)| Sum(Usr/Buf/Ker)|Rcl|Wst|DRcl(Nr)|
812 ==========================================================================================================================================================
813 # CPU: 12
814
815 CORE/0(-----/-----)|--| 0.00( 0.1)| 0.00( 0.00)| 0| 0.00| 7| -| -| -| 0.00( 0/ 1)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
816 CORE/1(-----/-----)|--| 0.00( 0.1)| 0.10( 0.00)| 0| 0.00| 147| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
817 CORE/2(-----/-----)|--| 0.00( 0.1)| 0.16( 0.00)| 0| 0.00| 211| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
818 CORE/3(-----/-----)|--| 0.00( 0.1)| 0.11( 0.00)| 0| 0.00| 181| -| -| -| 0.00( 0/ 0)| 32( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
819 CORE/4(-----/-----)|--| 0.00( 0.1)| 0.11( 0.00)| 0| 0.00| 232| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
820 CORE/5(-----/-----)|--| 0.30( 14.8)| 0.18( 0.00)| 0| 0.00| 179| -| -| -| 1.26( 6/ 495)| 19( 0)| 61( 57/ 0/ 3)| 0| 0|0.00( 0)|
821 CORE/6(-----/-----)|--| 0.00( 0.0)| 0.35( 0.00)| 0| 0.00| 57| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
822 CORE/7(-----/-----)|--| 0.00( 0.0)| 0.60( 0.00)| 0| 0.00| 100| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
823 CORE/8(-----/-----)|--| 0.00( 0.0)| 0.44( 0.00)| 0| 0.00| 59| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
824 CORE/9(-----/-----)|--| 0.00( 0.0)| 1.94( 0.00)| 0| 0.00| 37| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
825 CORE/10(-----/-----)|--| 0.07( 3.4)| 0.00( 0.00)| 0| 0.00| 2| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
826 CORE/11(-----/-----)|--| 0.00( 0.0)| 2.05( 0.00)| 0| 0.00| 39| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
827
828 ----------------------------------------------------------------------------------------------------------------------------------------------------------
829 # Hot: 4
830
831 synergyc( 3604/ 3602)| | 0.17( 8.5)| 0.00( 0.00)| 0| 0.00| 3| 14| 3| 0| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
832 arm-starfish-li(16087/16087)| | 0.13( 6.3)| 0.00( 0.00)| 0| 0.00| 0| 20| 157| 4| 1.26( 6/ 496)| 0( 0)| 61( 57/ 0/ 3)| 0| 0|0.00( 0)|
833 guider(16088/16088)| | 0.07( 3.4)| 0.00( 0.00)|R90| 0.00| 2| 0| 2| 0| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
834
835 ----------------------------------------------------------------------------------------------------------------------------------------------------------
836
837 >>>
838
839 # python3 guider/guider.py iorec -s
840 # python3 guider/guider.py report -a
841
842 [Thread Block Info] (Unit: NR)
843 ==========================================================================================================================================================
844 ID OPT NrDev TOTAL SEQUENTIAL( %) FS PATH
845 [ACCESS] COUNT
846 ==========================================================================================================================================================
847 TOTAL READ 8:3 131.8M 131.3M( 99.6) - /dev/sda3
848 [ 4.0K - 7.0K] 370
849 [ 16.0K - 31.0K] 11
850 [ 32.0K - 63.0K] 6
851 [ 64.0K - 127.0K] 5
852 [ 128.0K - 255.0K] 1037
853 253:0 131.8M 131.3M( 99.6) ext4 / <rw,relatime>
854 [ 4.0K - 7.0K] 370
855 [ 16.0K - 31.0K] 11
856 [ 32.0K - 63.0K] 6
857 [ 64.0K - 127.0K] 5
858 [ 128.0K - 255.0K] 1037
859 WRITE 253:0 40.0K 20.0K( 50.0) ext4 / <rw,relatime>
860 [ 4.0K - 7.0K] 10
861 8:3 24.0K 20.0K( 83.3) - /dev/sda3
862 [ 4.0K - 7.0K] 6
863 ----------------------------------------------------------------------------------------------------------------------------------------------------------
864 guider(4011197) READ 8:3 100.0M 100.0M(100.0) - /dev/sda3
865 [ 16.0K - 31.0K] 2
866 [ 32.0K - 63.0K] 1
867 [ 64.0K - 127.0K] 1
868 [ 128.0K - 255.0K] 799
869 253:0 100.0M 100.0M(100.0) ext4 / <rw,relatime>
870 [ 16.0K - 31.0K] 2
871 [ 32.0K - 63.0K] 1
872 [ 64.0K - 127.0K] 1
873 [ 128.0K - 255.0K] 799
874 ----------------------------------------------------------------------------------------------------------------------------------------------------------
875
876 [Thread FS Info] (Unit: NR)
877 ==========================================================================================================================================================
878 ID OPT NrDev INODE Size FS PATH
879 ==========================================================================================================================================================
880 TOTAL WRITE 16.0K
881 253:0 16.0K ext4 / <rw,relatime>
882 0 16.0K
883 READ 131.8M
884 0:3 1.4M ? ?
885 0 1.4M
886 253:0 130.4M ext4 / <rw,relatime>
887 24520383 100.0M /home/peacelee/guider/guider/TEST2[100.0M]
888 24520372 20.0M /home/peacelee/guider/guider/TEST[20.0M]
889 24520353 10.0M /home/peacelee/guider/guider/TEST3[10.0M]
890 6030383 84.0K
891 6819964 72.0K
892 6029790 68.0K
893 6031485 44.0K
894 6031543 40.0K
895 6819797 16.0K
896 6035523 16.0K
897 0 16.0K
898 6818557 4.0K
899 6818689 4.0K
900 7078584 4.0K
901 ----------------------------------------------------------------------------------------------------------------------------------------------------------
902 guider(4011197) READ 100.0M
903 253:0 100.0M ext4 / <rw,relatime>
904 24520383 100.0M /home/peacelee/guider/guider/TEST2[100.0M]
905 ----------------------------------------------------------------------------------------------------------------------------------------------------------
906 guider(4011193) READ 20.0M
907 253:0 20.0M ext4 / <rw,relatime>
908 24520372 20.0M /home/peacelee/guider/guider/TEST[20.0M]
909 ----------------------------------------------------------------------------------------------------------------------------------------------------------
910
911 >>>
912
913 # python3 guider/guider.py iorec -s
914 # python3 guider/guider.py report -q RALIST
915 # python3 guider/guider.py readahead readahead.list
916
917 [INFO] start readahead from '/home/peacelee/guider/guider/readahead.list'
918
919 [INFO] changed the CPU scheduling priority for guider(4011281) to 10[C]
920
921 [INFO] changed the I/O scheduling priority for guider(4011281) to IOPRIO_CLASS_IDLE(0)[IOPRIO_WHO_PROCESS]
922
923 [INFO] finished readahead a total of 130.0M data for 0.002 sec
924
925 >>>
926
927 # python3 guider/guider.py sysrec
928
929 [Thread Syscall Info] (Unit: Sec/NR)
930 ==========================================================================================================================================================
931 Name( Tid) Syscall( ID) Elapsed Count Error Min Max Avg
932 ==========================================================================================================================================================
933 arm-linux-gnuea( 3000)
934 close( 3) 0.039396 69 0 0.000001 0.005353 0.000571
935 stat( 4) 0.011521 74 0 0.000001 0.009423 0.000156
936 fchmod( 91) 0.000046 3 0 0.000002 0.000039 0.000015
937 getpriority(140) 0.000017 33 0 0.000000 0.000001 0.000001
938 lgetxattr(192) 0.000014 3 0 0.000003 0.000008 0.000005
939 recvfrom( 45) 0.000004 1 0 0.000004 0.000004 0.000004
940
941 ----------------------------------------------------------------------------------------------------------------------------------------------------------
942 guider( 3001)
943 pause( 34) 0.283474 1 1 0.283474 0.283474 0.283474
944 select( 23) 0.100122 1 0 0.100122 0.100122 0.100122
945 write( 1) 0.000234 6 0 0.000031 0.000059 0.000039
946 open( 2) 0.000084 7 0 0.000007 0.000038 0.000012
947 ioctl( 16) 0.000009 14 14 0.000001 0.000001 0.000001
948 fstat( 5) 0.000006 14 0 0.000001 0.000001 0.000000
949 lseek( 8) 0.000006 21 0 0.000000 0.000001 0.000000
950 close( 3) 0.000005 7 0 0.000000 0.000001 0.000001
951 rt_sigaction( 13) 0.000001 1 0 0.000001 0.000001 0.000001
952
953 ----------------------------------------------------------------------------------------------------------------------------------------------------------
954 mysqld( 3237)
955 futex(202) 0.000000 1 0 0.000000 0.000000 0.000000
956
957 ----------------------------------------------------------------------------------------------------------------------------------------------------------
958 mysqld( 3238)
959 futex(202) 0.000002 1 0 0.000002 0.000002 0.000002
960
961 ----------------------------------------------------------------------------------------------------------------------------------------------------------
962 screen( 9045)
963 select( 23) 0.000082 4 0 0.000004 0.000069 0.000021
964 ----------------------------------------------------------------------------------------------------------------------------------------------------------
965
966 >>>
967
968 # python3 guider/guider.py rec -e L
969
970 [Thread Futex Lock Info] [ Elapsed : 1.225 ] (Unit: Sec/NR)
971 ==========================================================================================================================================================
972 Name( Tid/ Pid) Elapsed Process Block NrBlock CallMax Lock LockMax NrLock NrWait LBlock NrLBlock LastStat
973 ==========================================================================================================================================================
974 mysqld( 3236/ 3208) 0.469 0.000 0.469 1 0.469 0.000 0.000 0 1 0.000 0 Wait
975 ----------------------------------------------------------------------------------------------------------------------------------------------------------
976 mysqld( 3237/ 3208) 0.890 0.000 0.890 1 0.890 0.000 0.000 0 1 0.000 0 Wait
977 ----------------------------------------------------------------------------------------------------------------------------------------------------------
978 mysqld( 3238/ 3208) 1.075 0.000 1.075 1 1.075 0.000 0.000 0 1 0.000 0 Wait
979 ----------------------------------------------------------------------------------------------------------------------------------------------------------
980
981 [Thread File Lock Info] (Unit: Sec/NR)
982 ==========================================================================================================================================================
983 Name( Tid) Wait Lock nrTryLock nrLocked
984 ==========================================================================================================================================================
985 smbd( 2631) 0.000 0.000 3 3
986 ----------------------------------------------------------------------------------------------------------------------------------------------------------
987
988 >>>
989
990 # python3 guider/guider.py rec -s . -K openfile:getname::**string
991
992 [Thread KERNEL Event Info]
993 ==========================================================================================================================================================
994 Event Comm( Tid ) Usage Count ProcMax ProcMin InterMax InterMin
995 ==========================================================================================================================================================
996 openfile TOTAL( - ) 0.000729 1012 0.000013 0.000001 1.979834 0.000109
997 ps(10728) 0.000640 968 0.000013 0.000000 0.001636 0.000006
998 python2(10727) 0.000038 26 0.000004 0.000001 1.979834 0.000020
999 tmux( 6959) 0.000031 9 0.000006 0.000003 0.299492 0.201316
1000 PassengerAgent(23183) 0.000008 5 0.000002 0.000001 0.007375 0.000109
1001 sendmail-mta( 3419) 0.000007 2 0.000006 0.000001 0.000077 0.000077
1002 PassengerAgent(10729) 0.000003 1 0.000003 0.000003 0.000000 0.000000
1003 smbd(11086) 0.000002 1 0.000002 0.000002 0.000000 0.000000
1004 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1005
1006 [Thread KERNEL Event History]
1007 ==========================================================================================================================================================
1008 EVENT TYPE TIME COMM( TID) CALLER ELAPSED ARG
1009 ==========================================================================================================================================================
1010 openfile EXIT 0.063942 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7969/cmdline"
1011 openfile ENTER 0.137626 python2(10727) -
1012 openfile EXIT 0.137628 python2(10727) porch_do_sys_open 0.000002 1>"/sys/kernel/debug/tracing/trace"
1013 openfile ENTER 0.363431 tmux( 6959) -
1014 openfile EXIT 0.363437 tmux( 6959) porch_do_sys_open 0.000006 1>"/proc/7197/cmdline"
1015 openfile ENTER 0.510452 smbd(11086) -
1016 openfile EXIT 0.510454 smbd(11086) porch_do_sys_open 0.000002 1>"/var/log/samba/log.jhkim-z97x-ud3h"
1017 openfile ENTER 0.564845 tmux( 6959) -
1018 openfile EXIT 0.564848 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7969/cmdline"
1019 openfile ENTER 0.864255 tmux( 6959) -
1020 openfile EXIT 0.864258 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7197/cmdline"
1021 openfile ENTER 1.065571 tmux( 6959) -
1022 openfile EXIT 1.065574 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7969/cmdline"
1023 openfile ENTER 1.364980 tmux( 6959) -
1024 openfile EXIT 1.364984 tmux( 6959) porch_do_sys_open 0.000004 1>"/proc/7197/cmdline"
1025 openfile ENTER 1.437128 sendmail-mta( 3419) -
1026 openfile EXIT 1.437134 sendmail-mta( 3419) porch_do_sys_open 0.000006 1>"/proc/loadavg"
1027 openfile ENTER 1.437205 sendmail-mta( 3419) -
1028 openfile EXIT 1.437206 sendmail-mta( 3419) porch_do_sys_open 0.000001 1>"/proc/loadavg"
1029 openfile ENTER 1.566369 tmux( 6959) -
1030 openfile EXIT 1.566372 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7969/cmdline"
1031 openfile ENTER 1.865776 tmux( 6959) -
1032 openfile EXIT 1.865779 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7197/cmdline"
1033 openfile ENTER 1.955265 PassengerAgent(10729) -
1034 openfile EXIT 1.955268 PassengerAgent(10729) porch_do_sys_open 0.000003 1>"/dev/fd"
1035 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1036
1037 >>>
1038
1039 # python3 guider/guider.py funcrec -s .
1040 # python3 guider/guider.py report -a
1041 # cat guider.out
1042
1043 [Function CPU Info] [Cnt: 394] [Interval: 8ms] (USER)
1044 ==========================================================================================================================================================
1045 __Usage__|___________________Function____________________|_____________________________________________Binary_____________________________________________
1046 ==========================================================================================================================================================
1047 99.0% | cpuTest | /media/disk/work/test/a.out
1048 + 100.0% | <- startTest [/media/disk/work/test/a.out] <- main [/media/disk/work/test/a.out]
1049 <- __libc_start_main [/lib/x86_64-linux-gnu/libc-2.19.so]
1050 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1051 0.5% | memset | /lib/x86_64-linux-gnu/libc-2.19.so
1052 + 100.0% | <- startTest [/media/disk/work/test/a.out] <- main [/media/disk/work/test/a.out]
1053 <- __libc_start_main [/lib/x86_64-linux-gnu/libc-2.19.so]
1054 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1055 0.3% | _int_malloc | /lib/x86_64-linux-gnu/libc-2.19.so
1056 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1057 0.3% | 00007f756e3e7ee4 | ??
1058 + 100.0% | <- 000000000044676f [/media/disk/work/test/a.out]
1059 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1060
1061 [Function CPU Info] [Cnt: 394] [Interval: 8ms] (KERNEL)
1062 ==========================================================================================================================================================
1063 __Usage__|____________________________________________________________________Function____________________________________________________________________
1064 ==========================================================================================================================================================
1065 100.0% | hrtimer_interrupt
1066 + 99.5% | <- local_apic_timer_interrupt <- smp_apic_timer_interrupt <- apic_timer_interrupt
1067 + 0.3% | <- local_apic_timer_interrupt <- smp_apic_timer_interrupt <- apic_timer_interrupt <- do_page_fault <- page_fault
1068 + 0.3% | <- local_apic_timer_interrupt <- smp_apic_timer_interrupt <- apic_timer_interrupt <- __do_fault <- handle_mm_fault <- __do_page_fault
1069 <- do_page_fault <- page_fault
1070 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1071
1072 >>>
1073
1074 # python3 guider/guider.py funcrec -e m -s .
1075 # python3 guider/guider.py report -a
1076 # cat guider.out
1077
1078 [Function Page Info] [Total: 11.4M] [Alloc: 11.4M(817)] [Free: 188.0K(47)] (USER)
1079 ==========================================================================================================================================================
1080 Usage ( Usr / Buf / Ker )|___________________Function____________________|________________LifeTime________________|______________Binary_______________
1081 ==========================================================================================================================================================
1082 10256K( 2048/ 0/ 8208)| memset | AVR: 1.563 / MIN: 1.560 / MAX: 1.568 | /lib/x86_64-linux-gnu/libc-2.19.so
1083 + 10256K( 2048/ 0/ 8208)| <- startTest [/media/disk/work/test/a.out] <- main [/media/disk/work/test/a.out]
1084 <- __libc_start_main [/lib/x86_64-linux-gnu/libc-2.19.so]
1085 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1086 960K( 956/ 0/ 4)| _int_malloc | AVR: 1.559 / MIN: 1.554 / MAX: 1.560 | /lib/x86_64-linux-gnu/libc-2.19.so
1087 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1088 56K( 16/ 0/ 40)| 00007f756e3e81e7 | AVR: 1.569 / MIN: 1.568 / MAX: 1.569 | ??
1089 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1090 44K( 36/ 0/ 8)| sysmalloc | AVR: 1.560 / MIN: 1.558 / MAX: 1.568 | /lib/x86_64-linux-gnu/libc-2.19.so
1091 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1092 12K( 12/ 0/ 0)| elf_machine_rela_relative | AVR: 1.568 / MIN: 1.568 / MAX: 1.568 | /lib/x86_64-linux-gnu/ld-2.19.so
1093 + 12K( 12/ 0/ 0)| <- dl_main [/lib/x86_64-linux-gnu/ld-2.19.so] <- _dl_sysdep_start [/lib/x86_64-linux-gnu/ld-2.19.so]
1094 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1095 8K( 8/ 0/ 0)| realloc | AVR: 1.568 / MIN: 1.568 / MAX: 1.568 | /lib/x86_64-linux-gnu/ld-2.19.so
1096 + 4K( 4/ 0/ 0)| <- _dl_map_object [/lib/x86_64-linux-gnu/ld-2.19.so]
1097 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1098 8K( 4/ 0/ 4)| dl_main | AVR: 1.568 / MIN: 1.568 / MAX: 1.568 | /lib/x86_64-linux-gnu/ld-2.19.so
1099 + 8K( 4/ 0/ 4)| <- _dl_sysdep_start [/lib/x86_64-linux-gnu/ld-2.19.so]
1100 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1101
1102 [Function Page Info] [Total: 11.4K] [Alloc: 11.4K(817)] [Free: 188.0K(47)] (KERNEL)
1103 ==========================================================================================================================================================
1104 Usage ( Usr / Buf / Ker )|___________________Function____________________|__________________________________LifeTime__________________________________
1105 ==========================================================================================================================================================
1106 8192K( 0/ 0/ 8192)| do_huge_pmd_anonymous_page | AVR: 1.563 / MIN: 1.562 / MAX: 1.564
1107 + 8192K( 0/ 0/ 8192)| <- handle_mm_fault <- __do_page_fault <- do_page_fault <- page_fault
1108 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1109 3084K( 3084/ 0/ 0)| handle_mm_fault | AVR: 1.563 / MIN: 1.554 / MAX: 1.569
1110 + 3076K( 3076/ 0/ 0)| <- __do_page_fault <- do_page_fault <- page_fault
1111 + 4K( 4/ 0/ 0)| <- __get_user_pages <- get_user_pages <- copy_strings.isra.17 <- copy_strings_kernel <- do_execve_common.isra.23
1112 <- SyS_execve <- stub_execve
1113 + 4K( 4/ 0/ 0)| <- __do_page_fault <- do_page_fault <- page_fault <- load_elf_binary <- search_binary_handler
1114 <- do_execve_common.isra.23 <- SyS_execve <- stub_execve
1115 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1116
1117 >>>
1118
1119 # python3 guider/guider.py filerec
1120
1121 [File Usage Info] [File: 213] [RAM: 175.2M] [Reclaim: 0/0] [Uptime: 1d:01:42:33] [Keys: Foward/Back/Save/Quit]
1122 ==========================================================================================================================================================
1123 __RAM___|__File__|__%__|__PSS___|____________________________________________________Library & Process____________________________________________________
1124 ==========================================================================================================================================================
1125 39.1M | 39.1M | 100 | 39.1M | /var/lib/snapd/snaps/snapd_21184.snap [Proc: 1] [Link: 1] [Open: 1]
1126 | snapfuse ( 125) |
1127 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1128 5.3M | 8.0M | 66 | 5.3M | /var/log/journal/758ca7c4e01db1a1cae9325f634ab22a/system.journal [Proc: 1] [Link: 1] [Open: 1]
1129 | systemd-journal ( 56) |
1130 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1131 5.2M | 5.2M | 100 | 5.2M | /home/iipeace/guider/guider/.guider.py.swp [Proc: 1] [Link: 1] [Open: 1]
1132 | vi ( 6732) |
1133 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1134 5.1M | 5.6M | 90 | 2.5M | /usr/bin/python3.10 [Proc: 2] [Link: 1] [Map: 2]
1135 | networkd-dispat ( 178) | unattended-upgr ( 341) |
1136 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1137 3.8M | 4.2M | 89 | 434.7K | /usr/lib/x86_64-linux-gnu/libcrypto.so.3 [Proc: 9] [Link: 1] [Map: 9]
1138 | systemd ( 1) | systemd-journal ( 56) | systemd-udevd ( 85) | systemd-network ( 172) |
1139 | systemd-logind ( 190) | udisksd ( 198) | systemd-resolve ( 262) | sshd ( 829) |
1140 | packagekitd ( 3858) |
1141 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1142 3.7M | 8.0M | 46 | 3.7M | /var/log/journal/758ca7c4e01db1a1cae9325f634ab22a/user-1000.journal [Proc: 1] [Link: 1] [Open: 1]
1143 | systemd-journal ( 56) |
1144 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1145
1146 >>>
1147
1148 $ python3 guider/guider.py top -o guider.out
1149 $ python3 guider/guider.py draw guider.out
1150
1151 >>>
1152
1153 <img alt="graph" src="https://user-images.githubusercontent.com/15862689/67160607-9b1fc680-f38d-11e9-988e-5d90729d983e.png" width="100%" height="100%">
1154 <img alt="chart" src="https://user-images.githubusercontent.com/15862689/67160609-9bb85d00-f38d-11e9-9280-9ab649bb56b1.png" width="100%" height="100%">
1155
1156 >>>
1157
1158 # python3 guider/guider.py rec -s guider.dat
1159 # python3 guider/guider.py draw guider.dat
1160
1161 >>>
1162
1163 <img alt="timeline" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_timeline.png" width="100%" height="100%">
1164
1165 >>>
1166
1167 # python3 guider/guider.py utop -g testTask -H -o guider.out
1168 # python3 guider/guider.py drawflame guider.out
1169
1170 >>>
1171
1172 <img alt="flamegraph" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_flamegraph.png" width="100%" height="100%">
1173
1174 >>>
1175
1176 $ python3 guider/guider.py top -o test1.out
1177 $ python3 guider/guider.py top -o test2.out
1178 $ python3 guider/guider.py top -o test3.out
1179 $ python3 guider/guider.py drawavg "test1.out" "test2.out" "test3.out"
1180 $ python3 guider/guider.py drawavg "test*.out"
1181
1182 >>>
1183
1184 <img alt="drawavg" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_drawavg.svg" width="100%" height="100%">
1185
1186 >>>
1187
1188 $ python3 guider/guider.py req "https://www.google.com|https://www.naver.com" -R 1000 -o guider.out
1189 $ python3 guider/guider.py drawreq guider.out
1190
1191 >>>
1192
1193 <img alt="drawreq" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_drawreq.svg" width="100%" height="100%">
1194
1195 >>>
1196
1197 $ python3 guider/guider.py top -o test1.out
1198 $ python3 guider/guider.py top -o test2.out
1199 $ python3 guider/guider.py top -o test3.out
1200 $ python3 guider/guider.py drawviolin "test.out" "test2.out" "test3.out"
1201 $ python3 guider/guider.py drawviolin "test*.out"
1202
1203 >>>
1204
1205 <img alt="violingraph" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_violingraph.png" width="100%" height="100%">
1206
1207 >>>
1208
1209 webservice
1210
1211 >>>
1212
1213 <img alt="dashboard" src="https://user-images.githubusercontent.com/15862689/67160178-0024ed80-f389-11e9-9a09-6a8eb96e2785.png" width="100%" height="100%">
1214
1215 How to use
1216 =======
1217
1218 ```
1219 To view a list of all commands supported by Guider, enter one of the following commands:
1220 $ python3 guider/guider.py --help
1221 $ python3 -m guider --help
1222 $ guider --help
1223
1224 To start tracing for all threads, use the following command:
1225 # python3 guider/guider.py rec -a
1226
1227 To start tracing for all threads, use the following command:
1228 $ python3 guider/guider.py top -a
1229
1230 To view options and examples for each command, enter a command in the following format:
1231 $ python3 guider/guider.py rec -h
1232 $ python3 guider/guider.py top -h
1233
1234 To view the output of Guider, visit the following link:
1235 - https://github.com/iipeace/guider/wiki
1236 ```
1237
1238
1239 Build & Installation
1240 =======
1241
1242 ```
1243 To install Guider using pip, enter the following commands:
1244 # pip3 install guider
1245 # pip3 install guider --no-deps
1246 # pip3 install guider --force-reinstall
1247
1248 After installation, run one of the following commands to start Guider:
1249 # python3 -m guider
1250 # guider
1251
1252 If you don't have pip on your system, you can download the source code from https://github.com/iipeace/guider, and then run the following command to start Guider:
1253 # python3 guider/guider.py
1254
1255 For faster and lighter operation, you can build and install Guider from the source code by running the following commands:
1256 # cd guider && make && make install
1257 ```
1258
1259 Pre-built versions of Guider are available at https://repology.org/project/guider/versions.
1260
1261 Kernel Configuration
1262 =======
1263
1264 ```
1265 Enable kernel options as below to take advantage of all profile features,
1266 And if CONFIG_STRICT_MEMORY_RWX is enabled then disable it
1267
1268 CONFIG_RING_BUFFER
1269 CONFIG_FTRACE
1270 CONFIG_TRACING
1271 CONFIG_TRACING_SUPPORT
1272 CONFIG_EVENT_TRACING
1273 CONFIG_NOP_TRACER
1274 CONFIG_TRACEPOINTS
1275 CONFIG_DYNAMIC_FTRACE
1276 CONFIG_HAVE_DYNAMIC_FTRACE
1277 CONFIG_FTRACE_SYSCALLS
1278 CONFIG_HAVE_SYSCALL_TRACEPOINTS
1279 CONFIG_TRACE_IRQFLAGS
1280 CONFIG_TRACE_IRQFLAGS_SUPPORT
1281
1282 CONFIG_STACKTRACE
1283 CONFIG_STACKTRACE_SUPPORT
1284 CONFIG_USER_STACKTRACE_SUPPORT
1285 CONFIG_FUNCTION_TRACER
1286 CONFIG_FUNCTION_GRAPH_TRACER
1287 CONFIG_UPROBES
1288 CONFIG_UPROBE_EVENT
1289 CONFIG_KPROBES
1290 CONFIG_KPROBE_EVENTS
1291
1292 CONFIG_TASKSTATS
1293 CONFIG_TASK_DELAY_ACCT
1294 CONFIG_TASK_XACCT
1295 CONFIG_TASK_IO_ACCOUNTING
1296 CONFIG_PERF_EVENTSĀ 
1297 CONFIG_HW_PERF_EVENT
1298 ```
1299
1300
1301 Help
1302 =======
1303
1304 ```
1305 Usage:
1306 $ guider COMMAND [OPTIONS] [--help]
1307
1308 COMMAND(153):
1309 [CONTROL] cgroup <Cgroup> (Linux)
1310 freeze <Thread> (Linux)
1311 hook <Function> (Linux)
1312 kill/tkill <Signal> (Linux/MacOS)
1313 limitcpu <CPU> (Linux)
1314 limitcpuset <CPU> (Linux)
1315 limitmem <Memory> (Linux)
1316 limitpid <Task> (Linux)
1317 limitread <I/O> (Linux)
1318 limitwrite <I/O> (Linux)
1319 pause <Thread> (Linux)
1320 remote <Command> (Linux)
1321 rlimit <Resource> (Linux)
1322 setafnt <Affinity> (Linux)
1323 setcpu <Clock> (Linux)
1324 setsched <Priority> (Linux)
1325
1326 [LOG] logand <Android> (Linux)
1327 logdlt <DLT> (Linux)
1328 logjrl <Journal> (Linux)
1329 logkmsg <Kernel> (Linux)
1330 logsys <Syslog> (Linux)
1331 logtrace <Ftrace> (Linux)
1332 printand <Android> (Linux)
1333 printdlt <DLT> (Linux/MacOS/Windows)
1334 printjrl <Journal> (Linux)
1335 printkmsg <Kernel> (Linux)
1336 printsyslog <Syslog> (Linux)
1337 printtrace <Ftrace> (Linux)
1338
1339 [MONITOR] atop <All> (Linux)
1340 bgtop <Background> (Linux/MacOS/Windows)
1341 btop <Function> (Linux)
1342 cgtop <Cgroup> (Linux)
1343 ctop <Threshold> (Linux/MacOS/Windows)
1344 dbustop <D-Bus> (Linux)
1345 disktop <Storage> (Linux/MacOS/Windows)
1346 dlttop <DLT> (Linux/MacOS)
1347 fetop <File> (Linux)
1348 ftop <File> (Linux/MacOS)
1349 irqtop <IRQ> (Linux)
1350 kftop <Function> (Linux)
1351 ktop <Function> (Linux)
1352 mtop <Memory> (Linux)
1353 ntop <Network> (Linux/MacOS/Windows)
1354 ptop <PMU> (Linux)
1355 pytop <Python> (Linux)
1356 rtop <JSON> (Linux/MacOS/Windows)
1357 slabtop <Slab> (Linux)
1358 stacktop <Stack> (Linux)
1359 systop <Syscall> (Linux)
1360 top <Process> (Linux/MacOS/Windows)
1361 trtop <Tree> (Linux)
1362 ttop <Thread> (Linux)
1363 utop <Function> (Linux)
1364 vtop <Memory> (Linux)
1365 wtop <WSS> (Linux)
1366
1367 [NETWORK] cli <Client> (Linux/MacOS/Windows)
1368 event <Event> (Linux)
1369 fserver <File> (Linux/MacOS/Windows)
1370 hserver <Http> (Linux/MacOS/Windows)
1371 list <List> (Linux/MacOS/Windows)
1372 send <UDP> (Linux/MacOS/Windows)
1373 server <Server> (Linux/MacOS)
1374 start <Signal> (Linux)
1375
1376 [PROFILE] filerec <File> (Linux)
1377 funcrec <Function> (Linux)
1378 genrec <System> (Linux)
1379 iorec <I/O> (Linux)
1380 mem <Page> (Linux)
1381 rec <Thread> (Linux)
1382 report <Report> (Linux)
1383 sysrec <Syscall> (Linux)
1384
1385 [TEST] cputest <CPU> (Linux/MacOS/Windows)
1386 iotest <Storage> (Linux/MacOS/Windows)
1387 memtest <Memory> (Linux/MacOS/Windows)
1388 nettest <Network> (Linux)
1389
1390 [TRACE] btrace <Function> (Linux)
1391 leaktrace <Leak> (Linux)
1392 mtrace <Memory> (Linux)
1393 pytrace <Python> (Linux)
1394 sigtrace <Signal> (Linux)
1395 strace <Syscall> (Linux)
1396 utrace <Function> (Linux)
1397
1398 [UTIL] addr2sym <Symbol> (Linux/MacOS/Windows)
1399 checkdup <Page> (Linux)
1400 comp <Compress> (Linux/MacOS/Windows)
1401 decomp <Decompress> (Linux/MacOS/Windows)
1402 dirdiff <Dir> (Linux/MacOS/Windows)
1403 dump <Memory> (Linux)
1404 exec <Command> (Linux/MacOS/Windows)
1405 fadvise <File> (Linux)
1406 flush <Memory> (Linux)
1407 getafnt <Affinity> (Linux)
1408 getpid <PID> (Linux)
1409 less <Pager> (Linux/MacOS/Windows)
1410 merge <File> (Linux/MacOS/Windows)
1411 mkcache <Cache> (Linux/MacOS/Windows)
1412 mount <Mount> (Linux)
1413 ping <ICMP> (Linux/MacOS/Windows)
1414 print <File> (Linux/MacOS/Windows)
1415 printbind <Function> (Linux)
1416 printcg <Cgroup> (Linux)
1417 printdbus <D-Bus> (Linux)
1418 printdbusintro <D-Bus> (Linux)
1419 printdbusstat <D-Bus> (Linux)
1420 printdbussub <D-Bus> (Linux)
1421 printdir <Dir> (Linux/MacOS/Windows)
1422 printenv <Env> (Linux)
1423 printext <Ext4> (Linux/MacOS/Windows)
1424 printinfo <System> (Linux)
1425 printkconf <kernel> (Linux)
1426 printns <Namespace> (Linux)
1427 printsdfile <Systemd> (Linux)
1428 printsdinfo <Systemd> (Linux)
1429 printsdunit <Systemd> (Linux)
1430 printsig <Signal> (Linux)
1431 printslab <Slab> (Linux)
1432 printvma <Vmalloc> (Linux)
1433 pstree <Process> (Linux/MacOS/Windows)
1434 readahead <File> (Linux)
1435 readelf <File> (Linux/MacOS/Windows)
1436 req <URL> (Linux/MacOS/Windows)
1437 split <File> (Linux/MacOS/Windows)
1438 strings <Text> (Linux/MacOS/Windows)
1439 sym2addr <Address> (Linux/MacOS/Windows)
1440 sync <File> (Linux)
1441 sysrq <sysrq> (Linux)
1442 systat <Status> (Linux)
1443 topdiff <Diff> (Linux/MacOS/Windows)
1444 topsum <Summary> (Linux/MacOS/Windows)
1445 umount <Unmount> (Linux)
1446 watch <File> (Linux)
1447
1448 [VISUAL] convert <Text> (Linux/MacOS/Windows)
1449 draw <System> (Linux/MacOS/Windows)
1450 drawavg <Average> (Linux/MacOS/Windows)
1451 drawbitmap <Bitmap> (Linux/MacOS/Windows)
1452 drawcpu <CPU> (Linux/MacOS/Windows)
1453 drawcpuavg <CPU> (Linux/MacOS/Windows)
1454 drawdelay <Delay> (Linux/MacOS/Windows)
1455 drawflame <Function> (Linux/MacOS/Windows)
1456 drawhist <Histogram> (Linux/MacOS/Windows)
1457 drawio <I/O> (Linux/MacOS/Windows)
1458 drawleak <Leak> (Linux/MacOS/Windows)
1459 drawmem <Memory> (Linux/MacOS/Windows)
1460 drawmemavg <Memory> (Linux/MacOS/Windows)
1461 drawpri <Prio> (Linux/MacOS/Windows)
1462 drawreq <URL> (Linux/MacOS/Windows)
1463 drawrss <RSS> (Linux/MacOS/Windows)
1464 drawrssavg <RSS> (Linux/MacOS/Windows)
1465 drawstack <System> (Linux/MacOS/Windows)
1466 drawtime <Timeline> (Linux/MacOS/Windows)
1467 drawviolin <Data> (Linux/MacOS/Windows)
1468 drawvss <VSS> (Linux/MacOS/Windows)
1469 drawvssavg <VSS> (Linux/MacOS/Windows)
1470
1471 FILE:
1472 Profile file (e.g. guider.dat)
1473 Report file (e.g. guider.out)
1474
1475 Options:
1476 Check COMMAND with --help (e.g. guider top --help)
1477
1478 ```