How to increase memory for an application?
David Kelly
dkelly at hiwaay.net
Sun Apr 23 19:05:18 UTC 2006
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 at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.
More information about the freebsd-questions
mailing list