Dstat
If the system does not have some tools yum-y install Dstat installation, the software is small, the package size is only 144k, installation size 660k.
This tool will dynamically display the Cpu,disk,net,page,system load situation by default, as shown below, of course, there will be different colors, or more intuitive, a direct copy of a look, but also hope that you reader Haihan, do not shoot bricks.
[root@aaa]# Dstat
----total-cpu-usage-----dsk/total--net/total----paging-----system--
USR sys IDL Wai hiq siq| Read writ| Recv send| In Out | int CSW
10 1 89 0 0 0| 76k 339k| 0 0 | 0 0 | 208 686
16 3 82 0 0 0| 0 280k| 126k 125k| 0 0 |1058 500
12 2 86 0 0 0| 0 192k|4600b 6204b| 0 0 |1037 338
14 2 83 0 0 0| 0 0 |5042b 2648b| 0 0 |1029 277
Common Parameters
-C CPU is also, showing CPU system occupancy, user occupancy, idle, waiting, interruption, software interruption and other information
-C When there are multiple CPUs, this parameter can display the CPU state separately on demand
E.g-c 0,1 display cpu0 and CPU1 information
-D disk is also, display disk read-write data size
-D HDA and Total
-N Net Shows network status
When-n NET has multiple network adapters, specify the NIC to display
-L load average display system load condition
-M Memory Display memory usage
-G page Display page usage
-P process Shows progress status
-S swap display swap partition usage
-S similar to d/n
-R I/O request condition
-Y System Status
--IPC Displays IPC message queues, signals, and other information
--socket used to display TCP UDP port status
-A All this is the default option equivalent to-cdngy
-V Vmstat equivalent to-pmgdsc-d total
--output File This option is also useful for redirecting status information to the specified file in CSV format for later viewing. e.g Dstat--output/root/dstat.csv & at this time let the program silently run in the background and output the results to the/root/dstat.csv file
1. Cpu:hiq,siq is the number of hard interrupts and soft interrupts respectively.
2. SYSTEM:INT,CSW for system interrupts (interrupt) and Context switches (contextual switch)