From owner-freebsd-stable@FreeBSD.ORG Thu Mar 31 09:17:55 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F55716A4CE for ; Thu, 31 Mar 2005 09:17:55 +0000 (GMT) Received: from mail25.syd.optusnet.com.au (mail25.syd.optusnet.com.au [211.29.133.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3FEC43D3F for ; Thu, 31 Mar 2005 09:17:54 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) j2V9HqCi027063 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 31 Mar 2005 19:17:53 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])j2V9Hq7l075802; Thu, 31 Mar 2005 19:17:52 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)j2V9HqGt075801; Thu, 31 Mar 2005 19:17:52 +1000 (EST) (envelope-from pjeremy) Date: Thu, 31 Mar 2005 19:17:52 +1000 From: Peter Jeremy To: Ronald Klop Message-ID: <20050331091751.GG71384@cirb503493.alcatel.com.au> References: <20050331070409.GD46288@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i cc: freebsd-stable@freebsd.org Subject: Re: syscons options and memory use X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2005 09:17:55 -0000 On Thu, 2005-Mar-31 09:53:59 +0200, Ronald Klop wrote: >>In the last episode (Mar 31), Ronald Klop said: >>>The syscons manual page says: >>>" The following options will remove some features from the syscons >>> driver and save kernel memory. >>> [...] >>> SC_NO_SYSMOUSE >>> This option removes mouse support in the syscons driver. >>> The mouse daemon moused(8) will fail if this option is >>> defined. This option implies the SC_NO_CUTPASTE option >>> too. >>>" >>> >>>How much memory does this save (or how can I discover that)? Is it worth >>>it on a 96MB PentiumII laptop? It basically removes scmouse.c, sysmouse.c and a largish chunk of code in scvgarndr.c - my estimate is about 9KB. You can probably do better looking elsewhere. For loadable devices, looking at the module size is a good guideline. >How can I see the size of my kernel? server% size /boot/kernel/kernel text data bss dec hex filename 3045945 229911 978784 4254640 40ebb0 /boot/kernel/kernel server% Remember that this doesn't include dynamic memory allocated by the kernel which can be quite significant. Look at the "real memory" and "avail memory" lines in your boot dmesg to get a better idea of the basic kernel memory requirements. -- Peter Jeremy