View previous topic :: View next topic |
Author |
Message |
mgnut57 Guru
Joined: 12 Jan 2008 Posts: 309
|
Posted: Sun May 15, 2011 12:28 am Post subject: Where did my cores go? |
|
|
I have an atom-330 based system. This has 2 physical cores and with HT, it should show 4 logical cores.
I booted it with an Ubuntu live CD and see 4 cores, yes in my Gentoo system, it only shows 1 core.
Contents of /proc/config.gz are here: http://pastebin.com/DXtX0pYZ
As you can see, the SMP options are selected. This system used to show 4 cores under Gentoo, but an update (I don't know which), seems to have caused it to only see 1 core. |
|
Back to top |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Sun May 15, 2011 9:22 am Post subject: |
|
|
post dmesg output please (if possible include the working ubuntu one too) |
|
Back to top |
|
|
mgnut57 Guru
Joined: 12 Jan 2008 Posts: 309
|
Posted: Sun May 15, 2011 4:22 pm Post subject: |
|
|
roarinelk wrote: | post dmesg output please (if possible include the working ubuntu one too) |
http://pastebin.com/87U7FFnr
Sorry, I can't easily get the Ubuntu dmesg output. |
|
Back to top |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Sun May 15, 2011 5:46 pm Post subject: |
|
|
unfortunately the interesting parts when the kernel starts are missing,
but apparently it only sees one core which it dutifully reports as up
(i.e. first line says "SMP alternatives: switching to UP code" meaning
it either only detected one core or something else is preventing it
from using SMP).
I also think you should enable these 2 .config options:
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not set
and set CONFIG_LOG_BUF_SHIFT to 17 (currently 15), which
will let you get to the full dmesg.
Also, try 2.6.38.6 or better yet, latest -git sources. |
|
Back to top |
|
|
mgnut57 Guru
Joined: 12 Jan 2008 Posts: 309
|
Posted: Sun May 15, 2011 11:40 pm Post subject: |
|
|
roarinelk wrote: | unfortunately the interesting parts when the kernel starts are missing,
but apparently it only sees one core which it dutifully reports as up
(i.e. first line says "SMP alternatives: switching to UP code" meaning
it either only detected one core or something else is preventing it
from using SMP).
I also think you should enable these 2 .config options:
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not set
and set CONFIG_LOG_BUF_SHIFT to 17 (currently 15), which
will let you get to the full dmesg.
Also, try 2.6.38.6 or better yet, latest -git sources. |
New config: http://pastebin.com/gYvpkwJv
new dmesg after boot: http://pastebin.com/068gjeAK |
|
Back to top |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Mon May 16, 2011 6:58 am Post subject: |
|
|
the interesting parts of dmesg are still missing.
add "init=/bin/bash" to the kernel cmdline, save the dmesg to a file
(do a "mount -o rw,remount /" first), then boot the kernel normally again. |
|
Back to top |
|
|
mgnut57 Guru
Joined: 12 Jan 2008 Posts: 309
|
Posted: Mon May 16, 2011 2:25 pm Post subject: |
|
|
roarinelk wrote: | the interesting parts of dmesg are still missing.
add "init=/bin/bash" to the kernel cmdline, save the dmesg to a file
(do a "mount -o rw,remount /" first), then boot the kernel normally again. |
Thanks. I'll try this. It may take a few days because this is my main home firewall/server. My home directory is mounted from this machine. I'm also working on trying the 2.6.38.6 kernel. |
|
Back to top |
|
|
doctork Guru
Joined: 25 Apr 2004 Posts: 370 Location: Cleveland, OH
|
Posted: Mon May 16, 2011 3:48 pm Post subject: |
|
|
I notice you have ACPI disabled in your kernel command line. I'm betting that Ubuntu does not. Perhaps that's your problem. On my Atom D510, also dual core with HT, dmesg tells me Code: | Using ACPI (MADT) for SMP configuration information
| I'm currently running 2.6.38-gentoo-r3.
--
doc |
|
Back to top |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Mon May 16, 2011 4:27 pm Post subject: |
|
|
What doctork said.
Command line: root=/dev/sda2 pci=routeirq noapic irqpoll acpi=off
basically you should remove all but the "root" line. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon May 16, 2011 7:35 pm Post subject: |
|
|
smp cannot work without apic |
|
Back to top |
|
|
mgnut57 Guru
Joined: 12 Jan 2008 Posts: 309
|
Posted: Tue May 17, 2011 2:54 am Post subject: |
|
|
roarinelk wrote: | What doctork said.
Command line: root=/dev/sda2 pci=routeirq noapic irqpoll acpi=off
basically you should remove all but the "root" line. |
That fixed it. Thanks. |
|
Back to top |
|
|
|