From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 17 13:17:03 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3379C10656AA for ; Tue, 17 Aug 2010 13:17:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 045B28FC1C for ; Tue, 17 Aug 2010 13:17:03 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id A873046B91; Tue, 17 Aug 2010 09:17:02 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A0DD58A04F; Tue, 17 Aug 2010 09:17:01 -0400 (EDT) From: John Baldwin To: "Julian H. Stacey" Date: Tue, 17 Aug 2010 09:09:09 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100217; KDE/4.4.5; amd64; ; ) References: <201008171149.o7HBnMtp065687@fire.js.berklix.net> In-Reply-To: <201008171149.o7HBnMtp065687@fire.js.berklix.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008170909.09979.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 17 Aug 2010 09:17:01 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-hackers@freebsd.org, Paul Wootton Subject: Re: real memory falsely reports 8G, BIOS & avail memory reports 1G X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 13:17:03 -0000 On Tuesday, August 17, 2010 7:49:22 am Julian H. Stacey wrote: > John Baldwin wrote: > > On Monday, August 09, 2010 8:13:03 am Julian H. Stacey wrote: > > > Hi hackers@freebsd.org > > > A laptop here emits a puzzlingly dmesg to both 8.1-RC2 & 8.1-RELEASE: > > > real memory = 8572108800 (8175 MB) > > > avail memory = 1018789888 (971 MB) > > > BIOS reckons it has 1G. No panel to unscrew to inspect memory. > > > I don't beleive 8G. > > > > > > If this is a bug in FreeBSD detect code ? > > > I am ready to run test kernel patches againt 8.1-RELEASE > > > & report back if anyone has code. > > > (I have room to install a current too if necessary) > > > > > > Full dmesg here: > > > http://www.berklix.com/~jhs/hardware/laptops/novatech-8355/dmesg/ > > > > > > Cheers, > > > Julian > > > > Hmm, do you have dmidecode output? > > Hi, Thanks for interest, Yes here Yeah, I saw you post the details later in the thread and had forgotten to delete my reply. At one point the code to print out "real memory" was changed to use the DMI/SMBios information as when it is correct it gives a more accurate looking number (an even 8GB for example vs some number that is slightly smaller than 8GB). It looks like your DMI info is just very wrong resulting in a bogus number in the printf. However, it is only a cosmetic failure, it doesn't affect how the kernel runs or uses memory. -- John Baldwin