忙裡偷閑浏覽網站,看到了一些不錯的Linux性能檢測工具。擔心以後忘記在這裡做個記錄。如有錯誤的地方,或者不足,以及平時用的不多,但是很給力的工具還請看到此博文的同志們多多提建議。謝謝!
dstat 工具
說明:dastat 此軟體小巧玲珑,軟體包大小隻有144k,安裝大小660k。
此工具預設情況下會動态顯示----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--負載情況.(看我上的圖)

1.安裝dstat
yum install dstat
2.使用
dstat -c -n -p -m
3.使用方法
常用參數
-c cpu是也,顯示CPU系統占用,使用者占用,空閑,等待,中斷,軟體中斷等資訊
-C 當有多個CPU時候,此參數可按需分别顯示cpu狀态
e.g -C 0,1 顯示cpu0和cpu1的資訊
-d disk是也,顯示磁盤讀寫資料大小
-D hda and total
-n net 顯示網絡狀态
-N net 有多塊網卡時,指定要顯示的網卡
-l load average 顯示系統負載情況
-m memory 顯示記憶體使用情況
-g page 顯示頁面使用情況
-p process 顯示程序狀态
-s swap 顯示交換分區使用情況
-S 類似D/N
-r I/O請求情況
-y system status
--ipc 顯示ipc消息隊列,信号等資訊
--socket 用來顯示tcp udp端口狀态
-a all 此為預設選項 等同于 -cdngy
-v vmstat 等同于 -pmgdsc -D total
--output 檔案 此選項也比較有用,可以把狀态資訊以csv的格式重定向到指定的檔案中,以便日後檢視。e.g dstat --output /root/dstat.csv & 此時讓程式默默的在背景運作并把結果輸出到/root/dstat.csv檔案中
-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-
dstat --help幫助說明
Versatile tool for generating system resource statistics
Dstat options:
-c, --cpu enable cpu stats
-C 0,3,total include cpu0, cpu3 and total
-d, --disk enable disk stats
-D total,hda include hda and total
-g, --page enable page stats
-i, --int enable interrupt stats
-I 5,eth2 include int5 and interrupt used by eth2
-l, --load enable load stats
-m, --mem enable memory stats
-n, --net enable network stats
-N eth1,total include eth1 and total
-p, --proc enable process stats
-r, --io enable io stats (I/O requests completed)
-s, --swap enable swap stats
-S swap1,total include swap1 and total
-t, --time enable time/date output
-T, --epoch enable time counter (seconds since epoch)
-y, --sys enable system stats
--aio enable aio stats
--fs, --filesystem enable fs stats
--ipc enable ipc stats
--lock enable lock stats
--raw enable raw stats
--socket enable socket stats
--tcp enable tcp stats
--udp enable udp stats
--unix enable unix stats
--vm enable vm stats
--plugin-name enable plugins by plugin name (see manual)
--list list all available plugins
-a, --all equals -cdngy (default)
-f, --full automatically expand -C, -D, -I, -N and -S lists
-v, --vmstat equals -pmgdsc -D total
--bw, --blackonwhite change colors for white background terminal
--float force float values on screen
--integer force integer values on screen
--nocolor disable colors (implies --noupdate)
--noheaders disable repetitive headers
--noupdate disable intermediate updates
--output file write CSV output to file
delay is the delay in seconds between each update (default: 1)
count is the number of updates to display before exiting (default: unlimited)