Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp375442imp; Wed, 20 Feb 2019 01:44:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IYKJS9Iun6TBDura5ToxNqo+3iB7ogq+1hlSxLJo9b2QMSvPGA3OXQQaHhLRji/DWDjcyOW X-Received: by 2002:a17:902:b102:: with SMTP id q2mr19671156plr.266.1550655869612; Wed, 20 Feb 2019 01:44:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550655869; cv=none; d=google.com; s=arc-20160816; b=Plcz+AR9WEa2tYTKo9jTE3YLPB5nESbInTqGhi5yIKxMowetSXUQ7OiFa8vS+5sVSJ +FTL+RPlOfuuN5FtbeExXYgKRV7MyfFMbkEK9PpRSQ2yzYABmTzJOpA8cznKPgdk0l6Q c9Yfw37otfSpiZVN7FxUayNyRs6P5OhpkZ1cGXEIWrCuYYrsSGlpjXPrJQ0bOGwjVhfT NPp32ZOD3SKHqBwXcJpXb1B285xbtLgQfvf+P0r70+XjyVkZZUOIN0txfm8d6JGWRMKb uGGBQyA0vhaCc05Vp2SWuYniJsk3RqHw6mLzxwtoO6d16I6RcuTywvBsOSyFR3UKf7tR HJ4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xVaQVBmN5RK/avp2ECXjZHgBwBLk1QHGNLRfuNiYHN0=; b=BBJc/tutFCM99ByrMrgIU7HmqOiARkF2j2yOyAEhUsL1d1NVtFQcSsTFbLhxZBX1q3 B0PABVAPKMRnf43PrpNvoYBtuXN8E9ijB5nCrg09WiCQ/ifsgIUvkAtmagIBsXDZ4N3w w/L1Z9joBbI+0mgdq+TY+aWggw3HZhYuPxMuAHxcQu9mhIgvbDMrUpa/MRLAChg5J82Y +r089gCCk/UKgT3lLGLVrEyZ5xgAvPhKeRg54YOJ9Mf7CM/kP2WU0VIX+Z6j+4P5QZlG XNCechtk/lqx3kp7LxHMeaoqYpRZNMGZCqChuv6ljwSZtERcAk+uhU33niz1QSEWm13D wKhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=uOFoFF1+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q17si7464695pll.343.2019.02.20.01.44.14; Wed, 20 Feb 2019 01:44:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=uOFoFF1+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727061AbfBTJnT (ORCPT + 99 others); Wed, 20 Feb 2019 04:43:19 -0500 Received: from merlin.infradead.org ([205.233.59.134]:40998 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbfBTJnT (ORCPT ); Wed, 20 Feb 2019 04:43:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xVaQVBmN5RK/avp2ECXjZHgBwBLk1QHGNLRfuNiYHN0=; b=uOFoFF1+9rqmK8DHs5ILUh1Au I3BIthDQa/B9LHgwtilsu2ZrxpJbfFhCneAC3vDRM9Wx1VGUqRDLkf/E2tf6EW6SWoP5GSYNQ0PVo /dm9Z9p7kxinWfeI9LLsd7GppShXnRpun0nD6X1Diy19i/5kpilUg/83vQli9pOPH6MfAofK3cXz/ uAgo9gCCGERSp4rlD7qs3vt1QGFXb3EhqcqZaoAFUIk6OdAnvU1qPUx9jgsQqAml8Z7Al9KUBy86z N0RrHbYmXOj59k7cm8HONQzLIBKs3Why0G7OXo1y/IgZhUGmAscovuX+YuICW34fWyyFuW1Yoyt6F UuIC5noog==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwOP4-0005Na-CD; Wed, 20 Feb 2019 09:42:58 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0284D28B675A1; Wed, 20 Feb 2019 10:42:55 +0100 (CET) Date: Wed, 20 Feb 2019 10:42:55 +0100 From: Peter Zijlstra To: Greg Kerr Cc: mingo@kernel.org, tglx@linutronix.de, Paul Turner , tim.c.chen@linux.intel.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, subhra.mazumdar@oracle.com, fweisbec@gmail.com, keescook@chromium.org Subject: Re: [RFC][PATCH 00/16] sched: Core scheduling Message-ID: <20190220094255.GE32494@hirez.programming.kicks-ass.net> References: <20190218165620.383905466@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? On Tue, Feb 19, 2019 at 02:07:01PM -0800, Greg Kerr wrote: > Thanks for posting this patchset Peter. Based on the patch titled, "sched: A > quick and dirty cgroup tagging interface," I believe cgroups are used to > define co-scheduling groups in this implementation. > > Chrome OS engineers (kerrnel@google.com, mpdenton@google.com, and > palmer@google.com) are considering an interface that is usable by unprivileged > userspace apps. cgroups are a global resource that require privileged access. > Have you considered an interface that is akin to namespaces? Consider the > following strawperson API proposal (I understand prctl() is generally > used for process > specific actions, so we aren't married to using prctl()): I don't think we're anywhere near the point where I care about interfaces with this stuff. Interfaces are a trivial but tedious matter once the rest works to satisfaction. As it happens; there is actually a bug in that very cgroup patch that can cause undesired scheduling. Try spotting and fixing that. Another question is if we want to be L1TF complete (and how strict) or not, and if so, build the missing pieces (for instance we currently don't kick siblings on IRQ/trap/exception entry -- and yes that's nasty and horrible code and missing for that reason). So first; does this provide what we need? If that's sorted we can bike-shed on uapi/abi.