Analyzing a Single Linux Process Using PID
WE can get the process ID using the PID of or ps command:-
$ pidof apache2 OR $ ps -e | grep apache2
For monitoring for all processes in the system write the following command:
guider/guider.py top -a
We can also set an interval for showing the output using the following command:
sudo guider/guider.py top -i 2
To analyze resource usage which will give output regarding CPU cycle, instruction number, IPC, faults, cache miss, branch miss and so much more in real-time by using the following command:
sudo guider/guider.py top -eP -g 1913
-g sets a filter that is the process ID in this case.
Guider a System Wide Linux Performance Analyzer
Guider is an open-source integrated performance analyzer tool written mostly in Python for Linux operating systems. Most of the functions required for measuring, analyzing, testing, and verifying Linux system performance are provided in Guider. Guider provides most of the features like Monitoring, Profiling, Visualization, control, Logging, Test.
Information concerning CPU, memory, disk usage per thread, processes, system functions (user/kernel) are shown which makes it easy to know the root cause for abnormal system performance and improve them.
In this article, the installation of guider from source will be shown and also how to use it to analyze and improve overall Linux operating system performance.
Contact Us