From owner-freebsd-performance@FreeBSD.ORG Tue May 6 12:48:36 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 2440437B401 for ; Tue, 6 May 2003 12:48:36 -0700 (PDT) Received: from ns1.vagner.com (ns1.vagner.com [65.39.87.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34CB643F3F for ; Tue, 6 May 2003 12:48:35 -0700 (PDT) (envelope-from george@vagner.com) Received: (from root@localhost) by ns1.vagner.com (8.12.8/8.12.8) id h46JmWxc099165; Tue, 6 May 2003 12:48:32 -0700 (MST) (envelope-from george@vagner.com) Received: from amd2000 (pcp01602196pcs.manass01.va.comcast.net [68.50.240.22]) by ns1.vagner.com (8.12.9/8.12.8av) with SMTP id h46JmSCC099155; Tue, 6 May 2003 12:48:29 -0700 (MST) (envelope-from george@vagner.com) Message-ID: <008b01c31408$7766de30$16f03244@vagner.com> From: "Laszlo Vagner" To: "agent dero" , References: <20030506152406.P70768@bluhayz.homeunix.org> Date: Tue, 6 May 2003 15:48:21 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=-12.9 required=4.0 tests=ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT,REFERENCES version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) X-Virus-Scanned: by AMaViS perl-11 X-Mailman-Approved-At: Tue, 06 May 2003 13:16:36 -0700 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: Tue, 06 May 2003 19:48:36 -0000 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. ----- Original Message ----- From: "agent dero" To: Sent: Tuesday, May 06, 2003 3:24 PM Subject: The magical missing 6 megabytes of mysterious RAM > I don't beleive it can be BIOS sharing the system RAM with other devices, > because my box that is in question has a 1MB Graphic card, and sits in the > corner. Absolutely no work is done on the box physically. And I think the > 1MB graphic card is enough to display BIOS and show the kernel and OS > booting. (even if no monitor is attached) > > I am almost confident that is the kernel loaded into memory. I haven't > seen much of a difference in real and availible memory between a custom > kernel, and GENERIC. But, before the messages in /var/log/ are createde > the FreeBSD boot manager must boot, and then it starts loading the kernel. > So I am 99% sure it is the kernel being loaded into the active RAM. > I will be able to test this more if I get a box with less RAM, that needs > a good compiled kernel. But I think the issue should be put to rest with, > the 6 "missing megabytes" being the kernel. (which must always be in the > physical RAM) > > -thanks! > --schnip-- > > Yes and no. You can't reuse any memory used for page tables, > > so that's "pure overhead". You also can't reuse any memory > > that has not been marked as swappable. If you allocate memory > > in the kernel, it will be permanently subtracted from the "avail" > > (it just doesn't give you another message to the effect of any > > chanes in "avail", because it would be printf'ing to the console > > all the time, if it did), since kernel memory is allocated as > > being type-stable. > > > --schnip to other message-- > > I think you missed my point - I wasn't saying that FreeBSD is hiding > > anything, nor was I talking about the "missing 6mb problem" directly. > > You pretty much repeated my point though - "Since the BIOS is where > > FreeBSD obtains the "real memory" number" - which is what I said, that > > the BIOS takes the physical RAM, subtracts what it needs for devices > > like video cards (that "borrow" from physical main memory), then reports > > that result to any OS/Apps/etc that ask for it. That is why my system > > doesn't show the 256Mb of memory it has in it, it shows something like > > 224Mb (32Mb is set aside for the video card).. > > > > Unless I am totally missing your point this morning.. :) > > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org" >