From owner-freebsd-hackers@FreeBSD.ORG Thu May 22 13:27:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60B18106564A for ; Thu, 22 May 2008 13:27:27 +0000 (UTC) (envelope-from adrian@thearle.com.au) Received: from albert.thearle.com.au (albert.thearle.com.au [150.101.115.54]) by mx1.freebsd.org (Postfix) with SMTP id 936EE8FC13 for ; Thu, 22 May 2008 13:27:26 +0000 (UTC) (envelope-from adrian@thearle.com.au) Received: (qmail 96090 invoked by uid 0); 22 May 2008 13:00:44 -0000 Received: from 192.168.123.139 (adrian@thearle.com.au@192.168.123.139) by albert.thearle.com.au (envelope-from , uid 1009) with qmail-scanner-2.01 (clamdscan: 0.88.2/1512. spamassassin: 3.1.1. Clear:RC:1(192.168.123.139):. Processed in 0.157855 secs); 22 May 2008 13:00:44 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=kambah; d=thearle.com.au; b=ogoJOKuEjdBF/1IghrMA2oaMo87QqyD+mSEXi4OQdmRayYn74WXu2rGSVdrARjoj ; Received: from unknown (HELO ?192.168.123.139?) (adrian@thearle.com.au@192.168.123.139) by albert.thearle.com.au with SMTP; 22 May 2008 13:00:43 -0000 Message-ID: <48356E75.1050105@thearle.com.au> Date: Thu, 22 May 2008 23:00:37 +1000 From: Adrian Thearle User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Maximum memory allocation per process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2008 13:27:27 -0000 Hi Guys I have a problem with a perl script running out of memory. From my googling I have found that perl itself does not seem to impose any memory limits, and I have check ulimit and login.conf for any userclass limitations but found nothing that seems to be limiting my memory. I have 128MBytes of RAM and a 2Gbyte swap partition. I am currently running FreeBSD albert 6.2-STABLE FreeBSD 6.2-STABLE #11: Sun Sep 2 00:45:05 EST 2007 which I guess isn't exactly the latest... but the same thing happens on my REL7.0 Box The process (imapsync in this case) runs out of ram at pretty much 512MB. I read on a forum that BSD 6 imposes such a limit of 512MB per process, but i have found no where to tune this, or even see what it is. I have also read that there are two sysctl namely, kern.maxdsiz and kern.maxssiz, that can tune memory allocation but what happend to them in Freebsd 6. Your help is appreciated Adrian