Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where did my cores go?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mgnut57
Guru
Guru


Joined: 12 Jan 2008
Posts: 309

PostPosted: Sun May 15, 2011 12:28 am    Post subject: Where did my cores go? Reply with quote

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
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Sun May 15, 2011 9:22 am    Post subject: Reply with quote

post dmesg output please (if possible include the working ubuntu one too)
Back to top
View user's profile Send private message
mgnut57
Guru
Guru


Joined: 12 Jan 2008
Posts: 309

PostPosted: Sun May 15, 2011 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Sun May 15, 2011 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
mgnut57
Guru
Guru


Joined: 12 Jan 2008
Posts: 309

PostPosted: Sun May 15, 2011 11:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Mon May 16, 2011 6:58 am    Post subject: Reply with quote

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
View user's profile Send private message
mgnut57
Guru
Guru


Joined: 12 Jan 2008
Posts: 309

PostPosted: Mon May 16, 2011 2:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
doctork
Guru
Guru


Joined: 25 Apr 2004
Posts: 370
Location: Cleveland, OH

PostPosted: Mon May 16, 2011 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Mon May 16, 2011 4:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon May 16, 2011 7:35 pm    Post subject: Reply with quote

smp cannot work without apic
Back to top
View user's profile Send private message
mgnut57
Guru
Guru


Joined: 12 Jan 2008
Posts: 309

PostPosted: Tue May 17, 2011 2:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum