Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2006 09:22:31 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Giuseppe Pagnoni <gpagnon@emory.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: limit datasize
Message-ID:  <20060421142231.GA73063@dan.emsphone.com>
In-Reply-To: <497ABD6A-3187-49C3-9A22-FB5E7918BC15@emory.edu>
References:  <497ABD6A-3187-49C3-9A22-FB5E7918BC15@emory.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 21), Giuseppe Pagnoni said:
> I am running into a memory problem when using large datasets.  The
> limit command shows:
> 
> cputime      unlimited
> filesize     unlimited
> datasize     524288 kbytes
> stacksize    65536 kbytes
> 
> however, /etc/login.conf shows that the default setting is "unlimited":
> 
>         :datasize=unlimited:\
> 
> Any suggestion on how to increase the limits?

The kernel imposes a hard limit on datasize that defaults to 512M
(which is pretty small nowadays).  You can raise it by adding
"kern.maxdsize=4G" to /boot/loader.conf and rebooting.  You can use
"kern.maxssize" to adjust the hard stack limit, but it's rare that
soemone needs to go above the default 64M.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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