Linux system View hardware configuration

Source: Internet
Author: User

Take the CentOS system as an example
First, the CPU
Cat/proc/cpuinfo
Here is my CPU information, with 4 messages stating there are 4 logical CPUs, but each physical ID is the same, stating that there are only 1 physical CPUs.
1. The "Physical ID" and "core ID" of multiple logical CPUs are the same, indicating that hyper-threading is turned on.
2. There is an LM tag in the flags stating that it is a 64-bit CPU
3, my processor has 4 different numbers, and belong to a physical ID, while the CPU cores value is 1, which also shows that my CPU is a single core, and the core has 4 logical processors.
So, my machine CPU is the Intel (r) Xeon (r) CPU e5-2650 v2 @ 2.60GHz model, a 64-bit physical CPU, a single core 4 thread.

Processor:0VENDOR_ID:GENUINEINTELCPU Family:6Model: +Model Name:intel (R) Xeon (r) CPU e5-2650V2 @2.60Ghzstepping:4Microcode:1046CPU MHz:2600.058Cache Size:20480Kbphysical ID: ASiblings:1Core ID:0CPU Cores:1Apicid: AInitial apicid: AFpu:YesFpu_exception:YesCPUID level: -Wp:YesFLAGS:FPU de TSC msr PAE cx8 Sep cmov Pat Clflush MMX FXSR SSE SSE2 SS HT syscall NX LM CONSTANT_TSC Rep_good UNFA Ir_spinlock PNI pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer AES f16c Rdrand hypervisor lahf_lm ida Arat P ln pts DTS Fsgsbase ermsbogomips:5200.11Clflush Size: -Cache_alignment: -Address sizes: $Bits physical, -Bits VirtualpowerManagement:p Rocessor:1VENDOR_ID:GENUINEINTELCPU Family:6Model: +Model Name:intel (R) Xeon (r) CPU e5-2650V2 @2.60Ghzstepping:4Microcode:1046CPU MHz:2600.058Cache Size:20480Kbphysical ID: ASiblings:1Core ID:0CPU Cores:1Apicid: AInitial apicid: AFpu:YesFpu_exception:YesCPUID level: -Wp:YesFLAGS:FPU de TSC msr PAE cx8 Sep cmov Pat Clflush MMX FXSR SSE SSE2 SS HT syscall NX LM CONSTANT_TSC Rep_good UNFA Ir_spinlock PNI pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer AES f16c Rdrand hypervisor lahf_lm ida Arat P ln pts DTS Fsgsbase ermsbogomips:5200.11Clflush Size: -Cache_alignment: -Address sizes: $Bits physical, -Bits VirtualpowerManagement:p Rocessor:2VENDOR_ID:GENUINEINTELCPU Family:6Model: +Model Name:intel (R) Xeon (r) CPU e5-2650V2 @2.60Ghzstepping:4Microcode:1046CPU MHz:2600.058Cache Size:20480Kbphysical ID: ASiblings:1Core ID:0CPU Cores:1Apicid: AInitial apicid: AFpu:YesFpu_exception:YesCPUID level: -Wp:YesFLAGS:FPU de TSC msr PAE cx8 Sep cmov Pat Clflush MMX FXSR SSE SSE2 SS HT syscall NX LM CONSTANT_TSC Rep_good UNFA Ir_spinlock PNI pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer AES f16c Rdrand hypervisor lahf_lm ida Arat P ln pts DTS Fsgsbase ermsbogomips:5200.11Clflush Size: -Cache_alignment: -Address sizes: $Bits physical, -Bits VirtualpowerManagement:p Rocessor:3VENDOR_ID:GENUINEINTELCPU Family:6Model: +Model Name:intel (R) Xeon (r) CPU e5-2650V2 @2.60Ghzstepping:4Microcode:1046CPU MHz:2600.058Cache Size:20480Kbphysical ID: ASiblings:1Core ID:0CPU Cores:1Apicid: AInitial apicid: AFpu:YesFpu_exception:YesCPUID level: -Wp:YesFLAGS:FPU de TSC msr PAE cx8 Sep cmov Pat Clflush MMX FXSR SSE SSE2 SS HT syscall NX LM CONSTANT_TSC Rep_good UNFA Ir_spinlock PNI pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer AES f16c Rdrand hypervisor lahf_lm ida Arat P ln pts DTS Fsgsbase ermsbogomips:5200.11Clflush Size: -Cache_alignment: -Address sizes: $Bits physical, -Bits VirtualpowerManagement:

Second, memory
Cat/proc/meminfo
Below is my memory information, total memory 3.7G, remaining about 380M

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: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

Third, hard disk
1. View hard disks and partitions
Lsblk

NAME MAJ:MINRM SIZE ROTYPEMountpointxvda202:0    0    -G0Disk├─xvda1202:1    0   -M0Part/boot└─xvda2202:2    0 29.5G0Part├─volgroup-lv_root(DM-0)253:0    0 26.5G0Lvm/└─volgroup-lv_swap(DM-1)253:1    0    3G0Lvm[SWAP]

Linux system View hardware configuration

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.