Subject: SMP enabled
To: None <port-sparc@netbsd.org>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: port-sparc
Date: 01/07/2003 13:55:24
Folks,

I've now enabled SMP operation in MULTIPROCESSOR kernels.

As noted before, there are still a number of loose ends to tie up but
it's now usable on at least two different platforms: various 2-processor
viking supersparc machines and a 4-processor 4/670, i.e.:


  NetBSD 1.6L (SHADOWFAX.MP) #50: Tue Jan  7 13:58:57 MET 2003
      pk@mang:/usr/src/sys/arch/sparc/compile/SHADOWFAX.MP
  total memory = 65104 KB
  avail memory = 57304 KB
  using 839 buffers containing 3356 KB of memory
  bootpath: /iommu0/sbus0/dma@f,81000/esp@f,80000/sd@3,0
  mainbus0 (root): SUNW,Sun 4/600
  cpu0 at mainbus0: mid 8: CY7C601/605 (v.c) @ 40 MHz, RT602 or WTL3171 FPU
  cpu0: 64K byte write-back, 32 bytes/line, sw flush: cache enabled
  cpu1 at mainbus0: mid 9: CY7C601/605 (v.c) @ 40 MHz, RT602 or WTL3171 FPU
  cpu1: 64K byte write-back, 32 bytes/line, sw flush: cache enabled
  cpu2 at mainbus0: mid 10: CY7C601/605 (v.c) @ 40 MHz, RT602 or WTL3171 FPU
  cpu2: 64K byte write-back, 32 bytes/line, sw flush: cache enabled
  cpu3 at mainbus0: mid 11: CY7C601/605 (v.c) @ 40 MHz, RT602 or WTL3171 FPU
  cpu3: 64K byte write-back, 32 bytes/line, sw flush: cache enabled

and some action:

  top -b
  load averages:  3.02,  0.86,  0.37    14:28:16
  40 processes:  2 runnable, 34 sleeping, 4 on processor

  Memory: 30M Act, 2072K Wired, 4820K Exec, 8084K File, 21M Free
  Swap: 132M Total, 132M Free


  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
  300 pk        64    0  5288K 5128K CPU/1      0:18 83.17% 58.15% cc1
  301 pk        64    0  5248K 5084K CPU/2      0:17 82.97% 56.74% cc1
  299 pk        64    0  4260K 4652K CPU/0      0:17 74.44% 52.05% cc1
  298 pk        64    0  4472K 4928K RUN/0      0:16 72.16% 51.51% cc1
  243 pk         2    0  1680K 2180K select/0   0:08  6.87%  6.25% make
  306 pk        64    0  2400K 2444K RUN/0      0:01 55.00%  2.69% cc1
    6 root      18    0     0K   15M syncer/3    ???  1.66%  1.66% [ioflush]
    5 root     -18    0     0K   15M reaper/2    ???  1.12%  1.12% [reaper]
  304 pk        10    0   136K  660K wait/1     0:00  3.95%  1.03% cc