Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2005 04:29:19 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Soo-Hyun Choi <shchoi@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to unlimit 'data seg size'?
Message-ID:  <20051013012919.GA6263@flame.pc>
In-Reply-To: <34b425c50510121813l4a073cc3h3810da4543b02bfe@mail.gmail.com>
References:  <34b425c50510121813l4a073cc3h3810da4543b02bfe@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-10-13 02:13, Soo-Hyun Choi <shchoi@gmail.com> 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




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