Linux Learning Notes (7)-System Resource View

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.