From owner-freebsd-hackers@FreeBSD.ORG Fri May 30 07:45:12 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 E94DB1065674 for ; Fri, 30 May 2008 07:45:12 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: from mail.qubeconnect.com (mail.qubeconnect.com [202.190.74.25]) by mx1.freebsd.org (Postfix) with SMTP id 2C8E08FC2F for ; Fri, 30 May 2008 07:45:11 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: (qmail 33615 invoked by uid 0); 30 May 2008 15:18:46 +0800 Received: from mail.qubeconnect.com (HELO prophet.alphaque.com) (202.190.74.25) by mail.qubeconnect.com with SMTP; 30 May 2008 15:18:46 +0800 Received: from prophet.alphaque.com (localhost [127.0.0.1]) by prophet.alphaque.com (8.14.2/8.14.2) with ESMTP id m4U5wFNT033106; Fri, 30 May 2008 13:58:15 +0800 (MYT) (envelope-from dinesh@alphaque.com) Date: Fri, 30 May 2008 13:58:14 +0800 From: Dinesh Nair To: Jeremy Chadwick Message-ID: <20080530135814.390321ee@prophet.alphaque.com> In-Reply-To: <20080522133819.GA45578@eos.sc1.parodius.com> References: <48356E75.1050105@thearle.com.au> <20080522133819.GA45578@eos.sc1.parodius.com> Organization: Alphaque. Anytime. Anywhere. X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:45:13 -0000 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@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 | +=========================================================================+