System monitoring dashboard for the terminal (with examples)
1: Show the system stats dashboard
gtop
Motivation
The motivation for using this command is to get a comprehensive overview of the system’s performance and resource usage. This allows users to monitor key metrics in real-time, such as CPU usage, memory usage, and disk activity. By using gtop
, users can quickly identify potential bottlenecks or issues that may be affecting system performance.
Explanation
The gtop
command displays a system monitoring dashboard in the terminal. It provides real-time information about various aspects of the system, including CPU, memory, disk, and network usage, as well as system load and process listing.
Example Output
..................................................
███▄ monitors load processes
███████
███████ activities
▀▀ ▀▀ [7m3s [27m
System uptime: 4d 23h 20m 32s
Load average: 0.34, 0.61, 0.53
CPU usage:
5% ██████████▋ |
███████████████████▏ |
▄██▍|
Memory usage: 2.12 GB / 7.79 GB (27.24%)
Disk activity:
IOPS Read rate Write rate
471 2.22 MB/s 3.45 MB/s
Network activity:
eth0 ▄▂ ▂▄ ▂▄ ▂ ▂
▶ ▶ ▶ ▶ ▶
Received 1.74 kB 2.31 kB 0.62 B
Sent 7.11 kB 11.4 kB 1.29 kB
Processes: 133 running of 443 total
2: Sort by CPU usage
gtop
Then press c
.
Motivation
The motivation for using this command is to sort the process listing in the gtop
dashboard according to CPU usage. By sorting processes based on CPU usage, users can quickly identify any processes that are consuming excessive CPU resources and potentially impacting system performance.
Explanation
The c
key can be pressed while running gtop
to sort the process listing by CPU usage in descending order.
Example Output
..................................................
███▄ monitors load processes
███████
███████ activities
▀▀ ▀▀ [7m3s [27m
System uptime: 4d 23h 20m 32s
Load average: 0.34, 0.61, 0.53
CPU usage:
90% ██████████████████████▇|
█████▋ |
|
Memory usage: 2.12 GB / 7.79 GB (27.24%)
Disk activity:
IOPS Read rate Write rate
471 2.22 MB/s 3.45 MB/s
Network activity:
eth0 ▄▂ ▂▄ ▂▄ ▂ ▂
▶ ▶ ▶ ▶ ▶
Received 1.74 kB 2.31 kB 0.62 B
Sent 7.11 kB 11.4 kB 1.29 kB
Processes: 133 running of 443 total
3: Sort by memory usage
gtop
Then press m
.
Motivation
The motivation for using this command is to sort the process listing in the gtop
dashboard according to memory usage. By sorting processes based on memory usage, users can quickly identify any processes that are consuming excessive memory resources and potentially impacting system performance.
Explanation
The m
key can be pressed while running gtop
to sort the process listing by memory usage in descending order.
Example Output
..................................................
███▄ monitors load processes
███████
███████ activities
▀▀ ▀▀ [7m3s [27m
System uptime: 4d 23h 20m 32s
Load average: 0.34, 0.61, 0.53
CPU usage:
5% ██████████▋ |
███████████████████▏ |
▄██▍|
Memory usage: 8.45 GB / 16 GB (52.81%)
Disk activity:
IOPS Read rate Write rate
471 2.22 MB/s 3.45 MB/s
Network activity:
eth0 ▄▂ ▂▄ ▂▄ ▂ ▂
▶ ▶ ▶ ▶ ▶
Received 1.74 kB 2.31 kB 0.62 B
Sent 7.11 kB 11.4 kB 1.29 kB
Processes: 133 running of 443 total
In conclusion, the gtop
command provides a convenient and powerful way to monitor system performance and resource usage in the terminal. By using various key commands, users can sort the process listing based on CPU or memory usage, allowing for quick identification of resource-intensive processes. This can be useful for troubleshooting performance issues or optimizing resource allocation.