Monitoring system resources:Vmstat
#vmstat [ sampling time ] [ sample Count ]
such as : #vmstat 3 2
Sample every 3 seconds for a total of 2 samples
Output information each field explains
R |
indicates how large the run queue is if the queue is run CPU is busy |
B |
Represents a blocked process |
Swpd |
the size of virtual memory used, if greater than 0, indicates that the machine is running out of physical memory |
Free |
Free Physical Memory size |
Buff |
Buffer |
Cache |
Cache |
Si |
The size of virtual memory read from disk per second |
So |
Size of disk written from virtual memory per second |
Bi |
Write speed of disk |
Bo |
Read speed of the disk |
Id |
Percentage of CPU idle resources |
Explanation of caching and buffering:
Because hard disk and memory read and write speed is very different, when there is data written to the disk there will be buffering mechanism to improve efficiency. When data is written from disk to memory, there is a caching mechanism to improve efficiency
Check the kernel detection information at boot :d MESG
in the Start Linux , there will be a lot of text in front of the screen is displayed on the screen, feeling very tall on. That information contains system resource information. You can still view it after the boot is complete, you can use the DMESG command.
#dmesg
The above output information a lot, with the naked eye to find the information they need very painful, plumbing services to help.
#dmesg | grep CPU
Find CPU information with pipeline service
View Memory usage : Free
#free-M
Display memory usage , MB of memory units
View CPU Details
#cat/proc/cpuinfo
Show the detailed CPU Information
View information about the system kernel : uname
#uname [ Options ]
Options :
-A: View all relevant information about the system
-r: View kernel version
-S: View kernel name
Determine the number of bits in the current system
#File/bin/ls
will show whether the current number of bits in the system is 32-bit or 64-bit. /bin/ls is the path where the system comes with command ls
View Distribution of Linux systems:lsb_release
#lsb_release