Subject: Re: Netscape Communicator 4.0beta3: The Borg that ate my computer.
To: None <port-sparc@netbsd.org>
From: Greg Earle <earle@isolar.Tujunga.CA.US>
List: port-sparc
Date: 04/11/1997 00:30:10
Matthew writes:
> What version of NetBSD are you running?
1.2.1. Bog standard with only Aaron's pmap.c patch.
> I bet the data/stack/etc. limits are too small for this. These
> limits were recently increased on NetBSD/sparc (maybe 1.2B?) by
> pk, but 1.2 and 1.2.1 do not have this change.
Ah. Well, as I said, the result of "unlimit" was
netbsd4me:1:89 % unlimit
netbsd4me:1:90 % limit
cputime unlimited
filesize unlimited
datasize 65536 kbytes
stacksize 65536 kbytes
coredumpsize unlimited
memoryuse 58544 kbytes
descriptors 956
memorylocked 58544 kbytes
maxproc 276
This is enough for 4.0beta2, but 4.0beta3 doesn't work.
Oh, btw, I ran 4.0beta3 on a SPARCstation 2 under SunOS 4.1.3 and it worked
fine; then again, that machine had 128 Mb of RAM and 192 Mb of swap ... but
this still smells like a NetBSD problem. (Actually, the real problem is
Netscape releasing the ultimate bloatware of the Universe, but hey ... )
> In sys/arch/sparc/include/vmparam.h, you might want to change
> things to what they are in -current, if you're running something older.
This looks like it is probably the problem. MAXTSIZ (max text size) in 1.2.1
is set to 8 Mb; in -current it's 64 Mb:
netbsd4me:1:105 % diff -rc0 /usr/src/1.2.1/sys/arch/sparc/include/vmparam.h vmparam.h
*** /usr/src/1.2.1/sys/arch/sparc/include/vmparam.h Mon Sep 2 01:14:05 1996
--- vmparam.h Thu Apr 10 21:54:04 1997
***************
*** 1 ****
! /* $NetBSD: vmparam.h,v 1.10 1996/03/14 19:49:20 christos Exp $ */
--- 1 ----
! /* $NetBSD: vmparam.h,v 1.11 1996/11/12 21:08:51 pk Exp $ */
***************
*** 62 ****
! #define MAXTSIZ (8*1024*1024) /* max text size */
--- 62 ----
! #define MAXTSIZ (64*1024*1024) /* max text size */
[...]
And gee, guess what size Netscape 4.0beta3 is, versus 4.0beta2?
netbsd4me:1:106 % size /usr/local/bin/netscape-4.0beta*
text data bss dec hex
8077312 1966080 188184 10231576 9c1f18 /usr/local/bin/netscape-4.0beta2
9355264 2359296 201048 11915608 b5d158 /usr/local/bin/netscape-4.0beta3
8077312 < 8388608 == 8 * 1024 * 1024; 9355264 ain't.
Thanks Mat!
- Greg