From owner-freebsd-questions@FreeBSD.ORG Tue Oct 31 17:43:16 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 2947E16A59C for ; Tue, 31 Oct 2006 17:43:16 +0000 (UTC) (envelope-from peo@intersonic.se) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB37743E0F for ; Tue, 31 Oct 2006 17:42:55 +0000 (GMT) (envelope-from peo@intersonic.se) X-Virus-Scanned: amavisd-new at inter-sonic.com Message-ID: <45478B2C.10708@intersonic.se> Date: Tue, 31 Oct 2006 18:43:08 +0100 From: Per olof Ljungmark Organization: Intersonic AB User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Bill Moran References: <45476E4E.4050107@intersonic.se> <20061031112939.36cbc714.wmoran@collaborativefusion.com> In-Reply-To: <20061031112939.36cbc714.wmoran@collaborativefusion.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: help increase process/kernel memory please 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, 31 Oct 2006 17:43:16 -0000 Bill Moran wrote: >> I'm running a Perl app that need lots of memory and I would like to make >> around 2G available to it, the box has 4G physical RAM. >> >> Which knob(s) should be tweaked? System is running 6-STABLE from around >> 1st of October. >> >> This is what I see when the process exits: >> Out of memory during "large" request for 528384 bytes, total sbrk() is >> 536416256 bytes >> >> I'm depending on a solution to this and would be a really happy person >> if someone could please guide me. > > What does 'ulimit -a' as the user running the process say? > > If the problem is apparent there, the associated docs should help. > Hmmm, ulimit is a sh command, I was using tcsh. The below is after the advise from Tom Judge to set "kern.maxdsiz="1610612736". I will try from here, thanks. $ ulimit -a cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 1572864 stack size (kbytes, -s) 65536 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 5547 open files (-n) 11095 virtual mem size (kbytes, -v) unlimited sbsize (bytes, -b) unlimited