Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 15 Jun 2018 22:22:21 -0000 Received: from mga02.intel.com ([134.134.136.20]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fTx6p-0007Em-KK for speck@linutronix.de; Sat, 16 Jun 2018 00:22:20 +0200 Date: Fri, 15 Jun 2018 15:22:14 -0700 From: Andi Kleen Subject: [MODERATED] Re: [patch V3 12/12] x86/apic: Ignore secondary threads if nosmt=force Message-ID: <20180615222214.GN30690@tassilo.jf.intel.com> References: <20180615162801.748896789@linutronix.de> <20180615162948.440477502@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180615162948.440477502@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: > nosmt=force makes the APIC detection code ignore the secondary SMT siblings > completely, so they even do not show up as possible CPUs. What's the point of this? Please describe a concrete use case or drop. Also it doesn't seem to describe what is actually implemented by this patch. > > This is not fully equivalent to disabling SMT in the BIOS because the low > level SMT enabling in the BIOS can result in partitioning of resources > between the siblings, which is not undone by just ignoring them. Some CPUs > can use the full resources when their sibling is not onlined, but this is > depending on the CPU family and model and it's not well documented whether > this applies to all partitioned resources. That means depending on the > workload disabling SMT in the BIOS might result in better performance. This paragraph is quite confused and doesn't really match what the actual micro architecture does. I would recommend to drop it. -Andi