From owner-freebsd-questions@FreeBSD.ORG Fri Apr 21 14:22:36 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAF9716A405 for ; Fri, 21 Apr 2006 14:22:36 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9756443D45 for ; Fri, 21 Apr 2006 14:22:36 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k3LEMVNu013307; Fri, 21 Apr 2006 09:22:31 -0500 (CDT) (envelope-from dan) Date: Fri, 21 Apr 2006 09:22:31 -0500 From: Dan Nelson To: Giuseppe Pagnoni Message-ID: <20060421142231.GA73063@dan.emsphone.com> References: <497ABD6A-3187-49C3-9A22-FB5E7918BC15@emory.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <497ABD6A-3187-49C3-9A22-FB5E7918BC15@emory.edu> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: limit datasize 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: Fri, 21 Apr 2006 14:22:37 -0000 In the last episode (Apr 21), Giuseppe Pagnoni said: > I am running into a memory problem when using large datasets. The > limit command shows: > > cputime unlimited > filesize unlimited > datasize 524288 kbytes > stacksize 65536 kbytes > > however, /etc/login.conf shows that the default setting is "unlimited": > > :datasize=unlimited:\ > > Any suggestion on how to increase the limits? The kernel imposes a hard limit on datasize that defaults to 512M (which is pretty small nowadays). You can raise it by adding "kern.maxdsize=4G" to /boot/loader.conf and rebooting. You can use "kern.maxssize" to adjust the hard stack limit, but it's rare that soemone needs to go above the default 64M. -- Dan Nelson dnelson@allantgroup.com