Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754179AbcLIQtu (ORCPT ); Fri, 9 Dec 2016 11:49:50 -0500 Received: from mga07.intel.com ([134.134.136.100]:33778 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752429AbcLIQtt (ORCPT ); Fri, 9 Dec 2016 11:49:49 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,324,1477983600"; d="scan'208";a="796198202" Subject: Re: [RFC, PATCHv1 00/28] 5-level paging To: "Kirill A. Shutemov" , Ingo Molnar References: <20161208162150.148763-1-kirill.shutemov@linux.intel.com> <20161209050130.GC2595@gmail.com> <20161209103722.GE30380@node.shutemov.name> Cc: "Kirill A. Shutemov" , Linus Torvalds , Andrew Morton , x86@kernel.org, Thomas Gleixner , Ingo Molnar , Arnd Bergmann , "H. Peter Anvin" , Andi Kleen , Andy Lutomirski , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org From: Dave Hansen Message-ID: <0117384c-e591-2a91-3eab-1af0b0c9f9c9@intel.com> Date: Fri, 9 Dec 2016 08:49:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161209103722.GE30380@node.shutemov.name> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 677 Lines: 12 On 12/09/2016 02:37 AM, Kirill A. Shutemov wrote: > On other hand, large virtual address space would put more pressure on > cache -- at least one more page table per process, if we make 56-bit VA > default. For a process only using a small amount of its address space, the mid-level paging structure caches will be very effective since the page walks are all very similar. You may take a cache miss on the extra level on the *first* walk, but you only do that once per context switch. I bet the CPU is also pretty aggressive about filling those things when it sees a new CR3 and they've been forcibly emptied. So, you may never even _see_ the latency from that extra miss.