Subject: Re: maxproc on the CATS
To: S.J. Borrill <sjb42@cus.cam.ac.uk>
From: Mark Brinicombe <mark@causality.com>
List: port-arm32
Date: 08/26/1998 00:03:41
On Tue, 25 Aug 1998, S.J. Borrill wrote:

> I've been altering the number of processes by altering the boot string to
> include maxproc=<number>. This works fine up to 128 processes, but seems
> to go a bit screwy after that. maxproc=256 fails during booting when it
> tries to fork init and drops to the db> prompt. maxproc=192 allows the
> machine to boot, but only lets a few processes be started before the shell
> returns 'no more processes' (note doesn't complain about L1 page tables).
> Am I limited to a small number of processes on the CATS or is it just a
> silly mistake or some soft resource limit? I need more processes if I want
> to run Apache (which forks a child per client request). On a RiscPC, I can
> set 256 L1 page tables no problem and it all works fine.
Hmmmm,
	Probably not he answer you want ...

>> Cyclone 0.4 firmware for Chalice CATS (X86EMU)
>> Copyright 1997,1998 Causality Limited
>> Machine id 710000005b3009b0

32 MB memory available

bootable devices are:
	ne0	wd0	sd0	wd1	cd0
boot> boot ne0: maxproc=256 novgacon
[cut]
NetBSD/arm32 booting ...
bootfile: ne0:
bootargs: maxproc=256 novgacon
initarm: Configuring system ...
physmemory: 8192 pages at 0x00000000 -> 0x01ffffff
[cut]
Number of pages to handle = 8192
pmap_init: 20000 bytes (1dcf pgs)
NetBSD 1.3G (CATS.3G) #120: Wed Aug 26 01:02:29 BST 1998
ebsa@temporal:/home/voyager/altroot/usr/users/ebsa/netbsd-cur/src/sys/arch/
arm32/compile/CATS.3G
real mem  = 33554432
avail mem = 25292800
using 170 buffers containing 696320 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: SA-110 rev 3 DC enabled IC enabled WB enabled EABT
[cut]
inittodr: 00:16:46.0000 26/08/1998
Clock has gained 0 days 0 hours 3 minutes 0 secs
root file system type: ffs
swapctl: adding /dev/wd0b as swap device at priority 0
Automatic boot in progress: starting file system checks.
/dev/rwd0a: file system is clean; not checking
/dev/rwd0e: file system is clean; not checking
setting tty flags
starting network
[cut]
NetBSD/arm32 (temporal) (fcom)

login: root
Password:
Last login: Wed Aug 26 01:13:25 on fcom
Aug 26 01:17:13 temporal login: ROOT LOGIN (root) ON fcom
Aug 26 01:17:13 temporal login: ROOT LOGIN (root) ON fcom
Aug 26 01:17:13 temporal sshd[210]: log: RSA key generation complete.
Copyright (c) 1996, 1997, 1998
        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.3G (CATS.3G) #120: Wed Aug 26 01:02:29 BST 1998

You have new mail.
Terminal type? [vt102] 
Don't login as root, use the su command.
temporal# 

Any chance of a trace when you drop into the debugger ?
ne thing to note, the maxproc option will only work as long as
PMAP_STATIC_L1S is not defined as an option in the config file.

CATS kernels should not the same limits as RiscPC ones there should be no
differnece.

Cheers,
				Mark