Subject: Re: Issue with large memory systems, revisited
To: tech-kern@netbsd.org, <port-macppc@netbsd.org>
From: John Klos <john@sixgirls.org>
List: port-macppc
Date: 11/08/2002 03:24:30
Hi,

> >how are you measuring "the number of simultaneous tasks"?
> >I tried running 5000 copies of "sleep 100" via
> >10 dualg4:~ # unlimit maxproc; repeat 5000 sh -c 'sleep 100 &'

Something very similar (a sh while true loop).

> >18 dualg4:~ # top | head
> >load averages:  1.88,  0.90,  0.38    22:04:22
> >5025 processes:5024 sleeping, 1 on processor
> >Memory: 72M Act, 79M Wired, 1217M Free

That would be very nice!

> Was that on 1.6 or -current?  Current supports 512MB of KVA which
> makes that possible.  256MB under 1.6 along with the buffer cache
> autosized for 1.6GB greatly reduces the among of leftover KVA
> needed for the kernel stack of all those processes.

I suppose this is what I'd like to know about, then - if you're running
-current, then maybe I'll have to start moving some code over and get a
fixed kernel before I start hosting serious content on this machine.

Follows is my complete dmesg.

Thanks very much,
John Klos
Sixgirls Computing Labs



NetBSD 1.6 (ANDROMEDA-$Revision: 1.6.0.4 $) #0: Mon Nov  4 06:45:03 EST 2002
    john@andromeda.ziaspace.com:/usr/src/sys/arch/macppc/compile/ANDROMEDA
total memory = 1536 MB
avail memory = 1402 MB
using 2048 buffers containing 78744 KB of memory
mainbus0 (root)
cpu0 at mainbus0: Version a (Revision 1.0), ID 0 (primary)
cpu0: HID0 8000c086<EMCP,ICE,DCE,SGE,BHT,NOPDST>
bandit0 at mainbus0
pci0 at bandit0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
siop0 at pci0 dev 13 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop0: using on-board RAM
siop0: interrupting at irq 23
scsibus0 at siop0: 16 targets, 8 luns per target
rtk0 at pci0 dev 14 function 0: RealTek 8139 10/100BaseTX
rtk0: interrupting at irq 24
rtk0: Ethernet address 00:50:fc:4c:39:06
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rtk1 at pci0 dev 15 function 0: RealTek 8139 10/100BaseTX
rtk1: interrupting at irq 25
rtk1: Ethernet address 00:50:fc:4c:21:91
ukphy1 at rtk1 phy 7: Generic IEEE 802.3u media interface
ukphy1: OUI 0x000000, model 0x0000, rev. 0
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
obio0 at pci0 dev 16 function 0: addr 0xf3000000
esp0 at obio0 offset 0x10000 irq 12: NCR53C94, 25MHz, SCSI ID 7
scsibus1 at esp0: 8 targets, 8 luns per target
mc0 at obio0 offset 0x11000: irq 14,2,3: address 00:a0:40:6e:f9:d0
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0 (console)
zstty1 at zsc0 channel 1
awacs at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 0 targets
aed0 at adb0 addr 0: ADB Event device
mesh0 at obio0 offset 0x18000 irq 13: 50MHz, SCSI ID 7
scsibus2 at mesh0: 8 targets, 8 luns per target
nvram0 at obio0 offset 0x1d000
bandit1 at mainbus0
pci1 at bandit1 bus 1
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
pciide0 at pci1 dev 13 function 0: CMD Technology PCI0648 (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using irq 27 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <IC35L120AVVA07-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 111 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
wd1 at pciide0 channel 1 drive 0: <IC35L120AVVA07-0>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 111 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
rtk2 at pci1 dev 14 function 0: RealTek 8139 10/100BaseTX
rtk2: interrupting at irq 28
rtk2: Ethernet address 00:50:fc:5a:40:7d
ukphy2 at rtk2 phy 7: Generic IEEE 802.3u media interface
ukphy2: OUI 0x000000, model 0x0000, rev. 0
ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <IBM, DDYS-T18350N, S96H> SCSI3 0/direct fixed
sd0: 17501 MB, 15110 cyl, 6 head, 395 sec, 512 bytes/sect x 35843670 sectors
sd0: sync (50.0ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <WDIGTL, WDE18310 ULTRA3, 1.30> SCSI3 0/direct fixed
sd1: 17461 MB, 13614 cyl, 8 head, 328 sec, 512 bytes/sect x 35761710 sectors
sd1: sync (50.0ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
sd2 at scsibus0 target 2 lun 0: <WDIGTL, WDE18310 ULTRA3, 1.30> SCSI3 0/direct fixed
sd2: 17461 MB, 13614 cyl, 8 head, 328 sec, 512 bytes/sect x 35761710 sectors
sd2: sync (50.0ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
st0 at scsibus0 target 4 lun 0: <ECRIX, VXA-1, 2112> SCSI2 1/sequential removable
st0: drive empty
st0: sync (100.0ns offset 16), 8-bit (10.000MB/s) transfers
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
sd3 at scsibus2 target 0 lun 0: <IBM, DCAS-34330, S65A> SCSI2 0/direct fixed
sd3: 4134 MB, 8205 cyl, 6 head, 171 sec, 512 bytes/sect x 8467200 sectors
IPsec: Initialized Security Association Processing.
boot device: sd3
root on sd0a dumps on sd0b