From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758270AbcIMNaS (ORCPT ); Tue, 13 Sep 2016 09:30:18 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:58795 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756637AbcIMNaN (ORCPT ); Tue, 13 Sep 2016 09:30:13 -0400 Date: Tue, 13 Sep 2016 15:27:14 +0200 (CEST) From: Thomas Gleixner To: Shaohua Li cc: "Yu, Fenghua" , "Luck, Tony" , "Anvin, H Peter" , Ingo Molnar , Peter Zijlstra , Tejun Heo , Borislav Petkov , Stephane Eranian , Marcelo Tosatti , David Carrillo-Cisneros , "Shankar, Ravi V" , Vikas Shivappa , "Prakhya, Sai Praneeth" , linux-kernel , x86 Subject: Re: [PATCH v2 06/33] Documentation, x86: Documentation for Intel resource allocation user interface In-Reply-To: <20160912041539.GA56347@csimstu-mbp.local.dhcp.thefacebook.com> Message-ID: References: <1473328647-33116-7-git-send-email-fenghua.yu@intel.com> <20160908220119.GA64153@shli-mbp.local> <20160909011746.GA42229@linux.intel.com> <20160908224513.GA67943@shli-mbp.local> <20160909072245.GC42229@linux.intel.com> <20160909175051.GA75693@shli-mbp.local> <3908561D78D1C84285E8C5FCA982C28F3A1C48F1@ORSMSX114.amr.corp.intel.com> <20160909214325.GA81860@shli-mbp.local> <3908561D78D1C84285E8C5FCA982C28F3A1C4DE1@ORSMSX114.amr.corp.intel.com> <3E5A0FA7E9CA944F9D5414FEC6C712205DFEE583@ORSMSX106.amr.corp.intel.com> <20160912041539.GA56347@csimstu-mbp.local.dhcp.thefacebook.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 11 Sep 2016, Shaohua Li wrote: > On Sat, Sep 10, 2016 at 12:36:57AM +0000, Yu, Fenghua wrote: > > One way to implement this is we can extend the current interface to accept > > a resctrl file system mount parameter to switch b/w "procs" and "tasks" during > > mount time. So the file sytem has either "procs" or "tasks" during run time. I don't think it's right to have both of them at the same time in the file system. > > A mount option doesn't make sense, which just creates more trouble. What's > wrong to have both of 'procs' and 'tasks' at the same time, like cgroup? I > think it's more natural to support both. As for the content of 'procs' and > 'tasks', we could follow how cgroup handle them. Right. There is nothing wrong with having both, but the very first step is to get the basic infrastructure merged. Adding 'procs' is a straight forward add on which can be implemented on top of the primary patch set. There is no design change required to support it later. Thanks, tglx