--- 更新 2 --- 从未解决 Xcp-Ng 7.6。xcp-ng 8.0 不存在问题。
我有一个 Intel Xeon X5650 处理器(来自 eBay),但 linux(Xcp-ng 7.6)只列出了 8 个使用lscpu
. 但是dmidecode -t processor
正确地说明了 6 个内核和 12 个线程。
我尝试更新 BIOS 和 Xcp-Ng 并添加maxcpus=12 nr_cpus=12
到内核行。不幸的是,我不知道是什么原因造成的,也不知道如何继续寻找解决方案。
--- 更新 ---- 禁用超线程给了我 6 个核心,但每个核心只有 1 个线程 -- /UPDATE ---
机器 ( HP ProLiant DL320 G6
) 信息(BIOS 引导消息):
32 GB 安装
的 ProLiant 系统 BIOS - W07 (05/21/2018)检测到 1 个处理器,共启用 6 个内核,启用超线程处理 1:Intel(R) Xeon(R) CPU X5650 @ 2.67GHz QPI 速度:6.4 GT/s
来自 lscpu、dmesg、/proc/cpuinfo、uname、dmidecode 的输出(部分)
[root@xcp-ng ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 44
Model name: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
Stepping: 2
CPU MHz: 2666.766
BogoMIPS: 5333.53
Hypervisor vendor: Xen
Virtualization type: none
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 12288K
[root@xcp-ng ~]# uname -a
Linux xcp-ng 4.4.0+10 #1 SMP Thu Sep 13 08:55:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@xcp-ng ~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
stepping : 2
microcode : 0x1f
cpu MHz : 2666.766
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 0
cpu cores : 4
apicid : 32
initial apicid : 32
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ht syscall nx lm constant_tsc arch_perfmon rep_good nopl nonstop_tsc pni pclmulqdq monitor est ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm ida arat epb dtherm
bugs : l1tf
bogomips : 5333.53
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
...
[root@xcp-ng ~]# dmesg | grep -i cpu
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Command line: root=LABEL=root-aflmjv ro nolvm hpet=disable xencons=hvc console=hvc0 console=tty0 quiet vga=785 splash pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier noibrs noibpb nospectre_v1 nospectre_v2 mds=off slub_debug maxcpus=12 nr_cpus=12
[ 0.000000] KERNEL supported cpus:
[ 0.000000] smpboot: Allowing 12 CPUs, 0 hotplug CPUs
[ 0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:12 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 32 pages/cpu @ffff88007ce00000 s92120 r8192 d30760 u131072
[ 0.000000] pcpu-alloc: s92120 r8192 d30760 u131072 alloc=1*2097152
[ 0.000000] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 08 09 10 11 -- -- -- --
[ 0.000000] Kernel command line: root=LABEL=root-aflmjv ro nolvm hpet=disable xencons=hvc console=hvc0 console=tty0 quiet vga=785 splash pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier noibrs noibpb nospectre_v1 nospectre_v2 mds=off slub_debug maxcpus=12 nr_cpus=12
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=8
[ 0.000000] Xen: using vcpuop timer interface
[ 0.000000] installing Xen timer for CPU 0
[ 27.992808] CPU: Physical Processor ID: 1
[ 27.992809] CPU: Processor Core ID: 0
[ 27.992812] mce: CPU supports 2 MCE banks
[ 28.003577] cpu 0 spinlock event irq 49
[ 28.003582] Could not initialize VPMU for cpu 0, error -95
[ 28.005495] NMI watchdog: disabled (cpu0): hardware events not enabled
[ 28.005496] NMI watchdog: Shutting down hard lockup detector on all cpus
[ 28.005838] installing Xen timer for CPU 1
[ 28.005877] cpu 1 spinlock event irq 56
[ 28.006600] installing Xen timer for CPU 2
[ 28.006641] cpu 2 spinlock event irq 63
[ 28.007293] installing Xen timer for CPU 3
[ 28.007329] cpu 3 spinlock event irq 70
[ 28.007994] installing Xen timer for CPU 4
[ 28.008032] cpu 4 spinlock event irq 77
[ 28.008682] installing Xen timer for CPU 5
[ 28.008721] cpu 5 spinlock event irq 84
[ 28.009375] installing Xen timer for CPU 6
[ 28.009412] cpu 6 spinlock event irq 91
[ 28.010057] installing Xen timer for CPU 7
[ 28.010096] cpu 7 spinlock event irq 98
[ 28.010368] x86: Booted up 1 node, 8 CPUs
[ 40.874621] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 40.924382] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 40.955884] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 40.988112] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 41.029176] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 41.069384] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 41.118143] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 50.796328] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 50.886595] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 50.971893] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[ 51.036407] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1600 MHz, 2666 MHz
[root@xcp-ng ~]# dmidecode -t processor
# dmidecode 2.12-dmifs
SMBIOS 2.7 present.
Handle 0x0400, DMI type 4, 42 bytes
Processor Information
Socket Designation: Proc 1
Type: Central Processor
Family: Xeon
Manufacturer: Intel
ID: C2 06 02 00 FF FB EB BF
Signature: Type 0, Family 6, Model 44, Stepping 2
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Multi-threading)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
Voltage: 1.4 V
External Clock: 133 MHz
Max Speed: 4800 MHz
Current Speed: 2667 MHz
Status: Populated, Enabled
Upgrade: Socket LGA1366
L1 Cache Handle: 0x0710
L2 Cache Handle: 0x0720
L3 Cache Handle: 0x0730
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Core Count: 6
Core Enabled: 6
Thread Count: 12
Characteristics:
64-bit capable
有没有
yum update
修复什么?全新安装 xcp-ng 还是使用旧 CPU 然后用新 CPU 升级?