Ubuntu 18.04 仅使用一个处理器核心,但可以识别所有 4 个

Ubuntu 18.04 仅使用一个处理器核心,但可以识别所有 4 个

我注意到双启动 Ubuntu 后,与 Windows 相比,性能大幅下降,而且事实证明它只使用了我的一个 CPU 核心:这是系统监视图

运行lscpu显示所有 2 个核心和 2 个线程均已被识别:

Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  2
Core(s) per socket:  2
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
Stepping:            3
CPU MHz:             3700.002
CPU max MHz:         3700.0000
CPU min MHz:         800.0000
BogoMIPS:            7392.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            3072K
NUMA node0 CPU(s):   0-3
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 art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

其他核心仍在使用,但为什么只有其中一个核心完成大部分工作?如果您需要列出更多信息,请询问。

编辑:我进行了压力测试,它设法让其他核心达到 100%,所以我猜这是 Ubuntu 将所有小任务都放在一个核心上的问题,却没有意识到这会使其负担过重。这导致 UI 非常卡顿且无法使用。

相关内容