From owner-freebsd-hackers Fri Jan 4 18:56:51 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from search.sparks.net (d-207-5-180-136.gwi.net [207.5.180.136]) by hub.freebsd.org (Postfix) with ESMTP id 21CFB37B6FC for ; Fri, 4 Jan 2002 18:53:36 -0800 (PST) Received: by search.sparks.net (Postfix, from userid 100) id 36329D983; Fri, 4 Jan 2002 21:50:45 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by search.sparks.net (Postfix) with ESMTP id 28A97D982 for ; Fri, 4 Jan 2002 21:50:45 -0500 (EST) Date: Fri, 4 Jan 2002 21:50:45 -0500 (EST) From: David Miller To: freebsd-hackers@freebsd.org Subject: Overriding ARG_MAX Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Apologies if this belongs on -questions. I couldn't find what I needed in the archives or handbook. I have a system where I need/want to handle lots of files in a single directory. Lots as in 100-200K files. ls | wc -l breaks because the value of ARG_MAX in sys/syslimits.h is too small. If I change it from 65536 to 4meg and rebuild the world it works fine. I do cvsup from time to time and have to re-edit the file, which I usually forget. Is there a way to set this parameter in make.conf or the config file so it's always done when compiling the kernel? Thanks in advance, --- David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message