From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 1 May 2012 17:54:16 -0700 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0015175cab1469120004bf0320fa Subject: Re: [9fans] ARG_MAX of Plan9 Topicbox-Message-UUID: 832720e6-ead7-11e9-9d60-3106f5b1d025 --0015175cab1469120004bf0320fa Content-Type: text/plain; charset=UTF-8 It's limited by the size of the temporary stack during exec, and platform-specific. The smallest seems to be 100 4k pages (less space for argv and Tos, I suppose). Newer variants of the system raise that to the size of the stack segment (eg, 16 Mbytes), which is still platform-specific. In fact, glancing at sysproc.c, I'm not sure why it's limited to TSTKSIZ given it goes on to allocate a much bigger segment to put them in, but even if that could easily be removed, currently that is the limit. --0015175cab1469120004bf0320fa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It's limited by the size of the temporary stack during exec, and platfo= rm-specific.
The smallest seems to be 100 4k pages (less space for argv= and Tos, I suppose).
Newer variants of the system raise that to th= e size of the stack segment (eg, 16 Mbytes),
which is still platform-specific. In fact, glancing at sysproc.c= , I'm not sure why it's limited
to TSTKSIZ given it goes = on to allocate a much bigger segment to put them in,
but even if = that could easily be removed, currently that is the limit.

--0015175cab1469120004bf0320fa--