Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932991AbbLSKoD (ORCPT ); Sat, 19 Dec 2015 05:44:03 -0500 Received: from www.linutronix.de ([62.245.132.108]:43002 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932665AbbLSKoB (ORCPT ); Sat, 19 Dec 2015 05:44:01 -0500 Date: Sat, 19 Dec 2015 11:42:57 +0100 (CET) From: Thomas Gleixner To: Fenghua Yu cc: "H. Peter Anvin" , Ingo Molnar , Tony Luck , Ravi V Shankar , Peter Zijlstra , Tejun Heo , Marcelo Tosatti , linux-kernel , x86 , Vikas Shivappa Subject: Re: [PATCH V16 11/11] x86,cgroup/intel_rdt : Add a cgroup interface to manage Intel cache allocation In-Reply-To: <1450392376-6397-12-git-send-email-fenghua.yu@intel.com> Message-ID: References: <1450392376-6397-1-git-send-email-fenghua.yu@intel.com> <1450392376-6397-12-git-send-email-fenghua.yu@intel.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1774 Lines: 42 On Thu, 17 Dec 2015, Fenghua Yu wrote: > From: Fenghua Yu > > From: Vikas Shivappa > > Add a new cgroup 'intel_rdt' to manage cache allocation. Each cgroup > directory is associated with a class of service id(closid). To map a > task with closid during scheduling, this patch removes the closid field > from task_struct and uses the already existing 'cgroups' field in > task_struct. > > The cgroup has a file 'l3_cbm' which represents the L3 cache capacity > bitmask(CBM). The CBM is global for the whole system currently. The > capacity bitmask needs to have only contiguous bits set and number of > bits that can be set is less than the max bits that can be set. The > tasks belonging to a cgroup get to fill in the L3 cache represented by > the capacity bitmask of the cgroup. For ex: if the max bits in the CBM > is 10 and the cache size is 10MB, each bit represents 1MB of cache > capacity. > > Root cgroup always has all the bits set in the l3_cbm. User can create > more cgroups with mkdir syscall. By default the child cgroups inherit > the capacity bitmask(CBM) from parent. User can change the CBM specified > in hex for each cgroup. Each unique bitmask is associated with a class > of service ID and an -ENOSPC is returned once we run out of > closids. This is still the original crap. No, we are not introducing this interface now just because we can. I explained in great length why this is completely useless and what we really need. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/