2018-08-08 tools

【转】latencytop深度了解你的Linux系统的延迟

【转】latencytop深度了解你的Linux系统的延迟


Android

bootchart

systrace

Linux

strace

ftrace

perf

latencytop
Use LatencyTOP to find out where process latency is coming from

2018-08-08 tools_第1张图片
image.png
2018-08-08 tools_第2张图片
image.png
  • way 1
$ tar xzvf /.../latencytop-0.4.tar.gz
$ cd ./latencytop*
$ make
$ ./latencytop
Please enable the CONFIG_LATENCYTOP configuration in your kernel.
Exiting...
# sudo ./latencytop
LatencyTOP version 0.4 (C) 2008 Intel Corporation
  • way 2
$ tar xjf /.../linux-2.6.26.2.tar.bz2
$ cd ./linux-2.6.26.2
$ cat /.../latencytop.patch | patch -p1
$ make menuconfig
$ make bzImage modules
  • Error
root@xy4-OptiPlex-9020:~/workspace/git/mount# latencytop
mount: none is already mounted or /sys/kernel/debug busy
Please enable the CONFIG_LATENCYTOP configuration in your kernel.
Exiting...

dstat

$ sudo apt install dstat
2018-08-08 tools_第3张图片
image.png

dtrace

stap

你可能感兴趣的:(2018-08-08 tools)