From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 4 02:03:46 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D32C16A4CE for ; Fri, 4 Mar 2005 02:03:46 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EDD443D58 for ; Fri, 4 Mar 2005 02:03:44 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 5E08A8568F; Fri, 4 Mar 2005 12:33:40 +1030 (CST) Date: Fri, 4 Mar 2005 12:33:40 +1030 From: Greg 'groggy' Lehey To: Brooks Davis Message-ID: <20050304020340.GU73981@wantadilla.lemis.com> References: <20050304013622.GS73981@wantadilla.lemis.com> <20050304014035.GA20301@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A47bNRIYjYQgpFVi" Content-Disposition: inline In-Reply-To: <20050304014035.GA20301@odin.ac.hmc.edu> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: FreeBSD Hackers Subject: Re: Setting maximum data size X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2005 02:03:46 -0000 --A47bNRIYjYQgpFVi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thursday, 3 March 2005 at 17:40:35 -0800, Brooks Davis wrote: > On Fri, Mar 04, 2005 at 12:06:22PM +1030, Greg 'groggy' Lehey wrote: >> I've spent the last hour trying to raise the maximum process data size >> (ulimit -d). /etc/login.conf says "unlimited", /boot/loader.conf has >> nothing, and I can't find a sysctl that looks like it's doing >> something nasty. I've RTFMd and found nothing. What am I missing? > > The FM seems faily unhelpful, but the answer is the tunable > kern.maxdsiz. I found it by finding MAXDSIZ in NOTES and the searching > for it on Robert's FreeBSD Cross Refrence and finding the one .c file > that used it: > > http://fxr.watson.org/fxr/ident?i=MAXDSIZ Heh. Yes, I recall doing something like that too. In fact, I had guessed at it based on the entries in /boot/defaults/loader.conf, but it still took me 3 attempts to get it right. Some values can be specified like this: hw.physmem="1G" # Limit physical memory. See loader(8) That doesn't seem to work for MAXDSIZ. I ended up setting it like this: kern.maxdsiz="2147483648" # Set the max data size It would be nice to get somebody to update the FM. Thanks for the reply. Greg -- See complete headers for address and phone numbers. --A47bNRIYjYQgpFVi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCJ8H8IubykFB6QiMRAqD5AJ4ratUkv5yzXlax0YcdvJ4HcS2V6gCeKePv N0AfQmcTPr1nrHkD6VyQiUk= =z4S8 -----END PGP SIGNATURE----- --A47bNRIYjYQgpFVi--