Subject: Re: Cannot ulimit -m
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Paul Hoffman <phoffman@proper.com>
List: netbsd-help
Date: 01/28/2002 15:19:30
At 10:53 PM +0100 1/28/02, Manuel Bouyer wrote:
>On Mon, Jan 28, 2002 at 07:53:59AM -0800, Paul Hoffman wrote:
>>  When I give the command "ulimit -m unlimited", the shell (either bash
>>  or ksh) reports:
>>
>>     ulimit: cannot modify limit: Operation not permitted
>>
>>  How do I allow a particular user to set his memory limit higher?
>
>If you look at the hard limit with 'ulimit -H' and then try to set to this
>limit, does it work ?

ulimit -H reports "unlimited".

ulimit -a reports:

core file size (blocks)     unlimited
data seg size (kbytes)      131072
file size (blocks)          unlimited
max locked memory (kbytes)  83418
max memory size (kbytes)    250256
open files                  64
pipe size (512 bytes)       1
stack size (kbytes)         2048
cpu time (seconds)          unlimited
max user processes          80
virtual memory (kbytes)     133120

He still get "out of memory" problems way before I would expect them, 
which is why I am trying to increase the users's memory size.