From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 23:07:37 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDD1D16A4B3 for ; Wed, 15 Oct 2003 23:07:37 -0700 (PDT) Received: from VARK.homeunix.com (adsl-68-122-5-98.dsl.pltn13.pacbell.net [68.122.5.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2661E43FE0 for ; Wed, 15 Oct 2003 23:07:37 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.9/8.12.9) with ESMTP id h9G66XtU068333; Wed, 15 Oct 2003 23:06:33 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.9/8.12.9/Submit) id h9G66Wue068332; Wed, 15 Oct 2003 23:06:32 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Wed, 15 Oct 2003 23:06:32 -0700 From: David Schultz To: "Dag-Erling =?us-ascii:iso-8859-1?Q?Sm=F8rgrav?=" Message-ID: <20031016060632.GA68007@VARK.homeunix.com> Mail-Followup-To: "Dag-Erling =?us-ascii:iso-8859-1?Q?Sm=F8rgrav?=" , hackers@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: hackers@FreeBSD.ORG Subject: Re: real vs. avail memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2003 06:07:38 -0000 On Sun, Oct 12, 2003, Dag-Erling Smrgrav wrote: > I've gotten used to the fact that there is a small discrepancy between > real and available memory, but I was surprised to see the following in > dmesg on a new P4 system: > > real memory = 1073676288 (1023 MB) > avail memory = 1037799424 (989 MB) > > That's a full 40 MB difference... where does that memory go? is it > used for page maps or something like that? Unless this is related to Peter's recent machdep.c changes, the difference is probably just random chunks of memory that the BIOS decided to use. This could include a shadow copy of the BIOS, the BIOS data segment, maybe a frame buffer for a cheap integrated video card, etc. If you do a verbose boot, you'll get a list of the chunks of memory that are taken according to the BIOS.