Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2006 14:04:56 -0500
From:      David Kelly <dkelly@hiwaay.net>
To:        Francisco Reyes <lists@stringsutils.com>
Cc:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: How to increase memory for an application?
Message-ID:  <F072EEDC-6DC3-4CC5-94AE-E142D2E11E81@hiwaay.net>
In-Reply-To: <cone.1145735932.540393.55795.1000@zoraida.natserv.net>
References:  <cone.1145735932.540393.55795.1000@zoraida.natserv.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F072EEDC-6DC3-4CC5-94AE-E142D2E11E81>