Installing perf, iotop, and ltrace
perf, iotop, and ltrace are third-party tools. The installation methods provided below are for reference only. You should adapt them according to actual environments.
- For Ubuntu 20.04, run the following commands:
- Method for installing the iotop tool:
apt-get install iotop
- Method for installing the perf tool:
apt-get install linux-tools-common
After the installation is complete, run the perf command. Then run the apt-get install commands to install linux-tools-x and linux-cloud-x as prompted.
- Method for installing the ltrace tool:
apt-get install ltrace
- Method for installing the iotop tool:
- The installation command applies to Ubuntu 18.04.
- Method for installing the iotop tool:Python 3 is used as an example. If you use another Python version, adapt it as required.
wget http://guichaz.free.fr/iotop/files/iotop-0.6.tar.bz2 tar -xvf iotop-0.6.tar.bz2 cd iotop-0.6 sed -i 's/itervalues/values/g' setup.py python3 setup.py build python3 setup.py install ln -s /usr/local/python3/sbin/iotop /usr/sbin/iotop ln -s /usr/local/python3/bin/iotop /usr/bin/iotop
- Method for installing the perf tool:
apt-get install linux-tools-common
After the installation is complete, run the perf command. Then run the apt-get install commands to install linux-tools-x and linux-cloud-x as prompted.
- Method for installing the ltrace tool:
apt-get install ltrace
- Method for installing the iotop tool:
- For CentOS 7.6, EulerOS, openEuler 20.03, openEuler 22.03, and Kylin V10 SP1 of the x86_64 architecture, run the following command:
yum install perf iotop ltrace
- For Kylin V10 SP1 of the ARM architecture, you only need to install the iotop tool with the following command:
yum install iotop
- The root user is used as an example to run the preceding commands. For a non-root user, add sudo before each command line.
- The iotop tool cannot be used in containers.
- After installing the perf, iotop, and ltrace tools, perform operations in Configuring User Permissions.
Parent topic: Appendixes