#查看当前系统loaduptime # View System State and system resource usage per process top# Visualize CPU Usage htop# View the load information for each CPU mpstat-p All # View the statistics of disk IO every 1 seconds iostat- Xkdz # View the usage information of virtual memory every second Vmstat # View memory usage Statistics free# View network usage information nicstat-z a vmstat-like display optimization tool Dstat # View system activity status, such as system paging statistics, Block device IO statistics etc sar# Network connection Status View netstat-s# process Resource Usage information view Pidstat 1pidstat-d # View system call information for a process after-P is the system call time after the process ID,-TTTT process system STRACE-TTTT -P 12670# Statistics IO device input/output system call Information strace-c DD If=/dev/zero of=/dev/null bs=512 count=1024k#tcpdump View network packet tcpdump-nr/tmp/ out.tcpdump# block Device Read-write event information statistics BTRACE/DEV/SDB #iotop查看某个进程的IO操作统计信息iotop-bod5#slabtop View the usage information of the kernel slab memory allocator slabtop-sc# System parameter Settings sysctl-a# system performance Statistics perf STAT gzip file1# system CPU Activity Status View perf record-a-g-f 997 sleep 10
From his own github:https://github.com/zhwj184/shell-work/blob/master/performancetool.sh.