From owner-freebsd-questions@FreeBSD.ORG Fri Feb 26 09:04:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BDAF106564A for ; Fri, 26 Feb 2010 09:04:17 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id EB6488FC08 for ; Fri, 26 Feb 2010 09:04:16 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nkw7K-0003fM-6t for freebsd-questions@freebsd.org; Fri, 26 Feb 2010 10:04:14 +0100 Received: from gw2.masterhost.ru ([87.242.97.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Feb 2010 10:04:14 +0100 Received: from citrin by gw2.masterhost.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Feb 2010 10:04:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Anton Yuzhaninov Date: Fri, 26 Feb 2010 09:04:00 +0000 (UTC) Organization: Vega Lines: 21 Sender: Message-ID: References: X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: gw2.masterhost.ru X-Comment-To: Brad Penoff User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/2.6.31-gentoo-r6 (i686)) Subject: Re: premature ENOMEM 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: Fri, 26 Feb 2010 09:04:17 -0000 On Thu, 25 Feb 2010 22:49:22 -0800, Brad Penoff wrote: BP> I have a 32-bit machine with 2 GB running FreeBSD 8. I have a complex BP> application that starts getting ENOMEM once the resident memory is BP> about 200 MB. I adjusted the appropriate /boot/loader.conf and BP> /etc/login.conf settings resulting in an increase in the "limit" BP> values to around 2 GB, but still the complex application gives me BP> ENOMEM at 200 MB. Including swap space, I should be able to handle 3 BP> GB in an application. I need help understanding how I can enable this BP> or why I cannot. Don't forget that increase of kern.maxdsiz will decrease space for mmap. And by default malloc in FreeBSD 8 uses mmap. Try to set kern.maxdsiz to small value (may be 0 will be ok). http://docs.freebsd.org/cgi/mid.cgi?200207291839.g6TIduVw055637 -- WBR, Anton Yuzhaninov