From owner-freebsd-questions@FreeBSD.ORG Sun Aug 5 18:31:01 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA90616A41A for ; Sun, 5 Aug 2007 18:31:01 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.freebsd.org (Postfix) with ESMTP id 3484213C442 for ; Sun, 5 Aug 2007 18:31:00 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from atlantis.dyndns.org (athedsl-70343.home.otenet.gr [87.203.156.21]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l75IUsvN027285; Sun, 5 Aug 2007 21:30:55 +0300 Message-ID: <46B6175E.8010408@otenet.gr> Date: Sun, 05 Aug 2007 21:30:54 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: fbsd2@a1poweruser.com References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to know the size of RAM memory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2007 18:31:01 -0000 fbsd2 wrote: > I tried what people said to do and I get different values that do not match > what the bios say. > Why is there so large a difference? > How can this be explained??? > > # /root >sysctl -a | grep -i memory > Virtual Memory: (Total: 2871K, Active 91444K) > Real Memory: (Total: 37324K Active 12756K) > Shared Virtual Memory: (Total: 15088K Active: 9864K) > Shared Real Memory: (Total: 3284K Active: 2700K) > Free Memory Pages: 20896K > > > # /root >dmesg | grep -i memory > real memory = 67108864 (64 MB) > avail memory = 56094720 (53 MB) > > bios show > base 640k > extended 64512k > cache 384k > total = 65536k > > > Though the answer from sysctl maybe somewhat confusing, the answer from dmesg is exactly what you get from BIOS: 64MB = 65536 K just like your bios reports. As for the base / extended /cache distinction in the BIOS, these belong to the ancient "DOS" era and have nothing to do with modern operating systems.