diff --git a/Software/Development/OperatingSystem/Linux/User/Linux_性能分析工具.md b/Software/Development/OperatingSystem/Linux/User/Linux_性能分析工具.md index bb3caac..38c0c36 100644 --- a/Software/Development/OperatingSystem/Linux/User/Linux_性能分析工具.md +++ b/Software/Development/OperatingSystem/Linux/User/Linux_性能分析工具.md @@ -84,7 +84,7 @@ glances -c [-p ] ```bash pacman -S python-bottle -glances -s [-B
] [-p ] [--username] [--password] +glances -w [-B
] [-p ] [--username] [--password] ``` To change the refresh rate of the page, just add the period in seconds at the end of the URL. For example, to refresh the page every 10 seconds: @@ -93,7 +93,16 @@ To change the refresh rate of the page, just add the period in seconds at the en http://@server:61208/10 ``` -## 6.Others +## 6.nethogs + +是一个开源的命令行工具(类似于Linux的top命令),用来按进程或程序实时统计网络带宽使用率。 + +```bash +pacman -S nethogs +nethogs +``` + +## 7.Others ```bash dstat @@ -115,15 +124,15 @@ slabtop sysctl ``` -## 6.常见参数解读 +## 8.常见参数解读 -## 6.1.内存参数 +## 8.1.内存参数 * Buffer Cache:缓冲区,一个用于存储速度不同步的设备或优先级不同的设备之间传输数据的区域。通过缓冲区,可以使进程之间的相互等待变少,从而使从速度慢的设备读入数据时,速度快的设备的操作进程不发生间断。对应磁盘上一个块(block),块通常为1K。在linux下,为了更有效的使用物理内存,操作系统自动使用所有空闲内存作为 Buffer/Cache 使用。当程序需要更多内存时,操作系统会自动减小Cache的大小。 * Page Cache:作为 Page Cache 的内存, 文件系统的 Cache。 * Shared memory:主要用于在UNIX 环境下不同进程之间共享数据,是进程间通信的一种方法,一般的应用程序不会申请使用共享内存。 -## 8.内部参考关键字 +## 9.内部参考关键字 1. Meminfo 2. Sysstat