From owner-freebsd-ia64 Sat Feb 15 10:54:56 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2914C37B406 for ; Sat, 15 Feb 2003 10:54:55 -0800 (PST) Received: from eagle.sharma-home.net (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F31343FDD for ; Sat, 15 Feb 2003 10:54:52 -0800 (PST) (envelope-from adsharma@eagle.sharma-home.net) Received: by eagle.sharma-home.net (Postfix, from userid 500) id EEA158500; Sat, 15 Feb 2003 11:00:30 -0800 (PST) Date: Sat, 15 Feb 2003 11:00:30 -0800 From: Arun Sharma To: Marcel Moolenaar Cc: freebsd-ia64@FreeBSD.ORG Subject: Re: Maxmem should be bytes ? Message-ID: <20030215190030.GA31217@sharma-home.net> References: <200302080111.h181Bkr26574@unix-os.sc.intel.com> <20030214002346.GA1267@athlon.pn.xcllnt.net> <20030214010244.GA1344@athlon.pn.xcllnt.net> <20030215021642.GA1901@athlon.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030215021642.GA1901@athlon.pn.xcllnt.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Feb 14, 2003 at 06:16:42PM -0800, Marcel Moolenaar wrote: > > i386 does something equivalent. > > Your patch changes the granularity for Maxmem from pages to bytes. > On all architectures it should be pages. On i386 you see atop(), > which is the opposite of ia64_ptob(). Ah, you're right. I saw one incorrect usage of Maxmem and assumed that Maxmem should be in bytes. So only necessary change then is: --- pmap.c- Sat Feb 15 09:47:50 2003 +++ pmap.c Sat Feb 15 09:48:15 2003 @@ -363,7 +363,7 @@ * enough sparse, causing us to (try to) create a huge VHPT. */ vhpt_size = 15; - while ((1<