From owner-freebsd-performance@FreeBSD.ORG Wed May 7 00:10:51 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53B9D37B401 for ; Wed, 7 May 2003 00:10:51 -0700 (PDT) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id A934E43FB1 for ; Wed, 7 May 2003 00:10:48 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0555.cvx40-bradley.dialup.earthlink.net ([216.244.44.45] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19DJ4a-00006G-00; Wed, 07 May 2003 00:10:41 -0700 Message-ID: <3EB8B0F8.8C40066E@mindspring.com> Date: Wed, 07 May 2003 00:08:40 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Laszlo Vagner References: <20030506152406.P70768@bluhayz.homeunix.org> <008b01c31408$7766de30$16f03244@vagner.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4e85bb7e15dd54c0ca991ec6090960ce2350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: freebsd-performance@freebsd.org cc: agent dero Subject: Re: The magical missing 6 megabytes of mysterious RAM X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2003 07:10:51 -0000 Laszlo Vagner wrote: > typical BIOS chips are about 1 megabyte and there is an option in the > bios to copy the flash bios contents into physical ram for more performance > on some systems (some can be disabled too). > > My idea is that everything before the bios and including the kernel is > copied to > ram. naturally you couldnt run the kernel out of the flash memory or off > the hard disk. Additional kernel drivers would take more ram also. This would only make the memory reported by CMOS different from the memory reported by the BIOS. Since the memory reported by the CMOS is never printed for you to see, that still leaves the kernel for the "real" vs. "avail" difference. BTW, if you read the code, you will see that the BIOS call used gets memory "extents"; the holes in these extents are mapped devices, BIOS, whatever, as reported by the BIOS. It's accounted in "real". To do what you want, you would need to explicitly modify the BIOS on your hardware to *not* count the flash as "mirrored BIOS". Best suggestion is: treat it like a read-only disk, and boot from it normally: let someone else (the loader) do the copy to RAM. -- Terry