From owner-freebsd-alpha@FreeBSD.ORG Tue Feb 14 10:52:49 2006 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1226016A420 for ; Tue, 14 Feb 2006 10:52:49 +0000 (GMT) (envelope-from valerio.daelli@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 735B643D45 for ; Tue, 14 Feb 2006 10:52:48 +0000 (GMT) (envelope-from valerio.daelli@gmail.com) Received: by nproxy.gmail.com with SMTP id x37so392331nfc for ; Tue, 14 Feb 2006 02:52:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EUE9IghVE9IN15wC1BeEowgg69rQUtJq9znuODajmykNL7GLB8Gs3JRqeYzEAInGVOor85H6acsRWqVvDnPpEo5iyTzD8y8sdw9JJiJIXVgOo0WToRmEae/+1l8aldV0Cl7nJ47JxD3ReGskZ+ymiVyLXLUInAwh+Bm4Gf/u1Hg= Received: by 10.48.49.7 with SMTP id w7mr1217024nfw; Tue, 14 Feb 2006 02:52:46 -0800 (PST) Received: by 10.49.43.12 with HTTP; Tue, 14 Feb 2006 02:52:46 -0800 (PST) Message-ID: <27dbfc8c0602140252o6ae09399taaedac8266c09c64@mail.gmail.com> Date: Tue, 14 Feb 2006 11:52:46 +0100 From: Valerio daelli To: freebsd-alpha@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Error in sysctl realmem on alpha X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2006 10:52:49 -0000 Hi we have an AlphaServer DS10 with FreeBSD 5.4 with 256Mb of RAM. root@webgate:~ uname -a FreeBSD webgate.ifom-ieo-campus.it 5.4-RELEASE-p8 FreeBSD 5.4-RELEASE-p8 #0: Thu Nov 17 13:13:48 CET 2005 =20 eldon@webgate.ifom-firc.it:/usr/src/sys/alpha It looks like the sysctl of realmem is a bit to high: root@webgate:~ sysctl -a|egrep '(real|phys|user)mem' hw.physmem: 265486336 hw.usermem: 225648640 hw.realmem: 2174864064512 but the realmem of dmesg is right root@webgate:~ dmesg |grep mem real memory =3D 265486336 (253 MB) avail memory =3D 250503168 (238 MB) Maybe everything is due to a shift of 13 bits in /usr/src/sys/alpha/alpha/machdep.c: realmem =3D alpha_ptob(Maxmem) and the realmem is again shifted 13 bits (so it is shifted twice instead of once) in /usr/src/sys/kern/kern_mib.c: val =3D ctob(realmem); Sorry I am not really sure I am not so strong in C and kernel programming is a bit far from my knowledge. Thanks Valerio Daelli