web-dev-qa-db-ja.com

すべてのコアまたはスレッドを使用できません

このテーマにはいくつかのスレッドがありますが、私の特定の苦境に役立つものはありません。タイトルが示すように、私は Intel i5-7600T CP で4つのコアとスレッドすべてを利用することはできません。 MSI B150M ECOマザーボード に接続されています。

以下の追加の出力情報を見つけて、私が何かを除外したかどうかを教えてください。お時間とご提案ありがとうございます。

lab_release -a

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

Sudo lshw -class 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/default/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/cpuinfo

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/default/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"
3
Diffused

BIOS設定をデフォルトにリセットすることで問題は解決しました。明らかに、私が定義した設定のいくつかはマザーボードとLinux間の通信不良を引き起こしました。

2
Diffused

このエラーは、不適切な情報をlshwに渡すことによって発生したと考えられます。その場合、心配する必要はなく、4つのコアすべてを実行する必要があります。リンクしているこのスレッドの最後の投稿に注意してください。 https://ubuntuforums.org/showthread.php?t=2187699&page=2

この場合、「トップ」を使用すると、4つのコアすべてが表示されます。