Subject: hypersparc MP goes multi-user!!!
To: None <port-sparc@netbsd.org>
From: Simon J. Gerraty <sjg@crufty.net>
List: tech-smp
Date: 01/15/2003 10:08:58
Changes are not committed yet as far as I know
but since lots of folk have been waiting for this...


------- Forwarded Message
To: Paul Kranenburg <pk@cs.few.eur.nl>
Cc: sjg@crufty.net
Subject: Re: hypersparc MP testers? 
In-Reply-To: Message from Paul Kranenburg <pk@cs.few.eur.nl> 
   of "Wed, 15 Jan 2003 11:40:41 +0100." <200301151040.h0FAefL14674@sam.few.eur.nl> 
Date: Wed, 15 Jan 2003 08:00:32 -0800
From: "Simon J. Gerraty" <sjg@crufty.net>
Message-Id: <20030115160032.56A006888@void.crufty.net>

PK rules!  It booted single user ok, ran fsck ok etc,
so I got brave an booted multi-user - a few core files, but otherwise
it seems fine.  See below...

Resetting ... 

SPARCstation 20 MP (2 X RT625), No Keyboard
ROM Rev. 2.25R hyperSPARC, 160 MB memory installed, Serial #7493664.
Ethernet address 8:0:20:72:58:20, Host ID: 72725820.

Initializing Memory [BREAK]

