From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 05:24:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACF61106566B for ; Thu, 11 Sep 2008 05:24:50 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 3958C8FC12 for ; Thu, 11 Sep 2008 05:24:49 +0000 (UTC) (envelope-from artemb@gmail.com) Received: by ey-out-2122.google.com with SMTP id 6so79502eyi.7 for ; Wed, 10 Sep 2008 22:24:48 -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:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=AJnvjT4/njiQ0H7SEcXw0ao7cae9kdfVUWxNXGl6IxA=; b=pyc/IVrW/uNCHHrIng8Jvt7+D+Ffzlo2K2yfFNER2rbhoc0sSvDN6hq18sAe5B2dzQ fUZJg54fSWvxnGfR5yImse3rPSiLT37wqCK+LVcOCF8mzx51O5M66KMLftx3QQDiQtxJ N9oUBUakqFk8GmKdtQKq5iZlVtOnlyofQlFts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=nP5O9V3ldsfcKJlwocaVLveUcGYSZbhOEeneUxEcGt+4b3XVd1bsupx47LVjDZU2YJ AFQ1T8kuvSwFGdqPfhrUI1mPf+q4LJwqoTRj0ejQKjtkGK8XcM/8VL3D6zO3C6W5kisx UzeqYV8UBt6ayeocXOk0cZBveIdHorA+u2AUg= Received: by 10.210.41.14 with SMTP id o14mr2750364ebo.16.1221110688792; Wed, 10 Sep 2008 22:24:48 -0700 (PDT) Received: by 10.210.128.7 with HTTP; Wed, 10 Sep 2008 22:24:48 -0700 (PDT) Message-ID: Date: Wed, 10 Sep 2008 22:24:48 -0700 From: "Artem Belevich" Sender: artemb@gmail.com To: "Alan Cox" In-Reply-To: <48C8A78C.6070608@cs.rice.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C8A78C.6070608@cs.rice.edu> X-Google-Sender-Auth: 2ea955c463c95f66 Cc: freebsd-hackers@freebsd.org Subject: Re: Increasing KVM on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2008 05:24:50 -0000 > SVN rev 180308 on 2008-07-05 19:34:33Z by alc > > Enable the creation of a kmem map larger than 4GB. > Submitted by: Tz-Huan Huang > > Make several variables related to kmem map auto-sizing static. > Found by: CScout I did apply Tz-Huan Huang's patch that he pointed to shortly after you've announced your patch. As far as I can tell it's identical to SVN rev 180308 changes. > Second, there is no room for a kmem map greater than 4GB unless the overall > KVM size is greater than 6GB. Specifically, a >4GB kmem map isn't possible > with 6GB KVM because the kmem map would overlap the kernel's code, data, and > bss segment. > > If you're able to apply the above kern_malloc.c change to your kernel, then > I should be able to describe how to increase your KVM beyond 6GB. I'd be glad to give it a try. -- --Artem