From owner-freebsd-questions@FreeBSD.ORG  Thu Sep 25 02:46:03 2008
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
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 DC48F1065695
	for <freebsd-questions@freebsd.org>;
	Thu, 25 Sep 2008 02:46:03 +0000 (UTC)
	(envelope-from fahadullah@gmail.com)
Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225])
	by mx1.freebsd.org (Postfix) with ESMTP id B3B868FC12
	for <freebsd-questions@freebsd.org>;
	Thu, 25 Sep 2008 02:46:03 +0000 (UTC)
	(envelope-from fahadullah@gmail.com)
Received: by rv-out-0506.google.com with SMTP id b25so200859rvf.43
	for <freebsd-questions@freebsd.org>;
	Wed, 24 Sep 2008 19:46:03 -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:to
	:subject:mime-version:content-type;
	bh=UNvKe4wcSzJiR5mY+Y22rzI6ZhNygzOTQ+79pVTl3Tk=;
	b=nlE9qHJU9EPMDSLw+/3rKaSwnd6Jy2x/QSzIt8qgnCTv7RwAzbOlqNBf2KWRBygu0Y
	rznv/dWSmFw39rC+RRsi4afbDtY5HjsI2C4iTrzuZhMi5bpkwG3dMu9w46qjZZDZuo6f
	y3tdJWFbyoLMxx4y0HlLUOZM69kxrFpTaYaAI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:to:subject:mime-version:content-type;
	b=dwgqSh+CLOByamaQJHp2IsmQs4aT6wezw6d0CPQ6IBSjGzzZgGWgx+86y2jAKtYpk9
	1w2Rhs97JAbyt2GgIT9atTtYWlXO8/c+Uqypp++J98i32FsRc3an7DUBkbAYrZaW/+5o
	TcQugsJ7DMDx3XGGjrd/1a5HpchOJV87VWXjM=
Received: by 10.114.73.1 with SMTP id v1mr8909259waa.110.1222310763394;
	Wed, 24 Sep 2008 19:46:03 -0700 (PDT)
Received: by 10.115.73.7 with HTTP; Wed, 24 Sep 2008 19:46:03 -0700 (PDT)
Message-ID: <db346c9d0809241946o30fb3f61o34618740086ffded@mail.gmail.com>
Date: Wed, 24 Sep 2008 19:46:03 -0700
From: "Mohd Fahadullah" <fahadullah@gmail.com>
To: freebsd-questions@freebsd.org
MIME-Version: 1.0
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: Incorrect physical memory when hw.physmem is set
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2008 02:46:03 -0000

Hello,

There is a peculiar case when physical memory limit is set through
hw.physmem and Freebsd sets usable memory to much lesser value.
In cases with 8 GB of RAM where the physical memory address space is
remapped above 4 GB and if we set hw.physmem to 4 GB then Freebsd actually
skips the segments remapped above 4 GB. So we end up with much less memory
than 4 GB depending upon the memory hole in the top of 4 GB address space.

I would like to know if someone else came across the same issue.

Thank you,

Mohd