Linux 性能監控
阿新 • • 發佈:2017-07-13
linux id 空閑CPU百分比
wa 等待輸入輸出的CPU時間百分比
hi 硬件中斷
si 軟件中斷
查看I/O:
1, top
us: is meaning of "user CPU time"
sy: is meaning of "system CPU time"
ni: is meaning of" nice CPU time"
id: is meaning of "idle"
wa: is meaning of "iowait"
hi:is meaning of "hardware irq"
si : is meaning of "software irq"
st : is meaning of "steal time"
中文翻譯為:
us 用戶空間占用CPU百分比
sy 內核空間占用CPU百分比
ni 用戶進程空間內改變過優先級的進程占用CPU百分比
wa 等待輸入輸出的CPU時間百分比
hi 硬件中斷
si 軟件中斷
2, iotop
3, ps -eo stat,pid,cmd, 查看D狀態的進程,出問題的
4,lsof -p pid 查看進程在讀什麽文件
5,查看磁盤讀寫I/O iostat
6,sar -n DEV 查看網卡流量, iptraf命令是圖形化的監控ip流量命令
7, sar -u cpu
8, sar -r 內存
9, 查看某個進程正在使用的內存,可執行的虛擬內存信息,cat/proc/pid/statm,輸出5個數字
10,swapon -s查看swap分區使用情況
11, ethtool eth0, 顯示eth網卡配置
Linux 性能監控