From owner-freebsd-questions Tue May 28 21:26:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 6AF1937B405 for ; Tue, 28 May 2002 21:26:10 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.3) id g4T4Q8Ep018092; Tue, 28 May 2002 23:26:08 -0500 (CDT) (envelope-from dan) Date: Tue, 28 May 2002 23:26:08 -0500 From: Dan Nelson To: Nguyen-Tuong Long Le Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Change limit of datasize Message-ID: <20020529042608.GB9334@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.99i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (May 28), Nguyen-Tuong Long Le said: > I inherited a perl script from my senior grad student that can sort > some input data. When the input file is very large, perl prints an > error message "Out of memory!" and core dumps. > > I guess that this is related to the datasize limit and tried to > increase it using "unlimit datasize" but this doesn't seem to work. I > have FreeBSD 4.3-RELEASE and perl 5. I use csh. "unlimit datasize" will raise your limit to whatever hard limit your sysadmin has set. "limits -B" will display the current and max values for each resource (it'll print *-max and *-cur if they are different, otherwise it'll just print one line). There is also a systemwide hard limit, which defaults to 512MB, but you can raise it by editing /boot/loader.conf, setting "kern.maxdsiz=###" (in bytes, so 1gb = 1073741824), and rebooting. Simple sorting shouldn't take even 512MB of ram, though. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message