Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2002 07:08:39 -0800
From:      Nathan Kinkade <nkinkade@dsl-only.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: SMP problems
Message-ID:  <20021027150839.GJ7928@sub21-156.member.dsl-only.net>
In-Reply-To: <3DBBC53B.2090500@imc.nl>
References:  <20021028070514.31394.qmail@fuzuli.enderunix.org> <3DBBB9EA.4080505@imc.nl> <3DBBBA85.80406@imc.nl> <20021027100855.GD2439@irrelevant.org> <3DBBC53B.2090500@imc.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 27, 2002 at 11:51:39AM +0100, Roelf Schreurs wrote:
> Simon Dick wrote:
> >On Sun, Oct 27, 2002 at 11:05:57AM +0100, Roelf Schreurs wrote:
> >
> >>Hi
> >>
> >>I just added an extra CPU to my Dell server.
> >>I made a new kernel, the server recognizes the CPU' but FreeBSD does not.
> >>
> >>Steps I took:
> >>Copy GENERIC to GENERIC-SMP
> >>I added the 2 lines to the GENERIC-SMP file:
> >>options SMP
> >>options APIC_IO
> >>Then I did:
> >>make buildkernel KERNCONF=GENERIC-SMP
> >>make installkernel KERNCONF=GENERIC-SMP
> >>And rebooted.
> >>
> >>In dmesg I see:
> >>FreeBSD/SMP: Multiprocessor motherboard
> >>cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
> >>cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
> >>io0 (APIC): apic id:  2, version: 0x000f0011, at 0xfec00000
> >>io1 (APIC): apic id:  3, version: 0x000f0011, at 0xfec01000
> >>
> >>mptable:
> >>MP Config Base Table Entries:
> >>-- 
> >>Processors:     APIC ID Version State           Family  Model   Step Flags
> >>                1       0x11    BSP, usable     6       11      1 
> >>0x383fbff
> >>                0       0x11    AP, usable      6       11      1 
> >>0x383fbff
> >>
> >>uname -a:
> >>FreeBSD xxx 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Sat Oct 26 12:04:37 CEST 
> >>2002     :/usr/obj/usr/src/sys/GENERIC-SMP  i386
> >>
> >>
> >>But when I do a top, I only see one CPU.
> >>last pid:   725;  load averages:  0.09,  0.04,  0.01 
> >>up 0+00:15:39  12:40:41
> >>59 processes:  1 running, 58 sleeping
> >>CPU states: 21.4% user,  0.0% nice,  9.8% system,  0.5% interrupt, 68.3% 
> >>idle
> >
> >
> >Looks as though it's working fine to me
> >
> 
> 
> Top only shows 1 CPU and not 2.


Also look for the line in dmesg which states:
"SMP: AP CPU #1 Launched!"
which is another good indication that smp is working.
Also, in `top', sometimes under the "STATE" column it will display
'CPU0" or "CPU1".  Although, I'm not exactly sure what this means in the
"STATE" context, but it is another indication that the system is aware
of two processors.

Nathan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021027150839.GJ7928>