Get the App
SLTechnology News&Howtos  ›  Servers  › 

High performance: LEP (LINUX EASY PROFILING)

Shulou Source: shulou.com Published: 2022-06-02 07:40:01 10月03日 Update

Getting started with LEP tools

I would like to recommend a gadget produced by teacher Song Baohua.

Related documentation:

Song Baohua: what is LEP (Linux easy-to-use profiler), why and what to do (1) [Zhongnanshan. Kernel asked] Visualization of Linux performance analysis

For the introduction of LEP, you can just look at the documents above.

The following is the installation and deployment process that I have recorded

Environment: CentOS7.7

IP: 10.10.11.11

Install lepd

Yum install libev libev-devel-y yum install perf # recommends that you also install the perf tool cd / root/git clone https://github.com/linuxep/lepd.gitcd lepdmake./guardian.sh to start the lepd process in the foreground

Install lepv

Official website address: there are two installation methods. Generally speaking, we recommend using docker to simplify systemctl start dockercd / root/git clone https://github.com/linuxep/lepv.git cd lepv/./buildImage.sh./runContainer.shss-lntp | after grep 80 confirms startup, our browser visits http://10.10.11.11.

Then, in the box at the top right, enter the address of the node where the lepd is located (we are still 10.10.11.11 here)

Then you can see what the following picture looks like.

We can execute execsnoop while lepd and lepv are running (this is an introduction to the bcc tool to see the high-performance class purpose blog), and you can see which commands the current system is running in the background (you can see that it is actually a combination of shell and perf commands)

Tags: Tools commands addresses suggestions documents methods Baohua profiling running high performance following figure kernel foreground available in the background actually in fact that is what to do performance Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Information Shulou Tech Info Huawei vpn