From owner-freebsd-hardware@FreeBSD.ORG Wed Aug 9 21:12:57 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C92016A4DF for ; Wed, 9 Aug 2006 21:12:57 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id E20AD43D4C for ; Wed, 9 Aug 2006 21:12:56 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k79LCp7L066329; Wed, 9 Aug 2006 17:12:51 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: "Jin Guojun [VFFS]" Date: Wed, 9 Aug 2006 17:12:47 -0400 User-Agent: KMail/1.9.1 References: <200608090908.k79988pY086073@fire.jhs.private> <200608091431.50183.jhb@freebsd.org> <44DA46D3.3040504@lbl.gov> In-Reply-To: <44DA46D3.3040504@lbl.gov> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608091712.48401.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Wed, 09 Aug 2006 17:12:51 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1642/Wed Aug 9 10:30:49 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Julian Stacey , freebsd-hardware@freebsd.org Subject: Re: Real and available memory? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Aug 2006 21:12:57 -0000 On Wednesday 09 August 2006 16:34, Jin Guojun [VFFS] wrote: Please don't use HTML-only e-mail. >> Well, that's where the missing 40 meg is. :) The kernel text (including >> any modules and preloaded mfsroot's) aren't include in the 'avail memory' >> count. > > This is not where the memory goes. > The MFS root is probably not allocated yet at this point. Huh? Of course it is! You load it from /boot/loader into RAM at the same point when you load the kernel. All of the kernel text plus any loaded modules are not considered available memory when 'avail memory' is output. (Along with a few other pages needed for things like crashdumps, some VM bootstrapping data structures, etc.) You can't load a MFS root after the kernel is booted because if it's the root filesystem, there's no place for it to be loaded from once the kernel boots. -- John Baldwin