Linux view CPU and memory configuration information

Source: Internet
Author: User

CPU Configuration information:
[Email protected]:~/test/python$ cat/proc/Cpuinfo Processor:0#系统中逻辑处理核的编号 Vendor_id:genuineintel #CPU制造商 CPU Family:6#CPU产品系列代号 Model: -#CPU属于其系列中的哪一代的代号 Model Name:intel (R) Xeon (r) CPU E5-2630V4 @2. 20GHz #CPU属于的名字及其编号, nominal frequency stepping:1#CPU属于制作更新版本 microcode:0xb00001fCPU MHz:2199.900#CPU的实际使用主频 Cache Size:25600KB #CPU二级缓存大小 Physical ID:0#单个CPU的标号 Siblings: -#一个物理CPU中的逻辑核数 Core ID:0#当前物理核在其所处CPU中的编号, this number is not necessarily contiguous CPU cores:Ten#一个物理CPU中的物理核数 apicid:0#用来区分不同逻辑核的编号, this number of each logical core in the system must be different, this number is not necessarily continuous initial apicid:0fpu:yes fpu_exception:yes cpuid level: -wp:yes flags:fpu vme de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA Cmov Pat PSE36 Clflush DTS ACPI MMX FXSR SSE SSE2 SS HT TM PBE syscall NX PDPE1GB rdtscp lm constant_tsc Arch_perfmon pebs BTS Rep_good NOPL xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 FMA cx16 XTPR PDC M pcid DCA sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer AES Xsave AVX f16c rdrand lahf_lm ABM 3dnowprefetch Ida AR At EPB xsaveopt PLN pts dtherm Tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms INVP CID RTM rdseed ADX SMAP bogomips:4399.80Clflush Size: -cache_alignment: -Address sizes: $Bits physical, -BitsVirtualPower Management: Number of physical CPUs: Cat/proc/cpuinfo |grep"Physical ID"|sort |UNIQ|WC-L physical cores per CPU: Cat/proc/cpuinfo |grep"CPU Cores"|uniq logical cores per CPU: Cat/proc/cpuinfo |grep"siblings"|uniq Total CPU logical cores: Cat/proc/cpuinfo |grep-c"Processor"My server is a two chipset, each chipset is 10 cores, supports Hyper-threading, so the logical CPU is 40. Hyper-Threading refers to the physical kernel+ Logic Kernel, there is only one physical kernel on the chip, but this physical kernel can simulate a logical kernel, so the system information shows two cores, one true one.
1. Look at the number of memory slots, which slots are plugged in memory, what is the size [email protected]:~/test$ sudo dmidecode|grep-p-a5"Memory Device"|grep size Size: +GB size:no Module installed size:no module installed Size:no module installed Size:no        Module installed SIZE:NO module installed Size:no module installed Size:no module installed Size:no module installed size:no module installed Size:no module installed Size:no module Insta lled Size: +GB size:no Module installed size:no module installed Size:no module installed Size:no        Module installed SIZE:NO module installed Size:no module installed Size:no module installed Size:no module installed size:no module installed Size:no module installed Size:no module Insta lled2. View maximum supported memory [email protected]:~/test$ sudo dmidecode-t memory |grep"Maximum Capacity"Maximum Capacity:3TB3. viewing memory rate [email protected]:~/test$ sudo dmidecode|grep-a16"Memory Device"|grep' Speed'Speed :2400MHz speed:unknown speed:unknown speed:unknown speed:unknown Speed:unknown Speed:unknown speed:unknown speed:unknown speed:unknown speed:unknown speed:u Nknown Speed:2400MHz speed:unknown speed:unknown speed:unknown speed:unknown Speed:unknown Speed:unknown speed:unknown speed:unknown speed:unknown speed:unknown speed:u Nknown
1#!/bin/SH2 3 Echo ">>>need Root permission<<<\n"4 5 Echo "1. Equipment Brand: ' Dmidecode-s system-product-name '"6 7 Echo "2. OS info: ' lsb_release-d | grep"Description"|awk-f: ' {print $} '"8 9 Echo "3. Kernel info: ' uname-s-m-r '"Ten  One Echo "4. Hardware platform: ' Uname-i '" A  - Echo "5. CPU Info:" - Echo "\tbrand and Freq: ' Cat/proc/cpuinfo |grep"Model name"|uniq |awk-f: ' {print $} '" the Echo "\tphysical CPUs: ' Cat/proc/cpuinfo |grep"PhysicalID"|sort |uniq|wc-l '" - Echo "\tphysical cores per CPU: ' Cat/proc/cpuinfo |grep"CPU Cores"|uniq|awk-f: ' {print $} '" - Echo "\tlogical cores per CPU: ' Cat/proc/cpuinfo |grep"Siblings"|uniq|awk-f: ' {print $} '" - Echo "\ttotal logic cores: ' Cat/proc/cpuinfo |grep-c"Processor"`" +  - Echo "6. Memory slots and size: \ n ' dmidecode|grep-p-a5"Memory Device"|grep Size '" +  A Echo "7. Maximum capacity of memory: ' Dmidecode-t memory |grep"Maximum capacity"| awk-f: ' {print $} '" at Echo "8. Memory speed: \ n ' dmidecode|grep-a16"Memory Device"|grep ' speed '"

Linux view CPU and memory configuration information

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.