Argument list too long.

Mike A. Harris mharris at redhat.com
Tue Sep 9 11:21:30 UTC 2003


On Mon, 8 Sep 2003, Dag Wieers wrote:

>Date: Mon, 8 Sep 2003 05:12:25 +0200 (CEST)
>From: Dag Wieers <dag at wieers.com>
>To: rhl-devel-list at redhat.com
>Content-Type: TEXT/PLAIN; charset=US-ASCII
>List-Id: For developers, developers, developers <rhl-devel-list.redhat.com>
>Subject: Argument list too long.
>
>Hi,
>
>I'm wondering if option 4 from the following article
>
>	Linux Journal: "Argument list too long": Beyond Arguments and Limitations
>	http://www.linuxjournal.com/article.php?sid=6060
>
>could be done for the Red Hat kernel (or the vanilla kernel) and if not, 
>what the objections are.
>
>Linux Journal suggests to increase the MAX_ARG_PAGES from 32 to 64 
>pages in include/linux/binfmts.h:
>
>	/*
>	 * MAX_ARG_PAGES defines the number of pages allocated for   arguments
>	 * and envelope for the new program. 32 should suffice, this gives
>	 * a maximum env+arg of 128kB w/4KB pages!
>	 */
>	#define MAX_ARG_PAGES 32
>
>I'm not in favor to increase it to 64 per se, but at least something 
>higher than 32 (as I've already come across this boundary at several 
>occassions where the only solution was to work around it in a bad way).
>
>Maybe make it system dependent or even dynamically changeable.

man xargs


-- 
Mike A. Harris     ftp://people.redhat.com/mharris
OS Systems Engineer - XFree86 maintainer - Red Hat





More information about the devel mailing list