Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp161542pxu; Wed, 25 Nov 2020 16:15:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVuc16ajF8BVnXLOvAnbtsDG93D61tLv4gMw0Veb+Zi1xw42sMkgzw3H/l9Ynl9YYEMByl X-Received: by 2002:aa7:dc53:: with SMTP id g19mr185298edu.256.1606349759101; Wed, 25 Nov 2020 16:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606349759; cv=none; d=google.com; s=arc-20160816; b=n3AfUK21WFoFozgO++cvP3mwqa2BdyrxsxwZ9MR9RYmalDfFjRVFeBrPt0wMudC5U3 ++Dd/Am2S4Hsq+kTy9/xXqZ77aAuklqLIc38JzccQvznPa/GiSTxPEx1TJAVXOdfgHBi hTeRGK5CR0ufZHIHkm+d3GvkG5IaytGpBzLsPDqsynY2jAUSGn8oRFBMb1Na5XXn8oIo n1qcLDapnVWOl7DhWtX1t4tCA23ag8K//PHzlKMAELu+ghQCAesyBUjVWid+mV7Zjhrq nbV02STRiLP0xokb3pj8OfhoWwsibRgg0tSKDMWxvUWwvdfuzOhrtxA5lB5VBSf1j1NQ 1BEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z6NXjr3K+FY5mGPgYCXq03BqNGRxlaPVVCO3wjYDZzA=; b=n10TI75Jw9qqNp+iUJ60qEAuc6VlB2FOGzmOtWzLuBn3/+VEUh4zO5qqli+gea5aIG Nw9UR5pO+9KdPbmwLAlk42e3M/IXZ0bnPrXPotrfNPXafA5f8Z1i5c1UGU/LJqucAxHR f7aj46wKQkBHQ7PU2uYvoc4JZMBaSL7YOzBfJDDzpoVYTMJZHHH4DV5r8V/Hl2cOAx1x EXHCMlHtwy+HMaDO3Zm5EePg38ZO0+WwZ8Tnojn3Mc3ZAkeUKDN5TaWbt6EpF9WkMm61 QA0pdd4HYYIzer1G0CydbkFwECLZfoIqaVCXtJWtyS0Jnl0mCEc74A8TBmfJq+eWZXYi PYfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DSKED720; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b22si2155021edn.380.2020.11.25.16.15.36; Wed, 25 Nov 2020 16:15:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DSKED720; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726721AbgKZALf (ORCPT + 99 others); Wed, 25 Nov 2020 19:11:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbgKZALe (ORCPT ); Wed, 25 Nov 2020 19:11:34 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43A60C0613D4 for ; Wed, 25 Nov 2020 16:11:33 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id b23so221538pls.11 for ; Wed, 25 Nov 2020 16:11:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Z6NXjr3K+FY5mGPgYCXq03BqNGRxlaPVVCO3wjYDZzA=; b=DSKED7202ns44VkkMrtJuNHtTFpWzX9NPKQXpgcREncWXADa3UQ4ZhvlKajieP1X5G M/RjJsDCUVHc8/sOM52caPtZfYf4XdfJcDGrbKDcFxCvOmF6e5SBtt7KYO4TVUGqQf3k 0J0X4nztFWRYIiZvPh1DIiEIov8sABpJS5GWUFYc1iKOX4+X976CJraoj4dubanggzEU g6dXddhMV/T4EWlRdFRYJ31Ry87XSf9q7EbDeq6u9QROy3PZmb6A2BfW4PQsqhx0eHu+ buFDGfatUvwrv1NYbWOTqZRLKG5nc5ygOANGJn/EgtsX0tjPxUnOPQ7DN0O/5cgcaEiJ wpLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Z6NXjr3K+FY5mGPgYCXq03BqNGRxlaPVVCO3wjYDZzA=; b=h6haoJB1lNKiPaCNdU3ZhNaOVy2fC24sYPYsGIRmUn0WAQs/Cuh0b1ymPwd5uN8p1r 4zH6tYdtrhyjn9JZ3xj12Lmi1iKTtQPvwsp8cTYVLBHtDexka4E7N26LMuG6p+2Pxtew zxr9JV4ceDMWEGfZWT9j/Ub+NKu1oHsVyb4hmE8N+aZnbBZXbl7Zs6DhyisTZW/jWEzs DjIolet1uliVFtQaVQni3G3oMXwaSXubXV+tNjrCACPvgzeWqXNakk/dmxmSdLKy8Lak bR+fp55bU+Qh2s2f3DKsXYXIe7uvG2OW6PU8suEZQ/xv7crI/YIQXMF05+aEEkKdwrOS Oyww== X-Gm-Message-State: AOAM5326wGv0NQjpIsc+qz5tZAikMEDjT9f8xhwQaTY5gEzz8oVWt72B yFV4wcsv/HCGXecP2/Wx2pc= X-Received: by 2002:a17:902:9891:b029:d8:fdf6:7c04 with SMTP id s17-20020a1709029891b02900d8fdf67c04mr351762plp.54.1606349492512; Wed, 25 Nov 2020 16:11:32 -0800 (PST) Received: from localhost (61-68-227-232.tpgi.com.au. [61.68.227.232]) by smtp.gmail.com with ESMTPSA id g85sm2868683pfb.4.2020.11.25.16.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 16:11:31 -0800 (PST) Date: Thu, 26 Nov 2020 11:11:28 +1100 From: Balbir Singh To: Peter Zijlstra Cc: "Joel Fernandes (Google)" , Nishanth Aravamudan , Julien Desfossez , Tim Chen , Vineeth Pillai , Aaron Lu , Aubrey Li , tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , vineeth@bitbyteword.org, Chen Yu , Christian Brauner , Agata Gruza , Antonio Gomez Iglesias , graf@amazon.com, konrad.wilk@oracle.com, dfaggioli@suse.com, pjt@google.com, rostedt@goodmis.org, derkling@google.com, benbjiang@tencent.com, Alexandre Chartre , James.Bottomley@hansenpartnership.com, OWeisse@umich.edu, Dhaval Giani , Junaid Shahid , jsbarnes@google.com, chris.hyser@oracle.com, Ben Segall , Josh Don , Hao Luo , Tom Lendacky , Aubrey Li , "Paul E. McKenney" , Tim Chen Subject: Re: [PATCH -tip 31/32] sched: Add a coresched command line option Message-ID: <20201126001128.GF163610@balbir-desktop> References: <20201117232003.3580179-1-joel@joelfernandes.org> <20201117232003.3580179-32-joel@joelfernandes.org> <20201125134537.GA2414@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201125134537.GA2414@hirez.programming.kicks-ass.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 25, 2020 at 02:45:37PM +0100, Peter Zijlstra wrote: > On Tue, Nov 17, 2020 at 06:20:01PM -0500, Joel Fernandes (Google) wrote: > > Some hardware such as certain AMD variants don't have cross-HT MDS/L1TF > > issues. Detect this and don't enable core scheduling as it can > > needlessly slow those device down. > > > > However, some users may want core scheduling even if the hardware is > > secure. To support them, add a coresched= option which defaults to > > 'secure' and can be overridden to 'on' if the user wants to enable > > coresched even if the HW is not vulnerable. 'off' would disable > > core scheduling in any case. > > This is all sorts of wrong, and the reason is because you hard-coded > that stupid policy. > > Core scheduling should always be available on SMT (provided you did that > CONFIG_ thing). Even on AMD systems RT tasks might want to claim the > core exclusively. Agreed, specifically if we need to have special cgroup tag/association to enable it. Balbir Singh.