Subject: SMP success
To: None <port-sparc@netbsd.org>
From: matthew green <mrg@eterna.com.au>
List: port-sparc
Date: 01/05/2003 22:51:12
hi folks.


due largely to the efforts of paul kranenburg, SMP support on sparc has
finally arrived.  this has only been tested successfully so far on an
ss20/712, an sun4/690 and an ss10/712 (i think), with a failure on a
4/670.  hypersparc support is almost certainly busted...

there are still some bugs and there are lots of implementation details
that could be reworked, but it seems pretty stable and performant so far.


see my boot log below.


.mrg.



<#0> ok boot netbsd.mp.234
Resetting ...
screen not found.
Can't open input device.
Keyboard not present.  Using tty for input and output.

SPARCstation 20 MP (2 X SuperSPARC-II), No Keyboard
ROM Rev. 2.25, 160 MB memory installed, Serial #3445063.
Ethernet address 8:0:20:20:23:48, Host ID: 72349147.



Rebooting with command: netbsd.mp.234
Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0  File and args: netbsd.mp.234
>> NetBSD/sparc Secondary Boot, Revision 1.9
>> (mrg@russian-intervention.eterna.com.au, Mon Aug  6 01:11:16 EST 2001)
Booting netbsd.mp.234
2564788+89816+218776 [84+151712+119243]=0x30fcd4
OBP version 3, revision 2.25 (plugin rev 2)
pmap_bootstrap: installing kernel page tables...done.
[ using 271532 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6K (_russian_) #234: Sun Jan  5 04:46:55 EST 2003
    mrg@what-time-is-love.eterna.com.au:/var/_russian_
total memory = 159 MB
avail memory = 143 MB
using 896 buffers containing 8252 KB of memory
bootpath: /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0
mainbus0 (root): SUNW,SPARCstation-20
cpu0 at mainbus0: mid 8: TMS390Z50 v0 or TMS390Z55 @ 75 MHz, on-chip FPU
cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l), 1024K external (32 b/l): cache enabled
cpu1 at mainbus0: mid 10: TMS390Z50 v0 or TMS390Z55 @ 75 MHz, on-chip FPU
cpu1: physical 20K instruction (64 b/l), 16K data (32 b/l), 1024K external (32 b/l): cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08: hostid 72349147
timer0 at obio0 slot 0 offset 0x300000: delay constant 35
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200
ms0 at zs1 channel 1: baud rate 1200
fdc0 at obio0 slot 0 offset 0x700000 level 11: no drives attached
auxreg0 at obio0 slot 0 offset 0x800000
power0 at obio0 slot 0 offset 0xa01000 level 2
iommu0 at mainbus0 ioaddr 0xe0000000: version 0x1/0x1, page-size 4096, range 64MB
sbus0 at iommu0: clock = 25 MHz
dma0 at sbus0 slot 15 offset 0x400000: dma rev 2
esp0 at dma0 slot 15 offset 0x800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
ledma0 at sbus0 slot 15 offset 0x400010: dma rev 2
le0 at ledma0 slot 15 offset 0xc00000 level 6: address 08:00:20:20:23:48
le0: 8 receive buffers, 2 transmit buffers
bpp0 at sbus0 slot 15 offset 0x4800000 level 2 (ipl 3): dma rev 2
bpp: hcr 0 ocr 200a tcr 8 or 0
SUNW,DBRIe at sbus0 slot 14 offset 0x10000 level 9 not configured
sio16 at sbus0 slot 0 offset 0x8000 level 9 not configured
hme0 at sbus0 slot 3 offset 0x8c00000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,hme)
hme0: Ethernet address 08:00:20:20:23:48
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
eccmemctl0 at mainbus0 ioaddr 0x0: version 0x0/0x2
raidattach: Asked for 8 units
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
scsibus0: waiting 2 seconds for devices to settle...
sd1 at scsibus0 target 1 lun 0: <QUANTUM, VK4550J  SUN4.2G, 8600> disk fixed
sd1: 4094 MB, 3882 cyl, 16 head, 135 sec, 512 bytes/sect x 8385121 sectors
sd1: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
sd0 at scsibus0 target 3 lun 0: <SEAGATE, ST31200W SUN1.05, 9462> disk fixed
sd0: 1006 MB, 2700 cyl, 9 head, 84 sec, 512 bytes/sect x 2061108 sectors
sd0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
Searching for RAID components...
root on sd0a dumps on sd0b
mountroot: trying msdos...
mountroot: trying cd9660...
isofs: session offset (part 0) 0
mountroot: trying nfs...
mountroot: trying ffs...
root file system type: ffs
cpu0: booting secondary processors: cpu1
init: copying out path `/sbin/init' 11
Sun Jan  5 22:42:59 EST 2003
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
/dev/rsd0a: file system is clean; not checking
/dev/rsd1a: file system is clean; not checking
Setting tty flags.
Enabling ipfilter.
IP Filter: v3.4.29 initialized.  Default = pass all, Logging = enabled
Setting sysctl variables:
Starting network.
Hostname: russian-intervention.eterna.com.au
IPv6 mode: host
Configuring network interfaces: hme0.
add net default: gateway 203.15.111.22
Adding interface aliases:
Building databases...
Starting syslogd.
Checking for core dump...
savecore: no core dump
Setting date via ntp.
Mounting all filesystems...
Clearing /tmp.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Starting virecover.
Starting local daemons:.
Updating motd.
Starting sshd.
Starting inetd.
Starting cron.
Sun Jan  5 22:43:29 EST 2003

NetBSD/sparc (russian-intervention.eterna.com.au) (console)

login: root
Password:
Last login: Sat Jan  4 12:30:10 2003 from splode on ttyp1
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
        The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

NetBSD 1.6K (_russian_) #234: Sun Jan 5 04:46:55 EST 2003

# top -b
load averages:  1.06,  0.28,  0.10    22:43:37
20 processes:  19 sleeping, 1 on processor

Memory: 15M Act, 164K Wired, 2880K Exec, 3576K File, 123M Free
Swap: 202M Total, 202M Free


  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
  192 root       2    0   396K 1412K select/1   0:06 57.40% 22.61% sshd
    4 root     -18    0     0K   25M reaper/1   0:01  1.85%  1.61% [reaper]
  213 root      10    0   308K  920K wait/0     0:00  3.26%  1.07% sh
    5 root      18    0     0K   25M syncer/1    ???  0.00%  0.00% [ioflush]
    3 root     -18    0     0K   25M pgdaem/1    ???  0.00%  0.00% [pagedaemon]
  215 root      38    0   148K  716K CPU/1      0:01  0.00%  0.00% top
  120 root      10    0     0K   25M nfsidl/1   0:00  0.00%  0.00% [nfsio]
  119 root      10    0     0K   25M nfsidl/0   0:00  0.00%  0.00% [nfsio]
  118 root      10    0     0K   25M nfsidl/1   0:00  0.00%  0.00% [nfsio]
  117 root      10    0     0K   25M nfsidl/0   0:00  0.00%  0.00% [nfsio]
  211 root      10    0   248K  656K nanosl/0   0:00  0.00%  0.00% cron
    1 root      10    0    76K  656K wait/0     0:00  0.00%  0.00% init
  115 root      10    0   488K  520K mfsidl/0   0:00  0.00%  0.00% mount_mfs
  105 root       2    0   216K  824K select/1   0:00  0.00%  0.00% rpcbind
  206 root       2    0   128K  800K select/0   0:00  0.00%  0.00% inetd
   90 root       2    0   216K  724K select/0   0:00  0.00%  0.00% syslogd
  166 root       2    0   184K  624K select/1   0:00  0.00%  0.00% lpd
    2 root      -6    0     0K   25M sccomp/0   0:00  0.00%  0.00% [scsibus0]

#