From owner-freebsd-current@FreeBSD.ORG Tue Jul 1 06:42:42 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 A166437B401 for ; Tue, 1 Jul 2003 06:42:42 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BDE643F85 for ; Tue, 1 Jul 2003 06:42:42 -0700 (PDT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id 35A622ED434; Tue, 1 Jul 2003 06:42:42 -0700 (PDT) Date: Tue, 1 Jul 2003 06:42:42 -0700 From: Paul Saab To: Terry Lambert Message-ID: <20030701134242.GA79486@elvis.mu.org> References: <20030625002841.X7607@odysseus.silby.com> <3EF95C9D.2CE63283@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EF95C9D.2CE63283@mindspring.com> User-Agent: Mutt/1.4.1i 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: Tue, 01 Jul 2003 13:42:42 -0000 Terry Lambert (tlambert2@mindspring.com) wrote: > It was for a guy who was was running with PAE enabled on an > 8G machine, and the autotuning was shooting him in the foot > when it tried to grab enough memory to create kmem_map entries > for the 8G of RAM in his 2G KVA space, and its head exploded. Wrong, the big problem he had with the auto tuning code was that vm_kmem_size was overflowing and he was left with a 20MB kmem_map size instead of 200. Once alc fixed the the scaling for # of vnodes, or if we set maxvnodes to a sane value, we no longer saw panics due to kmem_map being too small. --- revision 1.126 date: 2003/06/11 05:18:59; author: ps; state: Exp; lines: +4 -4 Don't overflow when calculating vm_kmem_size. This fixes kmem_map too small panics on PAE machines which have odd > 4GB sizes (4.5 gig would render a 20MB of KVA for kmem_map instead of 200MB). Submitted by: John Cagle , jeff Reviewed by: jeff, peter, scottl, lots of USENIX folks ---