View hardware configurations in Linux

Source: Internet
Author: User

View hardware configurations in Linux

Take CentOS as an Example
I. CPU
Cat/proc/cpuinfo
The following figure shows my CPU information. There are 4 logical CPUs, but each physical id is the same, indicating that there is only one physical CPU.
1. The "physical id" and "core id" of multiple logical CPUs are the same, indicating that hyper-threading is enabled.
2. the flags contain the lm mark, indicating that it is a 64-bit CPU.
3. My processor has four different numbers, which belong to the same physical id and the cpu cores value is 1, which means that my CPU is single-core, in addition, the core has four logic processors.
So, my machine CPU is Intel (R) Xeon (R) CPU E5-2650 v2 @ 2.60GHz model, 1 64-bit physical CPU, Single Core 4 thread.

processor   : 0vendor_id   : GenuineIntelcpu family  : 6model       : 62model name  : Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHzstepping    : 4microcode   : 1046cpu MHz     : 2600.058cache size  : 20480 KBphysical id : 12siblings    : 1core id     : 0cpu cores   : 1apicid      : 12initial apicid  : 12fpu     : yesfpu_exception   : yescpuid level : 13wp      : yesflags       : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm ida arat pln pts dts fsgsbase ermsbogomips    : 5200.11clflush size    : 64cache_alignment : 64address sizes   : 46 bits physical, 48 bits virtualpower management:processor   : 1vendor_id   : GenuineIntelcpu family  : 6model       : 62model name  : Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHzstepping    : 4microcode   : 1046cpu MHz     : 2600.058cache size  : 20480 KBphysical id : 12siblings    : 1core id     : 0cpu cores   : 1apicid      : 12initial apicid  : 12fpu     : yesfpu_exception   : yescpuid level : 13wp      : yesflags       : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm ida arat pln pts dts fsgsbase ermsbogomips    : 5200.11clflush size    : 64cache_alignment : 64address sizes   : 46 bits physical, 48 bits virtualpower management:processor   : 2vendor_id   : GenuineIntelcpu family  : 6model       : 62model name  : Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHzstepping    : 4microcode   : 1046cpu MHz     : 2600.058cache size  : 20480 KBphysical id : 12siblings    : 1core id     : 0cpu cores   : 1apicid      : 12initial apicid  : 12fpu     : yesfpu_exception   : yescpuid level : 13wp      : yesflags       : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm ida arat pln pts dts fsgsbase ermsbogomips    : 5200.11clflush size    : 64cache_alignment : 64address sizes   : 46 bits physical, 48 bits virtualpower management:processor   : 3vendor_id   : GenuineIntelcpu family  : 6model       : 62model name  : Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHzstepping    : 4microcode   : 1046cpu MHz     : 2600.058cache size  : 20480 KBphysical id : 12siblings    : 1core id     : 0cpu cores   : 1apicid      : 12initial apicid  : 12fpu     : yesfpu_exception   : yescpuid level : 13wp      : yesflags       : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm ida arat pln pts dts fsgsbase ermsbogomips    : 5200.11clflush size    : 64cache_alignment : 64address sizes   : 46 bits physical, 48 bits virtualpower management:

Ii. Memory cat/proc/meminfo is my memory information as follows. The total memory is 3.7 GB, and the remaining memory is about 380 MB.

MemTotal:        3974056 kBMemFree:          390724 kBBuffers:           27460 kBCached:            98616 kBSwapCached:        43080 kBActive:          2634864 kBInactive:         692540 kBActive(anon):    2584488 kBInactive(anon):   618872 kBActive(file):      50376 kBInactive(file):    73668 kBUnevictable:           0 kBMlocked:               0 kBSwapTotal:       3145724 kBSwapFree:              0 kBDirty:                32 kBWriteback:             0 kBAnonPages:       3159036 kBMapped:            15320 kBShmem:              2032 kBSlab:              97000 kBSReclaimable:      18188 kBSUnreclaim:        78812 kBKernelStack:        4816 kBPageTables:       101172 kBNFS_Unstable:          0 kBBounce:                0 kBWritebackTmp:          0 kBCommitLimit:     5132752 kBCommitted_AS:    9925672 kBVmallocTotal:   34359738367 kBVmallocUsed:       18008 kBVmallocChunk:   34359719108 kBHardwareCorrupted:     0 kBAnonHugePages:         0 kBHugePages_Total:       0HugePages_Free:        0HugePages_Rsvd:        0HugePages_Surp:        0Hugepagesize:       2048 kBDirectMap4k:     4194304 kBDirectMap2M:           0 kB

3. Hard Disk 1. View hard disk and partition lsblk

NAME                        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTxvda                        202:0    0   30G  0 disk ├─xvda1                     202:1    0  500M  0 part /boot└─xvda2                     202:2    0 29.5G  0 part   ├─VolGroup-lv_root (dm-0) 253:0    0 26.5G  0 lvm  /  └─VolGroup-lv_swap (dm-1) 253:1    0    3G  0 lvm  [SWAP]

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.