Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 2004 23:45:55 +1200
From:      Juha Saarinen <juhasaarinen@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Could ARG_MAX be increased?
Message-ID:  <b34be84204092304456066b0a0@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Currently, ARG_MAX is set to:

$ getconf ARG_MAX
65536
 
in syslimits.h. This is quite low compared to other OS (SunOS has 1MB
IIRC, and OpenBSD 3.5 256K) and causes the "argument list too long"
issues when for instance grep'ing in directories with lots of files.

Last time the limit was upped was ten years ago:

"Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 8
09:12:43 1994 UTC (10 years, 1 month ago) by davidg
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Increased ARG_MAX even further...to 64k bytes."

Is there a reason for keeping ARG_MAX so low, or could it be increased
to eg. 262,144 bytes?

-- 

Juha



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b34be84204092304456066b0a0>