Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1440350pxb; Sat, 17 Apr 2021 18:38:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJlYyc7sMRrXJivZEsqfaKl01+OhNRcGzTcAA2c1+CZnt2xhHEbH1PTvfjNeAJU8eWKS2q X-Received: by 2002:a17:907:2662:: with SMTP id ci2mr14995260ejc.467.1618709914474; Sat, 17 Apr 2021 18:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618709914; cv=none; d=google.com; s=arc-20160816; b=w0inRdc5j0C2zpiGR6G/L8OGfdx6VPaUf92X8ndoEjPPrmhpRkz/LesSghr67PpYbe hkozg9yeuD9VB7feX8vuPxy31rGQep4ZIkTpLs73Q1ZdIOcjnL7Y+DI3fVvmcUFR1Tc/ RZKjDt2CF+vAZGEvZGEe1fNc+L4DA4NLqwA4wkcwEH50APrQUA5/JgtsAPr4VA7U8FKm nsijP+CeBpO7wOZbUXH38r5pDoFFpoBMYsDwVCDmiR8FQ8FO3rLxAaqd4h2eqxRsnZOu 0fchNY5AwoE2bpPwSfWBE3TtL/jJDeRBt38X+i+0lTfv+bH9XSuVMCIiZsFSzii+N7Sg yXlQ== 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=yaFXTcx/Gh4E+HfFQ4jD16wC3q3f0eeM4Aa9EV+gi50=; b=xY3RBaDnzPpsz6YsgFHZb0yXhWogANXB5hBfORyLYIyOWYpYB6V96VSWIRaU9glj3C jGwzndTsjV4M0qmbQtAyt5FqKEGJD2se2C3A2h/5PofCq1zMzFLFK3G8/KhnsHKnodDo rxmEyEqqGs25HTWI20I/atY5NeG9mM9OzCoNFfiDDbVVkKATgKosOhZ7rZ+B6NKtbtIT JNXrg3cq6lNN3a775evtdRF/+gfxFeUx116CPBE2azq3jY9ZfxHMY0czi9w6f4QCsblM 1dPLScw5BanxbShOL0ey7OPVyYnUIpmoOISAaoKVWdWyTriN7lWl2UplxD80pcDWO5T1 RJFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=RowUFWNA; 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 v5si8917854edc.166.2021.04.17.18.38.11; Sat, 17 Apr 2021 18:38:34 -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=RowUFWNA; 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 S236454AbhDRBfg (ORCPT + 99 others); Sat, 17 Apr 2021 21:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbhDRBfg (ORCPT ); Sat, 17 Apr 2021 21:35:36 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D268BC06174A for ; Sat, 17 Apr 2021 18:35:08 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id d23so20673761qko.12 for ; Sat, 17 Apr 2021 18:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yaFXTcx/Gh4E+HfFQ4jD16wC3q3f0eeM4Aa9EV+gi50=; b=RowUFWNA362OQaYBiWLizm0irFYonCk/6pUKjfE4bn/NdWaPPINpz52MK2ykN4oJKE gj04DOKeW8PgPCD1dtovSeSGReRb1MwLyPwnKjO3A6Qo95mSzJrmIPvH4UHMGNSnAikj KlmdqeiVtk+SdHj5wbk9BTKlCwGLMXO6FSeeQ= 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=yaFXTcx/Gh4E+HfFQ4jD16wC3q3f0eeM4Aa9EV+gi50=; b=JOn8qLDLLF4Ygbxl3accOjH77Cfa5rEILaDTBAmkHJ2LsQI40GBJFBVBb1gy3yRjt8 U7fd8iWmXjA0If2Om3Mlfk0oRbDQhrJSrIV6jriMlfpf3dR6GPgeCvJetcjVQJQc6GCu dAVpAUSGjrB6shnr6OhHFShLqwRRMH2kFU6gerOvFPwNBjzFhteplE1g3gRyOkg6JDfi y8z9H/waapfateRj0o9y3vQBKis7mnzkrG/nd7S1RBjnXzdzFJZ/1Qd1KK8pRsUbPsnc WbCBHmJdeOyJ46u8m62XiaDg1i7DSfGBOw4Rols2MelOQ+NpFzi7ZfRjUtIM0ivsEy/X ZzNg== X-Gm-Message-State: AOAM531YaYi0sao02WjL9PgncesVd2kRV+dFPGX3MmtoBE2gPLx5K+0T /V/ejCN8WheMxBT69BUY0+30Zg== X-Received: by 2002:ae9:d61c:: with SMTP id r28mr5880647qkk.462.1618709707966; Sat, 17 Apr 2021 18:35:07 -0700 (PDT) Received: from localhost ([2620:15c:6:411:5970:b016:6052:152]) by smtp.gmail.com with ESMTPSA id i6sm7104899qkf.96.2021.04.17.18.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Apr 2021 18:35:07 -0700 (PDT) Date: Sat, 17 Apr 2021 21:35:07 -0400 From: Joel Fernandes To: Tejun Heo , Peter Zijlstra Cc: Hao Luo , "Hyser,Chris" , Josh Don , Ingo Molnar , Vincent Guittot , Valentin Schneider , Mel Gorman , LKML , Thomas Glexiner , Michal =?iso-8859-1?Q?Koutn=FD?= , Christian Brauner , Zefan Li Subject: Re: [PATCH 0/9] sched: Core scheduling interfaces Message-ID: References: <20210401131012.395311786@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 10:16:12AM -0400, Tejun Heo wrote: > Hello, > > On Mon, Apr 05, 2021 at 02:46:09PM -0400, Joel Fernandes wrote: > > Yeah, its at http://lore.kernel.org/r/20200822030155.GA414063@google.com > > as mentioned above, let me know if you need any more details about > > usecase. > > Except for the unspecified reason in usecase 4, I don't see why cgroup is in > the picture at all. This doesn't really have much to do with hierarchical > resource distribution. Besides, yes, you can use cgroup for logical > structuring and identificaiton purposes but in those cases the interactions > and interface should be with the original subsystem while using cgroup IDs > or paths as parameters - see tracing and bpf for examples. Personally for ChromeOS, we need only the per-task interface. Considering that the second argument of this prctl is a command, I don't see why we cannot add a new command PR_SCHED_CORE_CGROUP_SHARE to do what Tejun is saying (in the future). In order to not block ChromeOS and other "per-task interface" usecases, I suggest we keep the CGroup interface for a later time (whether that's through prctl or the CGroups FS way which Tejun dislikes) and move forward with per-task interface only initially. Peter, any thoughts on this? thanks, - Joel