CentOS Viewing operating System information (important)

Source: Internet
Author: User

1. View the number of physical CPUs

[[email protected] ~]# cat/proc/cpuinfo |grep "Physical id" |sort |uniq|wc-l
1

2. View the number of logical CPUs

[Email protected] ~]# cat/proc/cpuinfo |grep "Processor" |wc-l
4

3. View CPU is a few cores (that is, the number of cores)

[Email protected] ~]# cat/proc/cpuinfo |grep "Cores" |uniq
CPU Cores:4

4, check the CPU frequency

[Email protected] ~]# cat/proc/cpuinfo |grep Mhz|uniq
CPU mhz:2499.982

5. Current operating system kernel information

[Email protected] ~]# uname-a
Linux MysqlCluster01 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu June 21:14:45 UTC x86_64 x86_64 x86_64 gnu/linux

6. Current operating system release information

[Email protected] ~]# cat/etc/issue
CentOS Release 6.4 (Final)
Kernel \ r on an \m

7. Memory usage

[Email protected] ~]# free-m
Total used free shared buffers Cached
mem:7863 2738 5125 0 141 835
-/+ buffers/cache:1761 6102
swap:3967 0 3967

Other commands:

[Email protected] ~]# Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-c
4 AMD Opteron (tm) Processor 6380

See there are 8 logical CPUs and know the CPU model

[Email protected] ~]# getconf long_bit
64

Indicates that the current CPU is running in 64bit mode

[Email protected] ~]# Cat/proc/cpuinfo | grep Flags | grep ' LM ' | Wc-l
4

The result is greater than 0, indicating support for 64bit calculations. LM refers to long mode, which supports LM while 64bit

CentOS Viewing operating System information (important)

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.