9fans archive / 1998 / 09 / 21 /    prev next

From: jmk@pla... jmk@pla...
Subject: [9fans] Find command
Date: Thu, 3 Sep 1998 10:23:10 -0400

in plan9, TSTKSIZ on the x86 is rather small (10) and located awkwardly in
the address space - you can't increase it without also moving the location of
the user stack and there are some places this value is known (e.g. the alef
runtime):

	#define	USERADDR	0xC0000000		/* struct User */
	#define	TSTKTOP		USERADDR		/* end of new stack in sysexec */
	#define TSTKSIZ 	10
	#define	USTKTOP		(TSTKTOP-TSTKSIZ*BY2PG)	/* byte just beyond user stack */

although i don't remember all the details, in order to increase
it a couple of years ago in brazil i moved things around a bit more:

	#define	KZERO		0x80000000		/* base of kernel address space */
	#define	USTKTOP		(KZERO-BY2PG)		/* byte just beyond user stack */
	#define	TSTKTOP		(USTKTOP-USTKSIZE)	/* end of new stack in sysexec */
	#define TSTKSIZ 	100

this was fun as we were running a user-level ip implementation written in alef
at the time.

--jim

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

>From cse.psu.edu!owner-9fans Thu Sep  3 03:42:27 EDT 1998
Received: from plan9.bell-labs.com ([135.104.9.2]) by plan9; Thu Sep  3 03:42:27 EDT 1998
Received: from cse.psu.edu ([130.203.3.50]) by plan9; Thu Sep  3 03:42:26 EDT 1998
Received: from localhost (majordom@localhost) by cse.psu.edu (8.8.8/8.7.3) with SMTP id DAA10884; Thu, 3 Sep 1998 03:21:08 -0400 (EDT)
Received: by claven.cse.psu.edu (bulk_mailer v1.5); Thu, 3 Sep 1998 03:21:01 -0400
Received: (from majordom@localhost) by cse.psu.edu (8.8.8/8.7.3) id DAA10853 for 9fans-outgoing; Thu, 3 Sep 1998 03:20:56 -0400 (EDT)
X-Authentication-Warning: claven.cse.psu.edu: majordom set sender to owner-9fans using -f
Received: from caldo.demon.co.uk (none@cal... [194.222.207.148]) by cse.psu.edu (8.8.8/8.7.3) with SMTP id DAA10849 for <9fans@cse...>; Thu, 3 Sep 1998 03:20:52 -0400 (EDT)
From: forsyth@cal...
Message-Id: <199809030720.DAA10849@cse...>
To: 9fans@cse...
Date: Thu, 3 Sep 1998 08:19:56 BST
Subject: Re: [9fans] Find command
Sender: owner-9fans@cse...
Reply-To: 9fans@cse...
Precedence: bulk

>>The only limit on arglist size in plan 9 is
>>total virtual memory available.

it's limited to TSTKSIZ*BY2PG during the transfer between images,
but it would be better to remove the restriction than to reinstate xargs.