From owner-freebsd-questions@FreeBSD.ORG Thu Oct 13 01:30:38 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F24716A41F for ; Thu, 13 Oct 2005 01:30:38 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id A038943D48 for ; Thu, 13 Oct 2005 01:30:36 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (patr530-a078.otenet.gr [212.205.215.78]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id j9D1UWlF008270; Thu, 13 Oct 2005 04:30:33 +0300 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id j9D1TKgt006331; Thu, 13 Oct 2005 04:29:20 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id j9D1TJQl006330; Thu, 13 Oct 2005 04:29:19 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 13 Oct 2005 04:29:19 +0300 From: Giorgos Keramidas To: Soo-Hyun Choi Message-ID: <20051013012919.GA6263@flame.pc> References: <34b425c50510121813l4a073cc3h3810da4543b02bfe@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34b425c50510121813l4a073cc3h3810da4543b02bfe@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: how to unlimit 'data seg size'? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 01:30:38 -0000 On 2005-10-13 02:13, Soo-Hyun Choi wrote: > Hi, > > if I type 'unlimit -a', then I can see the followings. > How do I set 'data seg size' as 'unlimited'? > ---------------------- > core file size (blocks, -c) unlimited > data seg size (kbytes, -d) 524288 > [...] The maximum data segment size is upper-bound by the value of the internal kernel variable maxdsiz. The value of maxdsiz depends on the architecture of the machine you are running FreeBSD on. The defaults are usually fine, but if you *really* need to up this a bit, you can set kern.maxdsiz in your boot loader configuration. The kernel will respect any value you set in this way. Please note that while ulimit -a reports the maximum data segment size in KB, the value of kern.maxdsiz is in bytes, so you'd have to use something like: echo 'kern.maxdsiz="600000000"' >> /boot/loader.conf Regards, Giorgos