From owner-freebsd-questions@FreeBSD.ORG Sun Apr 23 19:05:18 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 0B54F16A404 for ; Sun, 23 Apr 2006 19:05:18 +0000 (UTC) (envelope-from dkelly@hiwaay.net) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE2CF43D64 for ; Sun, 23 Apr 2006 19:05:14 +0000 (GMT) (envelope-from dkelly@hiwaay.net) Received: (qmail 22912 invoked by uid 0); 23 Apr 2006 19:04:47 -0000 Received: from unknown (HELO ?10.0.0.6?) (216.186.148.249) by smtp6.knology.net with SMTP; 23 Apr 2006 19:04:47 -0000 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Kelly Date: Sun, 23 Apr 2006 14:04:56 -0500 To: Francisco Reyes X-Mailer: Apple Mail (2.749.3) Cc: Free BSD Questions list Subject: Re: How to increase memory for an application? 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: Sun, 23 Apr 2006 19:05:18 -0000 On Apr 22, 2006, at 2:58 PM, Francisco Reyes wrote: > How would I crease the memory allowed to a specific program? > > I looked at /etc/login.conf and there I see: > :datasize=unlimited:\ > :stacksize=unlimited:\ > :memorylocked=unlimited:\ > :memoryuse=unlimited:\ > :filesize=unlimited:\ > > Is this a kernel setting? > Looking at top, it seems the psql client got to 512MB before it > reported the error. Yes, it is set in the kernel. Then on top of that login.conf can limit it further. I put this in /boot/loader.conf: kern.maxdsiz="2G" kern.dfldsiz="2G" #hw.physmem="2G" kern.maxssiz="128M" Notice hw.physmem is commented out. Originally added when an early (prerelease) 6.0 did not automatically recognize more than 1G. Created all sorts of problems for ACPI which went away when the line was removed, and by that time the kernel properly automatically recognized installed RAM. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.