From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 14:24:53 2005 Return-Path: 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 6036016A4CF for ; Wed, 2 Mar 2005 14:24:53 +0000 (GMT) Received: from foo-bar.inter-sonic.com (foo-bar.inter-sonic.com [212.247.8.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBE4043D46 for ; Wed, 2 Mar 2005 14:24:52 +0000 (GMT) (envelope-from peo@intersonic.se) Received: from [192.168.1.5] (grateful.i.inter-sonic.com [192.168.1.5]) by foo-bar.inter-sonic.com (Postfix) with ESMTP id 0D87AA6C52; Wed, 2 Mar 2005 15:24:49 +0100 (CET) Message-ID: <4225CCB0.6090103@intersonic.se> Date: Wed, 02 Mar 2005 15:24:48 +0100 From: Per olof Ljungmark User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <42246457.70200@intersonic.se> <20050301180845.GQ8778@dan.emsphone.com> In-Reply-To: <20050301180845.GQ8778@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: "'freebsd-questions@freebsd.org'" Subject: Re: Perl out of memory [sbrk()] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 14:24:53 -0000 Dan Nelson wrote: >>The following error occurs when a message has an attachment of more that >>approx 35MB in size: >>"Out of memory during "large" request for 67112960 bytes, total sbrk() >>is 487512064 bytes at /usr/local/bin/imapsync line 790." > > According to that output, perl was already using 464MB, and a malloc > request for 64MB failed, which is reasonable since the default hard > datasize limit on FreeBSD is 512MB. To raise it, put this in > /boot/loader.conf and reboot: > > kern.maxdsiz="1024M" That would be the cause yes, although I have to wait until the right moment to restart this box. Thank you for pointing this out. Per olof