From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760611AbdLRUpX (ORCPT ); Mon, 18 Dec 2017 15:45:23 -0500 Received: from mga04.intel.com ([192.55.52.120]:40431 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752789AbdLRUpU (ORCPT ); Mon, 18 Dec 2017 15:45:20 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,423,1508828400"; d="scan'208";a="159875846" Subject: Re: [patch V163 27/51] x86/mm/pti: Populate user PGD To: Peter Zijlstra References: <20171218114215.239543034@linutronix.de> <20171218115255.827361623@linutronix.de> <93e88e2c-50fc-49a6-7113-d9b64cf70fbd@intel.com> <20171218204105.bs74dkixlbwfegb5@hirez.programming.kicks-ass.net> Cc: Thomas Gleixner , LKML , x86@kernel.org, Linus Torvalds , Andy Lutomirsky , Borislav Petkov , Greg KH , keescook@google.com, hughd@google.com, Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Rik van Riel , Boris Ostrovsky , Juergen Gross , David Laight , Eduardo Valentin , aliguori@amazon.com, Will Deacon , daniel.gruss@iaik.tugraz.at, Dave Hansen , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" From: Dave Hansen Message-ID: Date: Mon, 18 Dec 2017 12:45:13 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171218204105.bs74dkixlbwfegb5@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/18/2017 12:41 PM, Peter Zijlstra wrote: >> I also don't think the user_shared area of the fixmap can get *that* >> big. Does anybody know offhand what the theoretical limits are there? > Problem there is the nr_cpus term I think, we currently have up to 8k > CPUs, but I can see that getting bigger in the future. It only matters if we go over 512GB, though. Is the per-cpu part of the fixmap ever more than 512GB/8k=64MB? In any case, it's not hard to make a little loop. I think the common case, at least is that we only do 4 PGDs.