Ubuntu 19.04 仅使用一个 CPU 核心

Ubuntu 19.04 仅使用一个 CPU 核心

我刚买了一台新笔记本电脑,安装了 Ubuntu 19.04 和 Windows。但它似乎只使用了我的一个 CPU 核心,而其他核心什么也没做。

htop 核心使用情况

即使重新启动后,它仍会继续使用核心 5。

一些调试信息:
设备型号:HP Pavilion 15-cs2975nd
输出来自lscpu

Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
Address sizes:       39 bits physical, 48 bits virtual
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  2
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               142
Model name:          Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Stepping:            11
CPU MHz:             3798.265
CPU max MHz:         4600,0000
CPU min MHz:         400,0000
BogoMIPS:            3984.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            8192K
NUMA node0 CPU(s):   0-7
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 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 ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities

编辑:在以下帮助下韓國我们发现其他核心在运行时确实能达到 100%,stress但似乎仍然偏向一个核心,从而导致 UI 卡顿且运行缓慢。

答案1

答案实际上取决于您在看到此 CPU 使用率时正在做什么。如果您top在看到屏幕截图中的 CPU 使用率时运行该命令,您应该会在列表中首先看到“有问题的”进程。最有可能的是,它只能在单个线程中运行,因此它只使用一个核心。

相关内容