From owner-freebsd-current@FreeBSD.ORG Sun Jul 21 08:19:21 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DC56C72D; Sun, 21 Jul 2013 08:19:21 +0000 (UTC) (envelope-from chris.torek@gmail.com) Received: from mail-vc0-x234.google.com (mail-vc0-x234.google.com [IPv6:2607:f8b0:400c:c03::234]) by mx1.freebsd.org (Postfix) with ESMTP id 79DF1A96; Sun, 21 Jul 2013 08:19:21 +0000 (UTC) Received: by mail-vc0-f180.google.com with SMTP id gf12so2975092vcb.11 for ; Sun, 21 Jul 2013 01:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1ffgzGBwyZ7ub7dQiGlHTq9vKnTMKv5C5otLsmC34Rw=; b=JXa/YonM8gzL15IS14J8HF5Xr4wwfaKNTFiHA1Iu99acRXv3ArNgov+fC/G4H5iXxJ zs2mxJqgnaDvddk5Y3yYPi4Q0vHr/FMRJPR0BiUKx/kWOeV8665L3w+ktBnBEmAiaQqv ARgGY/Iepf1dxtqepzjxgxyBaB6Vx8E5jB7Ni2PzP6gRDLJ8+y2phaHwPpXr8cS8Uxm7 PJoiT/9EB+HO+h+OzBr5Zt5nnwb4ubFdWaTB24uYIWbeyxda0h7ePU5DxZJ6UQhdGjmh V2bwgQC3q6oEM2FmZURVZrvhOAnIwZd05x5Fjat+RNlayWDRd7u4UXCanhmGeSqAHFM/ U6bg== MIME-Version: 1.0 X-Received: by 10.58.200.73 with SMTP id jq9mr7913402vec.53.1374394761086; Sun, 21 Jul 2013 01:19:21 -0700 (PDT) Received: by 10.220.187.197 with HTTP; Sun, 21 Jul 2013 01:19:21 -0700 (PDT) In-Reply-To: References: <201306190832.r5J8WZFE082135@elf.torek.net> Date: Sun, 21 Jul 2013 02:19:21 -0600 Message-ID: Subject: Re: expanding past 1 TB on amd64 From: Chris Torek To: alc@freebsd.org X-Mailman-Approved-At: Sun, 21 Jul 2013 11:31:28 +0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-current , neel@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 21 Jul 2013 08:19:21 -0000 (Apologies for delay in reply, family issues) I'd be fine with 4 TB instead of 16; and, at this point, with the latest patches, it's easily tuned. The auto-sizing of the direct map is not affected by sparse space as it keys off Maxmem, which is not actually physical size, but rather "one past last valid physical page". The direct map limit might not need to be "twice kernel virtual size" but on Intel memory-controller systems needs to be "greater than KVM size" due to moving DRAM up past the PCI hole. Unless the restriction that the direct-map area be a power of two size is removed, that winds up meaning "twice". (Removing the restriction seems easy enough=97instead of "pa | highbits" to obtain VA and "va &~ highbits" to obtain PA, just use "phys + offset" and "virt - offset". I didn't see a reason to bother with the effort, though.) Chris