View Single Post
Old 9th August 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Let me try again, and I will try to be as clear as I can.

I showed you an excerpt from /etc/login.conf for i386. There are two lines that mention values for datasize. Please note, one says "cur" for "current", the other says "max" for "maximum":
Quote:
Originally Posted by jggimi View Post
Code:
staff:\
    :datasize-cur=512M:\
    :datasize-max=infinity:\
I also wrote:
Quote:
Originally Posted by jggimi View Post
...confirm you are using that 2GB maximum datasize, rather than the 512M default starting value for the "staff" class...
Your datasize is still only 512M, because you did not raise it to the 2GB maximum:
Quote:
Originally Posted by daemonfowl View Post
ulimit -a
Code:
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     0
data(kbytes)         524288
stack(kbytes)        4096
lockedmem(kbytes)    682913
memory(kbytes)       2045756
nofiles(descriptors) 512
processes            128
Here is a "howto" to raise your datasize to the 2GB maximum.

I have a user in the staff class using the ksh(1) shell, and I set the datasize using ulimit -d to 2GB. I then try to add one more MB and receive a failure notice.
Quote:
$ ulimit -a
time(cpu-seconds) unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 524288
stack(kbytes) 4096
lockedmem(kbytes) 336781
memory(kbytes) 998184
nofiles(descriptors) 1024
processes 128
$ ulimit -d 2048*1024
$ ulimit -d 2049*1024
/bin/ksh: ulimit: exceeds allowable limit
$ ulimit -a
time(cpu-seconds) unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 2097152
stack(kbytes) 4096
lockedmem(kbytes) 336781
memory(kbytes) 998184
nofiles(descriptors) 1024
processes 128
$

Last edited by jggimi; 9th August 2013 at 12:14 PM. Reason: typo. Later, added highlighting to the "howto"
Reply With Quote