From owner-freebsd-hackers@FreeBSD.ORG Fri May 30 07:46:57 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 251E01065674 for ; Fri, 30 May 2008 07:46:57 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0683A8FC23 for ; Fri, 30 May 2008 07:46:56 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id BCC201CC031; Fri, 30 May 2008 00:46:56 -0700 (PDT) Date: Fri, 30 May 2008 00:46:56 -0700 From: Jeremy Chadwick To: Dinesh Nair Message-ID: <20080530074656.GA27066@eos.sc1.parodius.com> References: <48356E75.1050105@thearle.com.au> <20080522133819.GA45578@eos.sc1.parodius.com> <20080530135814.390321ee@prophet.alphaque.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080530135814.390321ee@prophet.alphaque.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-hackers@FreeBSD.org, Adrian Thearle Subject: Re: Maximum memory allocation per process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2008 07:46:57 -0000 On Fri, May 30, 2008 at 01:58:14PM +0800, Dinesh Nair wrote: > 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 --- I believe these would either need to be set *before* loading the kernel, or, possibly it doesn't matter at all (they might be passed to the kernel itself during "boot"). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |