From owner-freebsd-questions@FreeBSD.ORG Thu May 24 16:05:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2C36E16A41F for ; Thu, 24 May 2007 16:05:14 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id F25C013C465 for ; Thu, 24 May 2007 16:05:13 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pgh.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id D2196EBC78; Thu, 24 May 2007 12:05:12 -0400 (EDT) Date: Thu, 24 May 2007 12:05:11 -0400 From: Bill Moran To: "Janos Dohanics" Message-Id: <20070524120511.b41c16c2.wmoran@potentialtech.com> In-Reply-To: References: X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Out of memory during request 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: Thu, 24 May 2007 16:05:14 -0000 In response to "Janos Dohanics" : > > I'm using imapsync to transfer maildirs to a new server. One of the > mailboxes is about 4.7 GB. While into the syncing to about 3 GB, > imapsync quits with this message: > > > while processing LITERAL > Read: * 5330 FETCH (UID 5337 BODY[] ) > 12835 OK Fetch completed. > > Out of memory during request for 80 bytes, total sbrk() is 536813568 > bytes! > > I'm running imapsync on the target system, which is FreeBSD 6.2-STABLE > with 1 GB RAM. > > I'm wondering if I could adjust some resource settings to let the > imapsync job finish? Check the output from ulimit -a: ... data seg size (kbytes, -d) 524288 ... I'm pretty sure that limits the maximum amount of RAM a single process can allocate, and it seems to match up with your error. (That's the default value) ulimit -d 1000000000 should fix it. Odd program that allocates all that memory ... -- Bill Moran http://www.potentialtech.com