如何在我的东芝 P70-A 笔记本电脑上启用所有四个内核?(现在只启用了一个)

use*_*176 6 hardware intel multi-core toshiba-satellite

我最近注意到我的计算机非常缓慢(顺便说一下最近安装的 Kubuntu 13.04)。我有一台带有 Intel i7 四核 16 GB 内存的 Toshiba Satellite P70-A PSPLPC-01Y007 笔记本电脑。它在 kinfo 中看起来是正确的。所以我跑了mpstat -P ALL

Linux 3.8.0-30-generic (Isogen)         13-09-02        _x86_64_        (1 CPU)

10:07:13 AM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest   %idle
10:07:13 AM  all   11.07    3.02    2.90   36.25    0.00    0.12    0.00    0.00   46.64
10:07:13 AM    0   11.07    3.02    2.90   36.25    0.00    0.12    0.00    0.00   46.64
Run Code Online (Sandbox Code Playgroud)

我注意到当我打开带有 10 个标签的 chrome 时,这是一个典型的工程师,但它一直冻结得可怕。运行后top,我发现 CPU 一直在 100%运行,并且只列出了一个 CPU/核心。至今找不到解决办法。我怎样才能让它注册所有4个内核?

cat /proc/cpuinfo | grep -E "(core|model\ name)"
model name      : Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
core id         : 0
cpu cores       : 1
Run Code Online (Sandbox Code Playgroud)

sudo grep -i smp /var/log/syslog
Sep  2 10:02:41 Isogen kernel: [    0.000000] Linux version 3.8.0-30-generic (buildd@roseapple) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 (Ubuntu 3.8.0-30.44-generic 3.8.13.6)
Sep  2 10:02:41 Isogen kernel: [    0.000000] found SMP MP-table at [mem 0x000fe1b0-0x000fe1bf] mapped at [ffff8800000fe1b0]
Sep  2 10:02:41 Isogen kernel: [    0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
Sep  2 10:02:41 Isogen kernel: [    0.010390] Freeing SMP alternatives: 24k freed
Sep  2 10:02:41 Isogen kernel: [    0.062244] smpboot: CPU0: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz (fam: 06, model: 3c, stepping: 03)
Sep  2 10:02:41 Isogen kernel: [    0.063005] smpboot: Total of 1 processors activated (4788.97 BogoMIPS)
Sep  2 11:18:52 Isogen kernel: [    0.000000] Linux version 3.8.0-30-generic (buildd@roseapple) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 (Ubuntu 3.8.0-30.44-generic 3.8.13.6)
Sep  2 11:18:52 Isogen kernel: [    0.000000] found SMP MP-table at [mem 0x000fe1b0-0x000fe1bf] mapped at [ffff8800000fe1b0]
Sep  2 11:18:52 Isogen kernel: [    0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
Sep  2 11:18:52 Isogen kernel: [    0.010393] Freeing SMP alternatives: 24k freed
Sep  2 11:18:52 Isogen kernel: [    0.062271] smpboot: CPU0: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz (fam: 06, model: 3c, stepping: 03)
Sep  2 11:18:52 Isogen kernel: [    0.063032] smpboot: Total of 1 processors activated (4788.73 BogoMIPS)
Run Code Online (Sandbox Code Playgroud)

编辑: 但是当我运行 sudo lshw -class cpu 时,我得到了这个:

*-cpu                   
       description: CPU
       product: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
       vendor: Intel Corp.
       physical id: 4
       bus info: cpu@0
       version: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
       serial: To Be Filled By O.E.M.
       slot: U3E1
       size: 2400MHz
       capacity: 2400MHz
       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 arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
       configuration: cores=4 enabledcores=4 threads=8
Run Code Online (Sandbox Code Playgroud)

所以它识别出它有 4 个内核和 8 个线程,并表示所有 4 个内核都已启用。它也是超线程的,所以即使只在一个内核上运行,它也应该看到两个。

use*_*176 6

答案很奇怪,而且相当简单,但要花一天多的时间来确定这个问题背后的根源。这台机器上几乎所有的 linux 发行版都有很多问题,从没有无线,图形问题等等。我意识到我不可能是唯一一个使用该处理器运行 linux 的人,所以我设法找到了一些论坛,讨论了这个仅运行一个内核的特定芯片组的相同问题。

事实证明,如果您在 中运行acpi=off,那么内核将仅使用一个内核和一个线程。该解决方案适用于该特定个人,但是acpi=off是实际安装 linux 的唯一方法。nomodeset会让你进入安装屏幕,但试用 ubuntu/kubuntu 屏幕......只是不在那里,而不是渲染。由于这被列为摆脱黑屏问题的可行选项,我就是这样做的,没有提到这会禁用核心、无线网络、风扇等。

在对不同解决方案进行了多次尝试之后nomodeset,尽管无法渲染桌面,但我还是决定进行全新安装。安装后重新启动后,一切正常。我遇到的每个问题似乎都已解决,如果统一性仍然中断,则减去测试。