Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751142AbeAPRbx (ORCPT + 1 other); Tue, 16 Jan 2018 12:31:53 -0500 Received: from merlin.infradead.org ([205.233.59.134]:54306 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750796AbeAPRbw (ORCPT ); Tue, 16 Jan 2018 12:31:52 -0500 Date: Tue, 16 Jan 2018 18:31:15 +0100 From: Peter Zijlstra To: Joerg Roedel Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , jroedel@suse.de Subject: Re: [PATCH 06/16] x86/mm/ldt: Reserve high address-space range for the LDT Message-ID: <20180116173115.GG2228@hirez.programming.kicks-ass.net> References: <1516120619-1159-1-git-send-email-joro@8bytes.org> <1516120619-1159-7-git-send-email-joro@8bytes.org> <20180116165213.GF2228@hirez.programming.kicks-ass.net> <20180116171343.GB28161@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180116171343.GB28161@8bytes.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Jan 16, 2018 at 06:13:43PM +0100, Joerg Roedel wrote: > Hi Peter, > > On Tue, Jan 16, 2018 at 05:52:13PM +0100, Peter Zijlstra wrote: > > On Tue, Jan 16, 2018 at 05:36:49PM +0100, Joerg Roedel wrote: > > > From: Joerg Roedel > > > > > > Reserve 2MB/4MB of address space for mapping the LDT to > > > user-space. > > > > LDT is 64k, we need 2 per CPU, and NR_CPUS <= 64 on 32bit, that gives > > 64K*2*64=8M > 2M. > > Thanks, I'll fix that in the next version. Just lower the max SMP setting until it fits or something. 32bit is too address space starved for lots of CPU in any case, 64 CPUs on 32bit is absolutely insane.