From owner-cvs-all@FreeBSD.ORG Mon Feb 28 22:21:46 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 503D116A4CE; Mon, 28 Feb 2005 22:21:46 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 962C443D2D; Mon, 28 Feb 2005 22:21:43 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j1SMMwmS023495; Mon, 28 Feb 2005 15:22:58 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <422398F7.6010004@samsco.org> Date: Mon, 28 Feb 2005 15:19:35 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Wes Peters References: <200502282142.j1SLgvhh067909@repoman.freebsd.org> <200502281359.42589.wes@softweyr.com> In-Reply-To: <200502281359.42589.wes@softweyr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: Wes Peters cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/i386 machdep.c src/sys/kern kern_mib.c src/sys/sys sysctl.h systm.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 22:21:46 -0000 Wes Peters wrote: > On Monday 28 February 2005 01:42 pm, Wes Peters wrote: > >>wes 2005-02-28 21:42:57 UTC >> >> FreeBSD src repository >> >> Modified files: >> sys/i386/i386 machdep.c >> sys/kern kern_mib.c >> sys/sys sysctl.h systm.h >> Log: >> Add a sysctl that records the amount of physical memory in the machine. > > > In case you're wondering why anyone would want this, vs. the already > existing hw.physmem, consider: > > hw.physmem: 526737408 > hw.usermem: 509272064 > hw.realmem: 535691264 > > The difference between 'realmem' and 'physmem' should always be the same for > a given device, unless BIOS settings have altered the memory map somehow. > We use this as a quick check to verify the BIOS settings haven't been > altered (at least enough to change the memory map). You'd be astonished > how much the physmem setting can bounce around on supposedly identical > hardware. > So how does this interact with the PCI memory hole at the upper end of the 4GB boundary? Scott