Maximum memory allocation per process

Dinesh Nair dinesh at alphaque.com
Fri May 30 07:45:13 UTC 2008


On Thu, 22 May 2008 06:38:19 -0700, Jeremy Chadwick wrote:
> You need to modify some kernel settings via /boot/loader.conf and
> reboot.  Here's what we use on our production RELENG_6 and RELENG_7
> boxes:
> 
> # Increase maximum allocatable memory on a process to 2GB.
> # (We don't choose 3GB (our max RAM) since that would
> # exhaust all memory, and result in a kernel panic.)
> # Set default memory size as 768MB.
> # Maximum stack size is 256MB.
> #
> kern.maxdsiz="2048M"
> kern.dfldsiz="768M"
> kern.maxssiz="256MB"

for those of us who're booting off a stripped down freebsd and are not
using the 4th routines, are the above to be set before 'load /kernel' or
after 'load /kernel' ?

currently, loader.rc contains,

--- cut here ---
set console=comconsole
set hw.ata.atapi_dma="0"
set hw.ata.ata_dma="0"
set hw.ata.wc="0"
load /kernel
load -t mfs_root /mfsroot
boot
--- cut here ---

-- 
Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque.com                (0 0)   http://www.openmalaysiablog.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+


More information about the freebsd-hackers mailing list