From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933427AbdLRU6J (ORCPT ); Mon, 18 Dec 2017 15:58:09 -0500 Received: from merlin.infradead.org ([205.233.59.134]:44394 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757558AbdLRU6H (ORCPT ); Mon, 18 Dec 2017 15:58:07 -0500 Date: Mon, 18 Dec 2017 21:57:32 +0100 From: Peter Zijlstra To: Dave Hansen 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" Subject: Re: [patch V163 27/51] x86/mm/pti: Populate user PGD Message-ID: <20171218205732.ql7ejvd743hceotf@hirez.programming.kicks-ass.net> References: <20171218114215.239543034@linutronix.de> <20171218115255.827361623@linutronix.de> <93e88e2c-50fc-49a6-7113-d9b64cf70fbd@intel.com> <20171218204105.bs74dkixlbwfegb5@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 18, 2017 at 12:45:13PM -0800, Dave Hansen wrote: > 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? Unlikely, I think the LDT (@ 32 pages / 128K) and the DS (@ 2*4 pages / 32K) are the largest entries in there.