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, [EMAIL PROTECTED]
========================================================================
Whom computers would destroy, they must first drive mad.

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to