From owner-freebsd-questions@FreeBSD.ORG Tue Nov 4 21:52:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25DFA1065676 for ; Tue, 4 Nov 2008 21:52:09 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: from hal.rescomp.berkeley.edu (hal.Rescomp.Berkeley.EDU [169.229.70.150]) by mx1.freebsd.org (Postfix) with ESMTP id 118228FC19 for ; Tue, 4 Nov 2008 21:52:08 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: by hal.rescomp.berkeley.edu (Postfix, from userid 1225) id 4F0AD3C047A; Tue, 4 Nov 2008 13:52:02 -0800 (PST) Date: Tue, 4 Nov 2008 13:52:00 -0800 From: Christopher Cowart To: freebsd-questions@freebsd.org Message-ID: <20081104215200.GA37896@hal.rescomp.berkeley.edu> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline Organization: RSSP-IT, UC Berkeley User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Increasing the datasize limit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 21:52:09 -0000 --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--