Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2008 13:52:00 -0800
From:      Christopher Cowart <ccowart@rescomp.berkeley.edu>
To:        freebsd-questions@freebsd.org
Subject:   Increasing the datasize limit
Message-ID:  <20081104215200.GA37896@hal.rescomp.berkeley.edu>

next in thread | raw e-mail | index | archive | help

--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=3Dmd5:\
|         :copyright=3D/etc/COPYRIGHT:\
|         :welcome=3D/etc/motd:\
|         :setenv=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK,FTP_PASSIVE_MODE=3DYES=
:\
|         :path=3D/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin =
/usr/local/bin /usr/X11R6/bin ~/bin:\
|         :nologin=3D/var/run/nologin:\
|         :cputime=3Dunlimited:\
|         :datasize=3Dunlimited:\
|         :stacksize=3Dunlimited:\
|         :memorylocked=3Dunlimited:\
|         :memoryuse=3Dunlimited:\
|         :filesize=3Dunlimited:\
|         :coredumpsize=3Dunlimited:\
|         :openfiles=3Dunlimited:\
|         :maxproc=3Dunlimited:\
|         :sbsize=3Dunlimited:\

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?

--=20
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley

--PEIAKu/WMn1b1Hv9
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iQIcBAEBAwAGBQJJEMQAAAoJEIGh6j3cHUNP7bkQAJK/AebakLJRQYudUjgudhsb
CnRC1Y9iV134YXLNc9lyPEoK38R3l54R5egL7FkdNvR9To91ydKCujBeJlBaYhVb
Q8h0qa0j44ZMvRh9gEczr1VRV3p9Cp46FDmwt0uiwcBrXkPHMSUxAEFhn7YsRPuu
u8p9gmy54Ql1wjmp3jwbhIx2YsN6IQFIZpOsZ8cfIn49HoO3JupWZq5j8v3LZnF6
wqIq/lHXRIHtCgJiRaHUV6++2mwqjdvBzd5eNGXlcyTj9LAo7C5mE60JUYDwskTz
Wy9uMb7MNiGqucpOvZUmA7oj+8UxIjoN2vzVv6W45DEbqxL0+DHwvXb0nYsOW+B9
m+EwNsrQaMuNi4/nzFJMAtfNkC8EI8CcECvqC2bIsTt51feL3FHOJ3R4mAoIKmk7
Yj7+Jif8aQQHnXWgTPTcuNDyfWj/vE90Hvu9DhcbrlA3Y+hQ1UPzgO7GHnG02NID
jC/1lN4m05n/I2LE3r+Sj3VZpIv1JXXYedVtSU+F+FJkSuazKWv0q7kj61QP84/t
XUHu8xiRIL3qy1wZrcpgJqR7Jlsn1c7dJ/H/ZRsWYmFXNALYz6KaKX3+Ip94Xmlu
xzyGUrSqwI8GYZwcRJC3ba2CfjTRxysiPdWOdZzW/2CEzz3O+M7KJQcV4VwXzuVg
SMxKg+EoR+CQiDPmqOcv
=qFS2
-----END PGP SIGNATURE-----

--PEIAKu/WMn1b1Hv9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081104215200.GA37896>