You can use Vmstat to display information such as system load.
For example, Vmstat 5 5 means that n (5) samples are sampled in T (5) seconds.
Procs:
r-->; number of processes waiting in the run queue
b-->; number of processes waiting on Io
w-->; can enter a process that runs the queue but is replaced
Memoy
swap-->; currently available swap memory (k)
free-->; idle memory (k)
Pages
re--"Recycled pages
mf--"Not a serious error page
pi--"Number of pages entered (k)
po--"Number of pages out (k)
fr--"Number of free pages (k)
de--the number of misses in the page that was read in advance
sr--"page scanned by the clock algorithm
Disk displays the disks operation per second. s indicates a SCSI disk, 0 indicates the disk number
Fault display of interrupts per second
in--"Device interrupted
sy--"System Interrupt
cy--"CPU Switching
CPU indicates usage status of CPU
cs--"User Process usage time
sy--"Time the system process was used
id--"CPU Idle Time
Explain:
If R is often greater than 4 and the ID is often less than 40, it indicates that the CPU is heavily loaded.
If the Pi,po is not equal to 0 for a long time, it indicates insufficient memory.
If disk is often not equal to 0, and the queue in B is greater than 3, the IO performance is poor.
[Email protected] ~]# Vmstat 5 5
procs-----------Memory-------------Swap-------io------System-------CPU-----
R b swpd free buff cache si so bi bo in CS us sy ID WA St
0 0 212200 838264 4120 2237684 0 0 54 179 1 1 1 0 98 0 0
0 0 212200 838240 4128 2237724 0 0 0 268 318 400 0 0 100 0 0
0 0 212200 838372 4144 2237724 0 0 0 236 319 401 0 0 100 0 0
0 0 212200 838256 4152 2237724 0 0 0 311 329 397 0 0 100 0 0
0 0 212200 838256 4168 2237724 0 0 0 6 315 406 0 0 100 0 0