View linux system information commands (kernel, OS, cpu, etc.), linuxkernel

Source: Internet
Author: User

View linux system information commands (kernel, OS, cpu, etc.), linuxkernel

1. view the kernel information of the current operating system

[Spark @ S1PA222 tomcat6] $ uname-
Linux S1PA222 2.6.32-358. el6.x86 _ 64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

2. view the released version of the current operating system

[Spark @ S1PA222 tomcat6] $ cat/etc/issue
CentOS release 6.4 (Final)
Kernel \ r on an \ m

3. view the cpu Model

[Spark @ S1PA222 tomcat6] $ cat/proc/cpuinfo | grep name | cut-d': '-f 2 | uniq-c
4 Intel (R) Xeon (R) CPU E5649 @ 2.53 GHz

4. view the number of physical CPUs

[Spark @ S1PA222 tomcat6] $ cat/proc/cpuinfo | grep physical | uniq-c
1 physical id: 0
1 address sizes: 40 bits physical, 48 bits virtual
1 physical id: 0
1 address sizes: 40 bits physical, 48 bits virtual
1 physical id: 1
1 address sizes: 40 bits physical, 48 bits virtual
1 physical id: 1
1 address sizes: 40 bits physical, 48 bits virtual

5. view the cpu Running Mode

[Spark @ S1PA222 tomcat6] $ getconf LONG_BIT
64

6. Check whether the cpu supports 64bit

[Spark @ S1PA222 tomcat6] $ cat/proc/cpuinfo | grep flags | grep 'lm '| wc-l
4

(If the result is greater than 0, 64bit computing is supported. lm indicates long mode, and lm indicates 64bit)

7. View cpu information Summary

[Spark @ S1PA222 tomcat6] $ lscpu
Architecture: x86_64 #
CPU op-mode (s): 32-bit, 64-bit
Byte Order: Little Endian
CPU (s): 4
On-line CPU (s) list: 0-3
Thread (s) per core: 1
Core (s) per socket: 2
Socket (s): 2
NUMA node (s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 44
Stepping: 2
CPU MHz: 2533.423
BogoMIPS: 5066.84
Hypervisor vendor: VMware
Virtualization type: full
L1d cache: 32 K
L1i cache: 32 K
L2 cache: 256 K
L3 cache: 12288 K
NUMA node0 CPU (s): 0-3

8. View cpu information Summary (more comprehensive)

[Spark @ S1PA222 tomcat6] $ cat/proc/cpuinfo
Processor: 0
Vendor_id: GenuineIntel
Cpu family: 6
Model: 44
Model name: Intel (R) Xeon (R) CPU E5649 @ 2.53 GHz
Stepping: 2
Cpu MHz: 2533.423
Cache size: 12288 KB
Physical id: 0
Siblings: 2
Core id: 0
Cpu cores: 2
Apicid: 0
Initial apicid: 0
Fpu: yes
Fpu_exception: yes
Cpuid level: 11
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm limit pebs bts limit pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm arat epb dts
Bogomips: 5066.84
Clflush size: 64
Cache_alignment: 64
Address sizes: 40 bits physical, 48 bits virtual
Power management:


Processor: 1
Vendor_id: GenuineIntel
Cpu family: 6
Model: 44
Model name: Intel (R) Xeon (R) CPU E5649 @ 2.53 GHz
Stepping: 2
Cpu MHz: 2533.423
Cache size: 12288 KB
Physical id: 0
Siblings: 2
Core id: 1
Cpu cores: 2
Apicid: 1
Initial apicid: 1
Fpu: yes
Fpu_exception: yes
Cpuid level: 11
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm limit pebs bts limit pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm arat epb dts
Bogomips: 5066.84
Clflush size: 64
Cache_alignment: 64
Address sizes: 40 bits physical, 48 bits virtual
Power management:


Processor: 2
Vendor_id: GenuineIntel
Cpu family: 6
Model: 44
Model name: Intel (R) Xeon (R) CPU E5649 @ 2.53 GHz
Stepping: 2
Cpu MHz: 2533.423
Cache size: 12288 KB
Physical id: 1
Siblings: 2
Core id: 0
Cpu cores: 2
Apicid: 2
Initial apicid: 2
Fpu: yes
Fpu_exception: yes
Cpuid level: 11
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm limit pebs bts limit pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm arat epb dts
Bogomips: 5066.84
Clflush size: 64
Cache_alignment: 64
Address sizes: 40 bits physical, 48 bits virtual
Power management:


Processor: 3
Vendor_id: GenuineIntel
Cpu family: 6
Model: 44
Model name: Intel (R) Xeon (R) CPU E5649 @ 2.53 GHz
Stepping: 2
Cpu MHz: 2533.423
Cache size: 12288 KB
Physical id: 1
Siblings: 2
Core id: 1
Cpu cores: 2
Apicid: 3
Initial apicid: 3
Fpu: yes
Fpu_exception: yes
Cpuid level: 11
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm limit pebs bts limit pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm arat epb dts
Bogomips: 5066.84
Clflush size: 64
Cache_alignment: 64
Address sizes: 40 bits physical, 48 bits virtual
Power management:






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.