From owner-freebsd-current@FreeBSD.ORG Wed Jun 25 22:49:07 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EABE37B401 for ; Wed, 25 Jun 2003 22:49:07 -0700 (PDT) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id E20B444005 for ; Wed, 25 Jun 2003 22:49:06 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfirs.dialup.mindspring.com ([165.247.203.124] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19VPd3-00016F-00; Wed, 25 Jun 2003 22:49:06 -0700 Message-ID: <3EFA8910.6E271781@mindspring.com> Date: Wed, 25 Jun 2003 22:48:00 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Silbersack References: <20030625002841.X7607@odysseus.silby.com> <3EF95C9D.2CE63283@mindspring.com> <20030625123457.J7607@odysseus.silby.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4f37d47cd87416ed1b665d7de99b431a5350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: current@freebsd.org Subject: Re: Best way to get max KVA setting? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2003 05:49:07 -0000 Mike Silbersack wrote: > I found the thread in question, but I didn't see a patch. ARGH. There was a simultaneous off-list discussion; here is the scrubbed part of what I sent; it's a patch, but it's not a diff; sorry for the confusion. -- Terry ----------------------------------------------------------------- The correct place to hack the is /usr/src/sys/kern/subr_param.c. Specifically, every place it references "physpages", the number is way, way too big. At the very top of the routine init_param2(), put something like: long ephyspages; /* effective physical pages */ long clamp = 3 * 1024 * 256; /* 3G, in pages */ ephyspages = physpages; /* clamp effective memory to real KVA limits */ if (ephyspages > clamp) ephyspages = clamp; And then everywhere it references "physpages" below that, change it to "ephyspages" instead. In the version of the file I have, it looks like you could override everything at boot time; I didn't check to see how much (or if) this had changed in -current, so it may be that you could tweak everything you needed to then, instead. -----------------------------------------------------------------