Subject: Re: port-sun2/32420: NetBSD/sun2 3.0 INSTALL kernel hangs during boot
To: None <port-sun2-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 04/06/2006 15:20:02
The following reply was made to PR port-sun2/32420; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: port-sun2-maintainer@netbsd.org, gnats-admin@netbsd.org,
	oster@cs.usask.ca, tsutsui@ceres.dti.ne.jp
Subject: Re: port-sun2/32420: NetBSD/sun2 3.0 INSTALL kernel hangs during boot
	 
Date: Fri, 7 Apr 2006 00:15:34 +0900

 In article <20060406150503.67D7F63B896@narn.netbsd.org>
 oster@cs.usask.ca wrote:
 
 >  > -	zst->zst_rbuf = malloc(zstty_rbuf_size << 1, M_DEVBUF, M_WAITOK);
 >  > +	zst->zst_rbuf = malloc(zstty_rbuf_size << 1, M_DEVBUF, M_NOWAIT);
 >  
 >  Is the system just running out of kernel memory then?
 
 With M_NOWAIT, malloc(9) doesn't fail. As noted in the PR,
 it also works if options MALLOC_NOINLINE is not specified. Umm.
 
 >  I'm not sure 
 >  how much memory a sun2 box can have, but if you bump up the amount of 
 >  RAM in tme, does the problem go away?  (I dont't think it did for me 
 >  on sun3..)
 
 sun2 on tme only has 4MB and can't bump than it,
 but the FOURMEG kernel works fine even on multiuser.
 
 Anyway, I don't think we can use M_WAITOK during autoconfiguration.
 ---
 Izumi Tsutsui