Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SMP on Ultra 60
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
endemic
n00b
n00b


Joined: 06 Oct 2003
Posts: 23
Location: Dayton, OH

PostPosted: Wed Dec 10, 2003 7:16 pm    Post subject: SMP on Ultra 60 Reply with quote

I have two processors (UltraSPARC-IIi 450MHz) on an Ultra 60. I recently compiled/installed the kernel on a fresh gentoo install with SMP support. My problem is, I am unsure if this is actually operating or not. When I run GKrellM it shows only one processor. Also, when I run 'top' I get this error message:

Code:
# top
           top: failed /proc/stat read


When running 'dmesg' it appears the kernel notices both processors on boot:

Code:

Found CPU 0 (node=f006d394,mid=0)
Found CPU 1 (node=f006d700,mid=2)
Found 2 CPU prom device tree node(s).


Actually, upon further investigation it is not recognizing both processors. Can anyone help me remedy this?

Code:

Entering UltraSMPenguin Mode...
Error: only one processor found.
Back to top
View user's profile Send private message
endemic
n00b
n00b


Joined: 06 Oct 2003
Posts: 23
Location: Dayton, OH

PostPosted: Wed Dec 10, 2003 8:01 pm    Post subject: Reply with quote

I have also noticed that you need to enable "Enhanced Real Time Clock Support" or somthing like that. However, in my 2.4.23-sparc-r1 menuconfig I cannot find such an option. It is supposedly under "console drivers" but mine only displays Frame Buffer Support and the PROM option. I guess I am unsure of how to get this going due to the lack of SMP documentation for the SPARC platform.
Back to top
View user's profile Send private message
suid77
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2003
Posts: 81
Location: Seattle

PostPosted: Wed Dec 10, 2003 11:36 pm    Post subject: Reply with quote

glad to see I'm not the only one!

as far as the "enhanced real time clock" requirement goes, its seems to always be on, even though the option never appears in 'make menuconfig' You can check your config file for "CONFIG_RTC=y" to confirm this.

that being said, the top command works for me, but only displays 1 cpu. (when booting gentoo-smp from the livecd, top shows both cpus, hrm)

cat /proc/cpuinfo displays:
Code:
...
CPU0:               online
CPU2:               online

which seems odd, I would have expected CPU0 and CPU1, but maybe thats nothing.

dmesg shows about what I would expect:
Code:
Found CPU 0 (node=f006d3a4,mid=0)
Found CPU 1 (node=f006d710,mid=2)
Found 2 CPU prom device tree node(s).


I'll post an more info I come across.
Code:
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Thu Dec 11, 2003 12:50 am    Post subject: Reply with quote

This one's easy :) CONFIG_NR_CPUS needs to be 4 or higher for most 2 CPU boxes. Sun don't always use linear CPU numbers...
Back to top
View user's profile Send private message
suid77
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2003
Posts: 81
Location: Seattle

PostPosted: Thu Dec 11, 2003 2:37 am    Post subject: Reply with quote

Hrm. Well, yes and no. CONFIG_MR_CPUS is already 32 here.

But as it turns out it was working all along. The live cd was setup with a .toprc set to expand the list of CPUs, and after the install was complete, it went back to the default colapsed view ( Cpu(s) instead of Cpu0, Cpu1, etc )

/me hides in embarrasment

for what its worth, the config file at http://dev.gentoo.org/~ciaranm/configs/kernel/ is almost identical to the one I finally got working, and it definately has smp configured correctly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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