From owner-freebsd-ia32@FreeBSD.ORG Mon Sep 22 03:34:13 2008 Return-Path: Delivered-To: freebsd-ia32@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 437DD106567A for ; Mon, 22 Sep 2008 03:34:13 +0000 (UTC) (envelope-from fahadullah@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id 11DD78FC17 for ; Mon, 22 Sep 2008 03:34:12 +0000 (UTC) (envelope-from fahadullah@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1181334rvf.43 for ; Sun, 21 Sep 2008 20:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=XphJjhRDnBMS+NpdEolyHYIhchj+uCtdzudrTMtz2Yw=; b=Fq8smjtJqU2E1itBiCNQL/kRkA0PQQtN/Xswt8GddWWlSjfgBkq7oCNswBVjQZG1XA 0TOgLe8i9b9WhS2iBUd6PEKCEd/muxp038BwK+2mQsyFbASamvplF0Ytd71/+rWtIGEo iq1Z9rVdfauAQXhI17EVOI5Rz7N6KtpMPtqV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=AH1bpcwFOYmUxB5imJ/VZtEFEGlCn4UdOSTAloH5bmS8JCheAhtCRlf+1AJ/FEzRuK QogDqHrQJFgtoBqfnR9nzqicz3bLSYx5f1ukAwPl6Ld6OeR+xIVDE/l5/dRENbAw+8q0 f2pawrqywmxJxPuDxVsOZ2TQxlwhdeGDI3Ggg= Received: by 10.114.92.2 with SMTP id p2mr3810878wab.223.1222052907107; Sun, 21 Sep 2008 20:08:27 -0700 (PDT) Received: by 10.115.73.7 with HTTP; Sun, 21 Sep 2008 20:08:27 -0700 (PDT) Message-ID: Date: Sun, 21 Sep 2008 20:08:27 -0700 From: questions Sender: fahadullah@gmail.com To: freebsd-ia32@freebsd.org In-Reply-To: MIME-Version: 1.0 References: X-Google-Sender-Auth: 74bc3e4a3d94e84b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Suspicious physical memory map from BIOS X-BeenThere: freebsd-ia32@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD on the IA-32 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2008 03:34:13 -0000 Hi, I am sorry if this isn't the correct mailing list to ask my question. Actually, I posted this on freebsd-questions list but didn't get any reply. I couldn't find any better mailing list to post this question on. I have some problem with physical memory being getting reported incorrectly on Freebsd 6.3. I have a Xeon series 5300 CPU with 4GB of RAM installed but BIOS call actually returns following usable physical memory map - base address = 0, length = 640K base address = 1M, length = 2.5G base address = 4G, length = 5.5G How am I getting this third segment? Also, in function getmemsize() in machdep.c, why the variable 'Maxmem' is set to 'Maxmem*4' when hw.physmem and the highest page number obtained from physical memory map don't match? Any help with this would be wonderful. Thanks, Fahad From owner-freebsd-ia32@FreeBSD.ORG Mon Sep 22 22:29:36 2008 Return-Path: Delivered-To: freebsd-ia32@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC1CD10657A4 for ; Mon, 22 Sep 2008 22:29:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2F1548FC1A for ; Mon, 22 Sep 2008 22:29:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m8MMTNqB064204; Mon, 22 Sep 2008 18:29:30 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-ia32@freebsd.org Date: Mon, 22 Sep 2008 18:06:25 -0400 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809221806.25680.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Mon, 22 Sep 2008 18:29:30 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8310/Mon Sep 22 14:58:13 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Re: Suspicious physical memory map from BIOS X-BeenThere: freebsd-ia32@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD on the IA-32 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2008 22:29:36 -0000 On Sunday 21 September 2008 11:08:27 pm questions wrote: > Hi, > > I am sorry if this isn't the correct mailing list to ask my question. > Actually, I posted this on freebsd-questions list but didn't get any reply. > I couldn't find any better mailing list to post this question on. > > I have some problem with physical memory being getting reported incorrectly > on Freebsd 6.3. I have a Xeon series 5300 CPU with 4GB of RAM installed but > BIOS call actually returns following usable physical memory map - > > base address = 0, length = 640K > base address = 1M, length = 2.5G > base address = 4G, length = 5.5G > > How am I getting this third segment? The 2.5g -> 4g window of address space is used for non-memory things like APICs (local APICs and I/O APICs), PCI memio, etc. > Also, in function getmemsize() in machdep.c, why the variable 'Maxmem' is > set to 'Maxmem*4' when hw.physmem and the > highest page number obtained from physical memory map don't match? It's not set to that, it is used for a printf. Maxmem is a count of pages. Each page on i386 holds 4K. The printf wants to print out the number of kilobytes, so it uses 'Maxmem * 4' to convert from number of 4k pages, to number of K. -- John Baldwin