Subject: Re: SMP success
To: Jon Buller <jon@bullers.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc
Date: 01/07/2003 00:00:22
On Mon, Jan 06, 2003 at 10:25:09AM -0800, Jon Buller wrote:
> In message <l03102802ba3f7427701a@172.16.7.4>, Hauke Fath writes:
>
> >Since this is a -current kernel running on 1.6 userland - is the kernel all
> >I need for smp, or would I have to update (parts of) the userland, too?
> >top(1), e.g., still reports all processes are running on cpu #0.
>
> My userland is not that old (only a month or so) but I'm having the same
> problem. Thought it might just be me, but maybe not now...
>
> Possibilities:
>
> 1) old userland (rebuilding now)
> 2) missing some config option (options MULTIPROCESSOR is in though)
> 3) not all necessary changes have been commited to the repository yet
> 4) kernel checks processors and is OK with my SM81 for cpu0 but
> doesn't like my SM71 for cpu1. Doesn't use cpu1, but keeps
> quiet about it also. (Solaris didn't mind this situation, and
> used both processors.)
I have it too on my system, and both processors are the same:
cpu0 at mainbus0: mid 8: TMS390Z50 v0 or TMS390Z55 @ 50 MHz, on-chip FPU
cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l): cache enabled
cpu1 at mainbus0: mid 10: TMS390Z50 v0 or TMS390Z55 @ 50 MHz, on-chip FPU
cpu1: physical 20K instruction (64 b/l), 16K data (32 b/l): cache enabled
here is a top snapshot when running 2 cpu-bound processes (while(1) loops
in tcsh):
load averages: 0.94, 0.30, 0.16 23:53:24
32 processes: 2 runnable, 29 sleeping, 1 on processor
CPU states: 20.6% user, 0.0% nice, 28.7% system, 0.5% interrupt, 50.1% idle
Memory: 12M Act, 260K Wired, 1860K Exec, 2808K File, 42M Free
Swap: 195M Total, 195M Free
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
217 bouyer 43 0 720K 1328K RUN/0 0:12 42.56% 33.98% tcsh
224 bouyer 44 0 720K 1328K RUN/0 0:10 40.77% 31.69% tcsh
Note that top says 50% of the CPU is idle, which is consistent with the
fact that both processes are running on CPU 0. I'm running the last
current userland from releng.netbsd.org
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 23 ans d'experience feront toujours la difference
--