From owner-freebsd-current@FreeBSD.ORG Thu Sep 23 11:46:00 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07CE516A4CE for ; Thu, 23 Sep 2004 11:46:00 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id B003343D46 for ; Thu, 23 Sep 2004 11:45:59 +0000 (GMT) (envelope-from juhasaarinen@gmail.com) Received: by mproxy.gmail.com with SMTP id 78so720886rnk for ; Thu, 23 Sep 2004 04:45:55 -0700 (PDT) Received: by 10.38.99.13 with SMTP id w13mr6053568rnb; Thu, 23 Sep 2004 04:45:55 -0700 (PDT) Received: by 10.38.73.29 with HTTP; Thu, 23 Sep 2004 04:45:55 -0700 (PDT) Message-ID: Date: Thu, 23 Sep 2004 23:45:55 +1200 From: Juha Saarinen To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Could ARG_MAX be increased? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Juha Saarinen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 11:46:00 -0000 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