Subject: Re: 127MB limits NetBSD memory allocation?
To: Florian Stoehr <netbsd@wolfnode.de>
From: David Laight <david@l8s.co.uk>
List: netbsd-users
Date: 07/13/2005 00:12:52
On Wed, Jul 13, 2005 at 12:06:42AM +0200, Florian Stoehr wrote:
> It's "ulimit -d unlimited" for bash.
> 
> root only may do this, unless you export a higher limit than the
> default one.

Nope... there is a 'soft' limit and a 'hard' limit, any user can set
the 'soft' and hard limit to any value below the existing 'hard' limit.
Only root can change the 'hard' limit.

By default NetBSD sets the 'soft' limits to (once) sensible values
and the 'hard' limits to match the system-wide constraints.
Most shell 'ulimit' commands set both the hard and soft limits to the
same value - often reducing the hard limit :-)

For instance the 'hard' memory limit is usually the amount of physical
memory in the system.  By default any user can set the 'soft' data limit
up to that value.

IMHO most of the default hard limits should match the soft limits (or be
a small multiple of them).

	David

-- 
David Laight: david@l8s.co.uk