Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1476359ybt; Sat, 27 Jun 2020 09:23:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqNuXnWR15SRxcz4a9LIaxFkXvGZhtC+rlZE/cJvCK4tCT8ksXUZ78vPNYG9xMIApV6Luz X-Received: by 2002:a17:906:97cb:: with SMTP id ef11mr7252667ejb.69.1593275003423; Sat, 27 Jun 2020 09:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593275003; cv=none; d=google.com; s=arc-20160816; b=VhHn8Vl9CgtE7D4WIBArPz9KdnQOFgsvLHpgZVvriUHexeLopQ3WgxoUXmoNpi5Srl eCR5FYC3MsVszUakMj6cxSk/bYc5iaFdOsYXhCqJcKZWjWv+V9H8QiCIWGKr+qJuaE2b MhSdMKAHb+87FrM4n/V9hXcRw71jDhbIdxYt7VrsAo91Vdh1cslOUtde88QWb8p8OCbt Xq3jo4iww11Ly0wTk8gCtFuH+r2Uj/vygLWj7OiysQhU/iwCVZyrwUxDen/OpdzH4VQ4 hYXHL5qHNnnNdPUCYseFshttiBrTSG9jOwlXHgsdPBSx15JV9H++TBs7gDO0wTKBxX5T CN0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=d2nGKnDNsfGo+T6bDiJUevR3z7PJsbSGEM8ozMY3Q1c=; b=O3bwWZrUBebcBDu1RRK4cukfgLD7DCok+OfCnQIS98DGp038v+qlFsktVDh2IC88qe NmR/FHw2p3wCmxlUN/ez4b5bjn2LNdrmhTWhy8sN+4pd8VspQ5VlIjVqPRwmb/HF4qvp d+F9EcxdJtIehdukpWuwiY7DQF294i6f5W2mMlH/WZVkemwSc5W7jxEI1zAuP0o0Bxq5 JW3Uc23rNNVJOi49E65uDVt+J0k898Vb9TZJ1lQYmz+t5E/DgpJiVnDKQ8mps+Lq6dCh exA0Q7yG7wrL0ma7QaSl6jR0ARBP/mhk9hdwU5EQaJrFuaZVGGb5VzV+n+TUX2ceH9nh +lHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="NFwcnfh/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si9008255eja.379.2020.06.27.09.23.00; Sat, 27 Jun 2020 09:23:23 -0700 (PDT) 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=@joelfernandes.org header.s=google header.b="NFwcnfh/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbgF0QVt (ORCPT + 99 others); Sat, 27 Jun 2020 12:21:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbgF0QVt (ORCPT ); Sat, 27 Jun 2020 12:21:49 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64992C061794 for ; Sat, 27 Jun 2020 09:21:49 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id a11so2758142ilk.0 for ; Sat, 27 Jun 2020 09:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d2nGKnDNsfGo+T6bDiJUevR3z7PJsbSGEM8ozMY3Q1c=; b=NFwcnfh/hEGQUYaebr5ifTcevv4BMj/OUSW0MFghU+HbUWf6KpGale9QHb5RwDiaBx aJAMQm43iK9a0We+F+fOwGtm09RZi99VihP6XW8Vt7QCFtXFA3WqRg2S4p5M2jHdUTBr tCwv0tvLARFVswsztggS3t1TgS7+ic/u0PK8A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d2nGKnDNsfGo+T6bDiJUevR3z7PJsbSGEM8ozMY3Q1c=; b=GNp9xJrg8MdEP/R0JVdUtYNsP4vRrJE76AZcZExVmq89HItnLhnuMQZXSVvPWRubcQ TtcDnvlVqN1DIAY2pSrhALirauSs72B+p0tY0biOIyFMwtCpsIMSbIga/zuTQEFc+OGk PAqCdPtXGF3995BVIY4HDbY88gVGadSKrGth/XCGo8M/ck2FnsnwbeyJc4U5ReYjn39D 3qONoIypLBCH3AbGLyEpUarGxPmc8Rj9N4FRi4BmrUGiSN8cE/8Q19Tkn+S1d7P2575/ Vxe2nPf6d+VrbGcvzQGck60bxNeiOK7Tlv1ELftS93h4qhoaRvQozKPNS3Jm4Ngyl/ZK 5HOg== X-Gm-Message-State: AOAM533ytOFkfh9H+vX2JZXDc7QIBDlDEiDkHCVqPWBGtwjvSE8cvqDP YL09viBcWB8hps6qjz8wct2QWhYW7ttmLGxnj0GWpw== X-Received: by 2002:a92:c0c8:: with SMTP id t8mr8832465ilf.176.1593274908687; Sat, 27 Jun 2020 09:21:48 -0700 (PDT) MIME-Version: 1.0 References: <20200626151028.GA538235@google.com> In-Reply-To: <20200626151028.GA538235@google.com> From: Joel Fernandes Date: Sat, 27 Jun 2020 12:21:36 -0400 Message-ID: Subject: Re: [RFC PATCH 00/13] Core scheduling v5 To: Vineeth Remanan Pillai Cc: Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Linus Torvalds , Linux List Kernel Mailing , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Ingo Molnar , Kees Cook , Thomas Gleixner , Greg Kerr , Phil Auld , Aaron Lu , Aubrey Li , "Li, Aubrey" , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , Paul Turner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 26, 2020 at 11:10 AM Joel Fernandes wrote: > [..] > > What do you think about having a separate cgroup for coresched? > > Both coresched cgroup and prctl() could co-exist where prctl could > > be used to isolate individual process or task and coresched cgroup > > to group trusted processes. > > This sounds like a fine idea to me. I wonder how Tejun and Peter feel about > having a new attribute-less CGroup controller for core-scheduling and just > use that for tagging. (No need to even have a tag file, just adding/removing > to/from CGroup will tag). Unless there are any major objections to this idea, or better ideas for CGroup users, we will consider proposing a new CGroup controller for this. The issue with CPU controller CGroups being they may be configured in a way that is incompatible with tagging. And I was also thinking of a new clone flag CLONE_CORE (which allows a child to share a parent's core). This is because the fork-semantics are not clear and it may be better to leave the behavior of fork to userspace IMHO than hard-coding policy in the kernel. Perhaps we can also discuss this at the scheduler MC at Plumbers. Any other thoughts? - Joel