无法使用所有核心或线程

无法使用所有核心或线程

关于这个问题有好几个帖子,但似乎都没有帮助我解决具体问题。正如标题所示,我无法充分利用我的四核和四线程英特尔 i5-7600T CPU. 它插入MSI B150M ECO 主板

请查看下面的其他输出信息,如果我遗漏了任何内容,请告诉我。感谢您的时间和建议。

实验室发布-a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:    16.04
Codename:   xenial

sudo lshw-cpu 类

  *-cpu                   
       description: CPU
       product: Intel(R) Core(TM) i5-7600T CPU @ 2.80GHz
       vendor: Intel Corp.
       physical id: 45
       bus info: cpu@0
       version: Intel(R) Core(TM) i5-7600T CPU @ 2.80GHz
       serial: To Be Filled By O.E.M.
       slot: U3E1
       size: 3599MHz
       capacity: 4005MHz
       width: 64 bits
       clock: 100MHz
       capabilities: x86-64 fpu fpu_exception wp 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 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx 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 epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp cpufreq
       configuration: cores=4 enabledcores=2 threads=2

/etc/默认/grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

/proc/cpu信息

processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 158
model name  : Intel(R) Core(TM) i5-7600T CPU @ 2.80GHz
stepping    : 9
microcode   : 0x5e
cpu MHz     : 799.975
cache size  : 6144 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 2
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 22
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 art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx 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 epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs        :
bogomips    : 5616.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model       : 158
model name  : Intel(R) Core(TM) i5-7600T CPU @ 2.80GHz
stepping    : 9
microcode   : 0x5e
cpu MHz     : 799.975
cache size  : 6144 KB
physical id : 0
siblings    : 2
core id     : 1
cpu cores   : 2
apicid      : 2
initial apicid  : 2
fpu     : yes
fpu_exception   : yes
cpuid level : 22
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 art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx 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 epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs        :
bogomips    : 5616.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

cat /sys/devices/system/cpu/online ; ls -ld /sys/devices/system/cpu/c*

0-1
drwxr-xr-x 10 root root 0 Aug 23 22:54 /sys/devices/system/cpu/cpu0
drwxr-xr-x 10 root root 0 Aug 23 22:54 /sys/devices/system/cpu/cpu1
drwxr-xr-x  4 root root 0 Aug 23 22:54 /sys/devices/system/cpu/cpufreq
drwxr-xr-x  2 root root 0 Aug 23 22:54 /sys/devices/system/cpu/cpuidle

sudo grep -i smp /var/log/syslog

Aug 23 22:37:10 Plexerver systemd[1]: Started LSB: daemon to balance interrupts for SMP systems.
Aug 23 22:54:30 Plexerver systemd[1]: Starting LSB: daemon to balance interrupts for SMP systems...
Aug 23 22:54:30 Plexerver kernel: [    0.000000] Linux version 4.10.0-32-generic (buildd@lcy01-01) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 (Ubuntu 4.10.0-32.36~16.04.1-generic 4.10.17)
Aug 23 22:54:30 Plexerver kernel: [    0.000000] found SMP MP-table at [mem 0x000fcb50-0x000fcb5f] mapped at [ffff9863400fcb50]
Aug 23 22:54:30 Plexerver kernel: [    0.000000] Using ACPI (MADT) for SMP configuration information
Aug 23 22:54:30 Plexerver kernel: [    0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs
Aug 23 22:54:30 Plexerver kernel: [    0.034288] Freeing SMP alternatives memory: 32K
Aug 23 22:54:30 Plexerver kernel: [    0.053161] smpboot: Max logical packages: 1
Aug 23 22:54:30 Plexerver kernel: [    0.098459] smpboot: CPU0: Intel(R) Core(TM) i5-7600T CPU @ 2.80GHz (family: 0x6, model: 0x9e, stepping: 0x9)
Aug 23 22:54:30 Plexerver kernel: [    0.099158] smp: Bringing up secondary CPUs ...
Aug 23 22:54:30 Plexerver kernel: [    0.099206] x86: Booting SMP configuration:
Aug 23 22:54:30 Plexerver kernel: [    0.100679] smp: Brought up 1 node, 2 CPUs
Aug 23 22:54:30 Plexerver kernel: [    0.100680] smpboot: Total of 2 processors activated (11232.00 BogoMIPS)
Aug 23 22:54:30 Plexerver irqbalance[1973]:  * Starting SMP IRQ Balancer: irqbalance
Aug 23 22:54:30 Plexerver systemd[1]: Started LSB: daemon to balance interrupts for SMP systems.

/etc/默认/grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

答案1

将 BIOS 设置重置为默认设置解决了问题,显然我定义的某些设置导致主板和 Linux 之间出现通信错误。

答案2

我认为此错误是由于您的 bios 将错误信息传递给 lshw 造成的。如果是这样,您无需担心,所有 4 个核心都应该在运行。请注意我链接的此主题中的最后一篇文章;https://ubuntuforums.org/showthread.php?t=2187699&page=2

如果是这种情况,使用“top”应该显示所有 4 个核心。

相关内容