Command for viewing cpu cores and other parameters in linux

Source: Internet
Author: User

 

Command for viewing cpu cores and other parameters in linux 

 

#Uname-

Linux euis1 2.6.9-55. ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux

(View the kernel information of the current operating system)


#Cat/etc/issue | grep Linux

Red Hat Enterprise Linux AS release 4 (Nahant Update 5)

(View the released version of the current operating system)


#Cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c

8 Intel (R) Xeon (R) CPU E5410 @ 2.33 GHz

(We can see eight logical CPUs and the CPU model)


#Cat/proc/cpuinfo | grep physical | uniq-c

4 physical id: 0

4 physical id: 1

(It means two 4-core CPUs)


#Getconf LONG_BIT

32

(This indicates that the current CPU runs in 32bit mode, but does not indicate that the CPU does not support 64bit)


#Cat/proc/cpuinfo | grep flags | grep 'lm '| wc-l

8

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

 

 

==========================================================

 

Command for viewing the linux system version, kernel, CPU, MEM, and number of digits

 

1. view the version and Kernel
[Oracle @ svr15 ~] $ Cat/etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant)
Kernel/r on an/m

[Oracle @ svr15 ~] $ Cat/proc/version
Linux version 2.6.9-5. ELsmp (bhcompile@decompose.build.redhat.com) (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9. EL4) #1 SMP Wed Jan 5 19:30:39 EST 2005

[Oracle @ svr15 ~] $ Uname-r
2.6.9-5. ELsmp

2. View cpu, mem
[Oracle @ svr15 ~] $ Grep "model name"/proc/cpuinfo
Model name: Intel (R) Xeon (R) CPU 5130 @ 2.00 GHz
Model name: Intel (R) Xeon (R) CPU 5130 @ 2.00 GHz
Model name: Intel (R) Xeon (R) CPU 5130 @ 2.00 GHz
Model name: Intel (R) Xeon (R) CPU 5130 @ 2.00 GHz

[Oracle @ svr15 ~] $ Cat/proc/cpuinfo
Processor: 0
Vendor_id: GenuineIntel
Cpu family: 6
Model: 15
Model name: Intel (R) Xeon (R) CPU 5130 @ 2.00 GHz
Stepping: 6
Cpu MHz: 1995.006
Cache size: 64 KB
Physical id: 0
Siblings: 2
Fdiv_bug: no
Hlt_bug: no
F00f_bug: no
Coma_bug: no
Fpu: yes
Fpu_exception: yes
Cpuid level: 10
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 tm pbe nx lm pni monitor ds_cpl tm2 xtpr
Bogomips: 3956.73

Processor: 1
Vendor_id: GenuineIntel
Cpu family: 6
Model: 15
Model name: Intel (R) Xeon (R) CPU 5130 @ 2.00 GHz
Stepping: 6
Cpu MHz: 1995.006
Cache size: 64 KB
Physical id: 0
Siblings: 2
Fdiv_bug: no
Hlt_bug: no
F00f_bug: no
Coma_bug: no
Fpu: yes
Fpu_exception: yes
Cpuid level: 10
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 tm pbe nx lm pni monitor ds_cpl tm2 xtpr
Bogomips: 3981.31

Processor: 2
Vendor_id: GenuineIntel
Cpu family: 6
Model: 15
Model name: Intel (R) Xeon (R) CPU 5130 @ 2.00 GHz
Stepping: 6
Cpu MHz: 1995.006
Cache size: 64 KB
Physical id: 3
Siblings: 2
Fdiv_bug: no
Hlt_bug: no
F00f_bug: no
Coma_bug: no
Fpu: yes
Fpu_exception: yes
Cpuid level: 10
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 tm pbe nx lm pni monitor ds_cpl tm2 xtpr
Bogomips: 3981.31

Processor: 3
Vendor_id: GenuineIntel
Cpu family: 6
Model: 15
Model name: Intel (R) Xeon (R) CPU 5130 @ 2.00 GHz
Stepping: 6
Cpu MHz: 1995.006
Cache size: 64 KB
Physical id: 3
Siblings: 2
Fdiv_bug: no
Hlt_bug: no
F00f_bug: no
Coma_bug: no
Fpu: yes
Fpu_exception: yes
Cpuid level: 10
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 tm pbe nx lm pni monitor ds_cpl tm2 xtpr
Bogomips: 3981.31

[Oracle @ svr15 ~] $ Grep MemTotal/proc/meminfo
MemTotal: 4147280 kB

[Oracle @ svr15 ~] $ Free
Total used free shared buffers cached
Mem: 4147280 4138220 9060 0 106124 3865896
-/+ Buffers/cache: 166200 3981080
Swap: 4192924 0 4192924

3. view the number of operating system digits
[Oracle @ svr15 ~] $ Ls/# If there is lib64 or this directory, the operating system is 64-bit
Bin boot dev etc home initrd lib lost + found media misc mnt opt proc root sbin selinux srv sys tmp usr var

[Oracle @ svr15 ~] $ Getconf LONG_BIT
32

[Oracle @ svr15 ~] $ Ldd/sbin/mii-tool
Libc. so.6 =>/lib/i686/libc. so.6 (0x00b2f000)
/Lib/ld-linux.so.2 (0x00a49000)

 

 

 

 

 

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.