Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

https://juejin.cn/s/linux%E6%9F%A5%E7%9C%8Bcpu%E6%AF%8F%E4%B8%AA%E6%A0%B8%E4%BD%BF%E7%94%A8%E7%8E%87

htop真的相见恨晚!!

htop
上面显示每个虚拟核心,内存,
下面显示每个进程
教程 https://cloud.tencent.com/developer/article/1115041
https://htop.dev/screenshots.html
It is similar to top, but allows you to scroll vertically and horizontally, so you can see all the processes running on the system, along with their full command lines, as well as viewing them as a process tree, selecting multiple processes and acting on them all at once.
Configuring I/O scheduling priority (press “i”)
Configuring CPU affinity (press “a”)

top -H
显示每个进程,以及每个进程的每个线程的情况
-H :Threads-mode operation
Instructs top to display individual threads. Without this command-line option a summation of all threads in each process
is shown. Later this can be changed with the `H’ interactive command.

sar -P ALL 1
该命令将以每秒钟一个数据点的方式显示每个CPU核心的使用情况。

评论