Type  help  for more information
<#0> ok boot netbsd.mp
Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0  File and args: netbsd.mp
>> NetBSD/sparc Secondary Boot, Revision 1.12
>> (autobuild@tgm.daemon.org, Mon Sep  9 08:12:32 UTC 2002)
Booting netbsd.mp
2086740+87300+189956 [131920+100148]=0x289ed0
OBP version 3, revision 2.25 (plugin rev 2)
[ using 232560 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.6L (SHADOWFAX.MP) #94: Wed Jan 15 14:12:40 MET 2003
    pk@mang:/usr/src/sys/arch/sparc/compile/SHADOWFAX.MP
total memory = 159 MB
avail memory = 144 MB
using 896 buffers containing 8264 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: RT620/625 @ 100 MHz, on-chip FPU
cpu0: 256K byte write-back, 64 bytes/line, sw flush: cache enabled
cpu1 at mainbus0: mid 9: RT620/625 @ 100 MHz, on-chip FPU
cpu1: 256K byte write-back, 64 bytes/line, sw flush: cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08: hostid 72725820
timer0 at obio0 slot 0 offset 0x300000: delay constant 48
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
SUNW,fdtwo at obio0 slot 0 offset 0x700000 level 11 not configured
auxreg0 at obio0 slot 0 offset 0x800000
power0 at obio0 slot 0 offset 0xa01000 level 2
iommu0 at mainbus0 ioaddr 0xe0000000: version 0x3/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:72:58:20
le0: 8 receive buffers, 2 transmit buffers
SUNW,bpp at sbus0 slot 15 offset 0x4800000 level 2 (ipl 3) not configured
SUNW,DBRIe at sbus0 slot 14 offset 0x10000 level 9 not configured
qec0 at sbus0 slot 2 offset 0x20000 level 4 (ipl 7): 128K memory
qe0 at qec0 slot 0 offset 0x0 rev 1 address 08:00:20:72:58:20
qe1 at qec0 slot 1 offset 0x0 rev 1 address 08:00:20:72:58:20
qe2 at qec0 slot 2 offset 0x0 rev 1 address 08:00:20:72:58:20
qe3 at qec0 slot 3 offset 0x0 rev 1 address 08:00:20:72:58:20
cgsix at sbus0 slot 3 offset 0x0 level 9 not configured
eccmemctl0 at mainbus0 ioaddr 0x0: version 0x0/0x2
IPsec: Initialized Security Association Processing.
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <SEAGATE, ST34371W SUN4.2G, 7462> disk fixed
sd0: 4094 MB, 3882 cyl, 16 head, 135 sec, 512 bytes/sect x 8385121 sectors
sd0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
cd0 at scsibus0 target 6 lun 0: <TOSHIBA, XM-4101TASUNSLCD, 1084> cdrom removable
cd0: sync (248.0ns offset 15), 8-bit (4.032MB/s) transfers
root on sd0a dumps on sd0b
root file system type: ffs
cpu0: booting secondary processors: cpu1
Wed Jan 15 07:53:14 PST 2003
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
/dev/rsd0a: file system is clean; not checking
/dev/rsd0f: file system is clean; not checking
/dev/rsd0g: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: too.crufty.net
NIS domainname: XXXXXXX
IPv6 mode: host
Configuring network interfaces:.
Starting dhclient.
Internet Software Consortium DHCP Client V3.0rc10
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on BPF/le0/08:00:20:72:58:20
Sending on   BPF/le0/08:00:20:72:58:20
Sending on   Socket/fallback
DHCPREQUEST on le0 to 255.255.255.255 port 67
DHCPACK from 192.168.192.10
New Network Number: 192.168.192.0
New Broadcast Address: 192.168.192.63
15 Jan 07:53:29 ntpdate[117]: ntpdate 4.0.99i Mon Sep  9 08:04:38 UTC 2002 (1)
15 Jan 07:53:33 ntpdate[117]: step time server 192.168.192.3 offset 3.598435 sec
15 Jan 07:53:34 ntpdate[166]: ntpdate 4.0.99i Mon Sep  9 08:04:38 UTC 2002 (1)
 ntpd bound to 192.168.192.2 -- renewal in 2018881 seconds.
Building databases...
wsconscfg: /dev/ttyEcfg: No such file or directory
wsconscfg: /dev/ttyEcfg: No such file or directory
wsconscfg: /dev/ttyEcfg: No such file or directory
wsconscfg: /dev/ttyEcfg: No such file or directory
Starting syslogd.
Segmentation fault - core dumped
Checking for core dump...
savecore: /netbsd.mp: writeable by non-root
savecore: /netbsd: kvm_dump_mkheader: Pread: Invalid argument
Starting rpcbind.
Starting ypbind.
Segmentation fault - core dumped
Segmentation fault - core dumped
Clearing /tmp.
Starting amd.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Bus error - core dumped
Starting mountd.
Starting nfsd.
Starting virecover.
Segmentation fault - core dumped
Updating motd.
Starting sshd.
Bus error - core dumped
Starting snmpd.
Jan 15 07:53:52 ucd-snmp[295]: nlist err: neither total nor _total found.

Starting inetd.
Starting cron.
Wed Jan 15 07:53:53 PST 2003
Jan 15 07:53:59 ucd-snmp[295]: UCD-SNMP version 4.2.4

NetBSD/sparc (too.crufty.net) (console)

login: root
Password:
Last login: Wed Jan 15 01:57:11 2003 on console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
        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.6L (SHADOWFAX.MP) #94: Wed Jan 15 14:12:40 MET 2003

Welcome to NetBSD!

root:129# ps ax
PID TT STAT    TIME COMMAND
  0 ?? DKs  0:00.02 [swapper]
  1 ?? Ss   0:00.07 init 
  2 ?? DK   0:00.00 [scsibus0]
  3 ?? DK   0:00.01 [pagedaemon]
  4 ?? DK   0:01.19 [reaper]
  5 ?? DK   0:00.14 [ioflush]
  6 ?? DK   0:00.19 [aiodoned]
168 ?? S<s  0:00.26 /usr/sbin/ntpd -p /var/run/ntpd.pid -c /etc/ntp.conf 
169 ?? Ss   0:00.03 /sbin/dhclient le0 
205 ?? Ss   0:00.36 /usr/sbin/rpcbind -l 
220 ?? Ss   0:05.46 /usr/sbin/amd -l syslog -x error,noinfo,nostats -p -a /amd 
225 ?? SK   0:00.01 [nfsio]
226 ?? SK   0:00.01 [nfsio]
227 ?? SK   0:00.01 [nfsio]
228 ?? SK   0:00.01 [nfsio]
243 ?? Ss   0:00.20 /usr/sbin/mountd 
246 ?? Ss   0:00.32 nfsd: master 
249 ?? SL   0:00.01 nfsd: server 
250 ?? SL   0:00.02 nfsd: server 
251 ?? SL   0:00.03 nfsd: server 
252 ?? SL   0:00.04 nfsd: server 
305 ?? Ss   0:00.21 /usr/sbin/inetd -l 
311 ?? Ss   0:00.19 /usr/sbin/cron 
295 a- S    0:00.98 /usr/pkg/sbin/snmpd -s -P /var/run/snmpd.pid -A 
314 a  Ss   0:00.76 -ksh 
344 a  R+   0:00.00 ps ax 
root:132# Jan 15 07:59:10 ucd-snmp[295]: Connection from 192.168.192.1

BTW I have another dual cpu module I can put in this guy ;-)

