9fans archive / 1998 / 08 / 3 /    prev next

From: Russ Cox rsc@pla...
Subject: [9fans] PC's 16MB SEGMAPSIZE limitations.
Date: Sat, 1 Aug 1998 15:33:54 -0400

This should be a FAQ.


------ forwarded message follows ------

>From cse.psu.edu!owner-9fans Wed Oct 29 00:48:31 EST 1997
Received: from cse.psu.edu ([130.203.3.50]) by plan9; Wed Oct 29 00:48:31 EST 1997
Received: from localhost (majordom@localhost) by cse.psu.edu (8.8.7/8.7.3) with SMTP id AAA06748; Wed, 29 Oct 1997 00:48:11 -0500 (EST)
Received: by claven.cse.psu.edu (bulk_mailer v1.5); Wed, 29 Oct 1997 00:48:03 -0500
Received: (from majordom@localhost) by cse.psu.edu (8.8.7/8.7.3) id AAA06708 for 9fans-outgoing; Wed, 29 Oct 1997 00:47:57 -0500 (EST)
X-Authentication-Warning: claven.cse.psu.edu: majordom set sender to owner-9fans using -f
Received: from smtp1.fas.harvard.edu (root@smt... [140.247.30.81]) by cse.psu.edu (8.8.7/8.7.3) with ESMTP id AAA06704 for <9fans@cse...>; Wed, 29 Oct 1997 00:47:53 -0500 (EST)
From: rsc
Received: from p9rsc (rcox.student.harvard.edu [140.247.81.214]) by smtp1.fas.harvard.edu with SMTP id AAA06521; Wed, 29 Oct 1997 00:47:52 -0500 (EST)
Message-Id: <199710290547.AAA06521@smt...>
To: cse.psu.edu!9fans
Date: Wed, 29 Oct 1997 00:43:58 -0500
Subject: re: [9fans] How much memory does it require ...
Sender: cse.psu.edu!owner-9fans
Reply-To: cse.psu.edu!9fans
Precedence: bulk

This got tossed around two years ago, and I think the
resolution was that you could change SEGMAPSIZE in pc/mem.h
and all would be fine.  The two attached messages contain
the necessary bits I think.

Nigel Roles said once that 8l uses 20MB to link ghostscript
without any printer drivers.

Russ

--- forwarded messages follow ---
 From cse.psu.edu!9fans-outgoing-owner Thu Nov  2 13:36:19 EST 1995
From:	"G. David Butler" <gdb@dbS...>
To:	9fans@cse...
Subject: Re: 386 maximum segment size of 16Mb
Sender: owner-9fans@cse...
Reply-To: 9fans@cse...

I hate replying to my own mail, but I guess I wasn't finished... :-)

>The real question, has anybody looked into increasing this limit?  (look
>in /sys/src/9/pc/mem.h, SEGMEMSIZE, I think, set to 16.)
Make that                SEGMAPSIZE.

Also several of the machines have this in mem.h:

#define SEGMAPSIZE 64 /* 16 is for wooses */

This would imply that all is necessary is to change 16 to 64 in pc/mem.h,
but that would be too simple...

Thanks again.

 From cse.psu.edu!9fans-outgoing-owner Thu Nov  2 13:59:19 EST 1995
From:	philw@pla...
To:	9fans@cse...
Subject: Re: 386 maximum segment size of 16Mb
Sender: owner-9fans@cse...
Reply-To: 9fans@cse...


changing SEGMAPSIZE works fine.
It incurs overhead allocated Segment structures
so 16 seemed reasonable for a terminal. We really
dont use PC's to compile.