CentOS view Thread, hard disk, memory, CPU, NIC

Source: Internet
Author: User

1. View the hard drive

[Email protected] ~]$ Df-ah

2. View Memory

[Email protected] ~]$ free-m

3, monitoring the load of the system

W View the current system load, detailed display the host running time, the number of logged on users, the system average load information;

Uptime view current system load and host running time, simple display;

Display Description:

17:30:02//system current time;

Up 8:06//host has run time, the greater the time, the more stable the machine.

3 users//user connections (is the total number of connections, not the number of users)

Load average:0.05, 0.08, 0.02//System average load, statistics the average load of the system in the last 1, 5, 15 minutes;

The second line starts and all the following lines, recording the currently logged in user, from where to log in, login time, etc.;

Focus needs to focus on load average: The average number of processes running in a queue at a specific time interval.  

The first value represents the average load value of the system within 1 minutes, the second value represents the average load value of the system within 5 minutes, and the third value represents the average load value of the 15-minute system. The meaning of this value is the number of CPU active processes per unit time period. The larger the value, the greater the pressure on your server. In general, this value as long as the number of servers does not have a relationship, if the number of servers CPU is 8, then this value if less than 8, the current server is no pressure, otherwise it will pay attention to.

4, real-time monitoring system Status Vmstat

Vmstat Monitoring Once

Vmstat 1 real-time monitoring, 1 seconds to refresh, press CTRL + C exit;

Vmstat 1 10 monitor only 10 times;

Vmstat the meaning of each indicator:
R: Indicates the number of processes running and waiting for CPU time slices, if the long-term is greater than the number of server CPUs, it indicates that the CPU is not enough;
B: Indicates the number of processes waiting for a resource, such as waiting for I/O, memory, and so on, if the value of this column is greater than 1 for a long time, then you need to look at
Si: The amount of memory entered by the switching zone;
So: the number of memory into the swap area;
BI: The amount of data read from a block device (read disk);
Bo: The amount of data written from a block device (write disk);
In: Number of interrupts per second, including clock interrupts;
CS: The number of context switches per second;
WA: Represents the percentage of CPU time consumed by I/O waits.

5. View CPU

[Email protected] ~]$ Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-c

8 Intel (R) Xeon (r) CPU E5506 @ 2.13GHz

Description is a 8 logical CPU

[Email protected] ~]$ Cat/proc/cpuinfo | grep Physical | Uniq-c

4 Physical id:0

4 Physical Id:1

1. View the number of physical CPUs

grep ' physical id '/proc/cpuinfo | Sort-u | Wc-l

2. View the number of cores
grep ' core ID '/proc/cpuinfo | Sort-u | Wc-l

3. View the number of threads

grep ' Processor '/proc/cpuinfo | Sort-u | Wc-l

4. Query the system CPU whether Hyper-Threading is enabled: Cat/proc/cpuinfo | Grep-e "CPU Cores"-e "siblings" | Sort | Uniq

Output Example:

CPU Cores:8
Siblings:16

If the number of CPU cores is the same as the number of siblings, then hyper-threading is not enabled, otherwise Hyper-threading is enabled.

5. View current operating system kernel information

[Email protected] ~]$ uname-a

Linux investide.cn 2.6.18-238.9.1.el5pae #1 SMP Tue April 18:52:55 EDT i686 i686 i386 gnu/linux

6. View Network card information

# DMESG | Grep-i ETH

7. View the System

Cat/etc/issue

8. View gateways, etc.

Route

CentOS view Thread, hard disk, memory, CPU, NIC

Related Article

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.