How do I set process memory ulimits system wide on OpenBSD?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Douglas Held
Date: Saturday, January 1, 2011 - 7:54 am

I've installed OpenBSD 4.7, i386 in a VMWare virtual machine with 3GB RAM.

I find I can't allocate more than 1GB to any process as root.  ksh
ulimit builtin provides me this when I try to set the hard limit
unlimited.

Even so, when I set the hard and soft limits for, say, 'ulimit -d' as
root and then su my application user, the specified limit is
unattainable.

# ulimit -d
1048576
# ulimit -Hd unlimited
# ulimit -d unlimited
# ulimit -d
1048576
# su - xyz
$ ulimit -d
524288
$ ulimit -d 1024575
ksh: ulimit: exceeds allowable limit

Other operating systems have a configuration such as
/etc/security/limits.conf.  What is the equivalent in OpenBSD?


-- 
Douglas Held
doug@douglasheld.net
+447986527654
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How do I set process memory ulimits system wide on OpenBSD?, Douglas Held, (Sat Jan 1, 7:54 am)