以CentOS系統為例
一、CPU
cat /proc/cpuinfo
如下是我的CPU信息,有4個信息,說明有4個邏輯CPU,但是每個physical id相同,說明只有1個物理CPU。
1、多個邏輯CPU的”physical id”和”core id”均相同,說明開啟了超線程。
2、flags中有lm標記,說明是64位的CPU
3、我的processor有4個不同的編號,並且同屬於一個physical id,同時cpu cores 的值為1,這也就說明了我的CPU是單核心的,並且核心上有4個邏輯處理器。
所以,我的機器CPU是Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz型號,1個64位物理CPU,單核4線程。
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:
二、內存 cat /proc/meminfo 如下是我的內存信息,總內存3.7G,剩余約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: 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
三、硬盤 1、查看硬盤和分區 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]
http://xxxxxx/Linuxjc/1134129.html TechArticle