Thanks
- --sjg

------- End of Forwarded Message

Also NFS and amd worked:

root:133# ls /host/zen/etc
.amandarc                 fw-authdb.db              postfix/
..
..
..
ftpd.conf                 ntp.drift                 wscons.conf
ftpusers                  old/                      zshenv*
ftpwelcome                passwd                    zshrc*
fw-authdb                 phones
root:134# ls -C /host/zen/etc | wc -l
      95
root:135# 

and big surprise - considering this is 1.6 userland, top works:

TERM=dumb top
load averages:  0.06,  0.08,  0.08    09:32:11
26 processes:  25 sleeping, 1 on processor

Memory: 18M Act, 2000K Wired, 4908K Exec, 10M File, 117M Free
Swap: 300M Total, 300M Free


  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
  389 root      28    0   172K  824K CPU/1      1:23  0.00%  0.00% top
  220 root       2    0   372K  904K select/1   0:05  0.00%  0.00% amd
    5 root      18    0     0K   25M syncer/1   0:03  0.00%  0.00% [ioflush]
  168 root      18  -12   772K 1784K pause/1    0:01  0.00%  0.00% ntpd
  295 root       2    0   744K 2756K select/1   0:01  0.00%  0.00% snmpd
    4 root     -18    0     0K   25M reaper/0   0:01  0.00%  0.00% [reaper]
  314 root      18    0   660K  588K pause/1    0:00  0.00%  0.00% ksh
  226 root      10    0     0K   25M nfsidl/1   0:00  0.00%  0.00% [nfsio]
  228 root      10    0     0K   25M nfsidl/1   0:00  0.00%  0.00% [nfsio]
  227 root      10    0     0K   25M nfsidl/0   0:00  0.00%  0.00% [nfsio]
  225 root      10    0     0K   25M nfsidl/1   0:00  0.00%  0.00% [nfsio]
  311 root      10    0   244K  664K nanosl/1   0:00  0.00%  0.00% cron
    1 root      10    0   412K  256K wait/0     0:00  0.00%  0.00% init
  205 root       2    0   316K  832K select/1   0:00  0.00%  0.00% rpcbind
  243 root       2    0   168K  792K select/1   0:00  0.00%  0.00% mountd
  305 root       2    0   104K  748K select/1   0:00  0.00%  0.00% inetd
  246 root       2    0    76K  680K select/1   0:00  0.00%  0.00% nfsd
  252 root       2    0    56K  480K nfsd/1     0:00  0.00%  0.00% nfsd

root:141# uptime
10:07AM  up  2:15, 1 user, load averages: 0.07, 0.08, 0.08
root:142# ls -lt /*.core 
-rw-------  1 root  wheel  475136 Jan 15 07:53 /sshd.core
-rw-------  1 root  wheel  200704 Jan 15 07:53 /sh.core
-rw-------  1 root  wheel  200704 Jan 15 07:53 /quotaon.core
-rw-------  1 root  wheel  282624 Jan 15 07:53 /ypbind.core
-rw-------  1 root  wheel  307200 Jan 15 07:53 /syslogd.core
-rw-------  1 root  wheel  319488 Jan 15 07:53 /ntpdate.core
root:143# 

--sjg