Increasing the datasize limit
Christopher Cowart
ccowart at rescomp.berkeley.edu
Tue Nov 4 13:52:09 PST 2008
Hello,
I have a large data-crunching job once a week that needs some more heap
space. How do I go about increasing the datasize limit for a process?
Here's what I've tried:
| $ sudo su -
| crunch# limits
| Resource limits (current):
| cputime infinity secs
| filesize infinity kB
| datasize 524288 kB
| stacksize 65536 kB
| coredumpsize infinity kB
| memoryuse infinity kB
| memorylocked infinity kB
| maxprocesses 5547
| openfiles 11095
| sbsize infinity bytes
| vmemoryuse infinity kB
| crunch# limit datasize 1048576
| crunch# limits
| Resource limits (current):
| cputime infinity secs
| filesize infinity kB
| datasize 524288 kB
| stacksize 65536 kB
| coredumpsize infinity kB
| memoryuse infinity kB
| memorylocked infinity kB
| maxprocesses 5547
| openfiles 11095
| sbsize infinity bytes
| vmemoryuse infinity kB
| crunch# grep -C 8 '^[^#].*datasize' /etc/login.conf
| default:\
| :passwd_format=md5:\
| :copyright=/etc/COPYRIGHT:\
| :welcome=/etc/motd:\
| :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
| :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin ~/bin:\
| :nologin=/var/run/nologin:\
| :cputime=unlimited:\
| :datasize=unlimited:\
| :stacksize=unlimited:\
| :memorylocked=unlimited:\
| :memoryuse=unlimited:\
| :filesize=unlimited:\
| :coredumpsize=unlimited:\
| :openfiles=unlimited:\
| :maxproc=unlimited:\
| :sbsize=unlimited:\
According to setrlimit(2), "Only the super-user may raise the maximum
limits," but apparently, I can't even increase the limit as the
superuser.
What am I missing?
--
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081104/04192ed5/attachment.pgp
More information about the freebsd-questions
mailing list