From owner-freebsd-stable@FreeBSD.ORG Sat Aug 13 08:33:17 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org 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 CF0E416A41F for ; Sat, 13 Aug 2005 08:33:17 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail24.syd.optusnet.com.au (mail24.syd.optusnet.com.au [211.29.133.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2806443D45 for ; Sat, 13 Aug 2005 08:33:16 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail24.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j7D8X3L6004211 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 13 Aug 2005 18:33:10 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j7D8X3SR021204; Sat, 13 Aug 2005 18:33:03 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j7D8WwkC021203; Sat, 13 Aug 2005 18:32:58 +1000 (EST) (envelope-from pjeremy) Date: Sat, 13 Aug 2005 18:32:57 +1000 From: Peter Jeremy To: Chris Message-ID: <20050813083257.GB13959@cirb503493.alcatel.com.au> References: <42FD08D3.2080300@childeric.freeserve.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42FD08D3.2080300@childeric.freeserve.co.uk> User-Agent: Mutt/1.4.2i Cc: freebsd-stable@freebsd.org Subject: Re: Memory requirements between releases X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2005 08:33:17 -0000 On Fri, 2005-Aug-12 21:38:43 +0100, Chris wrote: >The installation notes for 4.11 say, referring to i386 platform >" ...after installation, FreeBSD itself can be run in 4-8MB of RAM with >a pared-down kernel" > >The installation notes for 5.4 and 6 (the floppies README.TXT) say >"FreeBSD for the i386 requires ...at least 24 MB of RAM". > >Did the memory requirement really jump that much or is something >different being measured? As Kris said, you are measuring two different things. Note the phrase "after installation" in your first quote. Installation takes substantially more memory because FreeBSD needs to load a full-sized GENERIC kernel, allocate space for a RAM disk to hold the installation filesystem process and have enough RAM left over to actually run the installaton processes. Once you've installed FreeBSD, you can prune down the kernel and you don't need the RAM disk. That said, 5.x is larger than 4.x (which is larger than 3.x, etc). >I have on old tosh 110CT laptop with 24mb memory I want to set up as a >wireless router/NAT box but would prefer to use 6 or 5.4. Can I reduce >the amount of memory required? I have compiled a reduced kernel but it >swaps like mad when compiling. Kismet and deps took over 12 hours. Just >after boot and not doing anything it has about 2mb free and 17 processes >running. 24MB should be adequate as a SOHO wireless router/NAT box but doing compilations will stress it significantly (as you've noticed). It would be too small if you were going to run lots of applications (named, squid etc) 2MB free sounds about right. The Unix kernel sees free space as wasted space and tries to avoid having too much of it. You can add "inactive" to the free memory to get a better idea of how much RAM isn't being used, and the cache will shrink if processes need for RAM. As long as your system isn't paging during normal operation (normal operation for a firewall excludes compiling ports or the kernel), then you have enough RAM. 17 processes sounds a bit high. You can probably find some that aren't necessary - in particular, you probably only want one or two gettys. -- Peter Jeremy