In this blog article, we are going to see how to analyze
top command like a pro. I am learning Linux extensively from past couple of years which is helping me to learn more several Linux based tools. One of the frequent command is
top among system administratots and engineers.
top command displays the Linux processes on the host. Here is the definition from the manual:
The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of processes
or threads currently being managed by the Linux kernel. The types of system summary information shown and the types, order and size of information displayed for processes are all user configurable and that configuration can be made persistent across restarts.
top mostly to view the list of processes, its CPU and memory usage and other details.
Here is the screenshot of my Raspberry Pi processes:
It displays the processes in a table format with several columns as shown above.
You can type
h to view the shortcuts which will help you to navigate. E.g. if you type
m which will display the memory info at the top.
How to analyze top command like a pro?
If you are getting started with Linux and would like to analyze the top command, going thru in the table view might be overwhelming.
I will share you the cool tool from yCrash which will help you to deep-dive into your
top command output to the clipboard and launch https://ycrash.io/yc-top-analyzer.jsp
top command output and then click on
Analyze button as shown below.
Once you click on
top command Analyzer will give you a unique URL like this https://ycrash.io/yc-report-top-public.jsp?ou=yc-public&de=126.96.36.199&ts=2021-06-26T20-28-2&app=top-app
The tool will analyze the metrics and present it a neat format. In my case, I have got two issues: Free memory is less than 5% of total memory and Used swap memory is more than 10% of total memory.
top report will display the pie chart, bar chart, and a tabular view of the processes. There are relevant help links for each panel which will help you to learn further.
As you see, analyzing the
top command output is quick and easy using this cool tool. Please give it a try and let me know if you have any questions.
Here is a tip, if you want something fancy you can install