Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754835AbbKMTEl (ORCPT ); Fri, 13 Nov 2015 14:04:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54439 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752479AbbKMTEk (ORCPT ); Fri, 13 Nov 2015 14:04:40 -0500 Date: Fri, 13 Nov 2015 14:04:38 -0500 From: Luiz Capitulino To: Marcelo Tosatti Cc: Peter Zijlstra , Thomas Gleixner , Vikas Shivappa , Tejun Heo , Yu Fenghua , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] ioctl based CAT interface Message-ID: <20151113140438.3d8e2e11@redhat.com> In-Reply-To: <20151113172740.GA13490@amt.cnet> References: <20151113163933.GA10222@amt.cnet> <20151113165100.GI17308@twins.programming.kicks-ass.net> <20151113172740.GA13490@amt.cnet> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1747 Lines: 43 On Fri, 13 Nov 2015 15:27:40 -0200 Marcelo Tosatti wrote: > On Fri, Nov 13, 2015 at 05:51:00PM +0100, Peter Zijlstra wrote: > > On Fri, Nov 13, 2015 at 02:39:33PM -0200, Marcelo Tosatti wrote: > > > + * * one tcrid entry can be in different locations > > > + * in different sockets. > > > > NAK on that without cpuset integration. > > > > I do not want freely migratable tasks having radically different > > performance profiles depending on which CPU they land. > > Please expand on what "cpuset integration" means, operationally. > I hope it does not mean "i prefer cgroups as an interface", > because that does not mean much to me. I guess that what Peter is saying is that we don't want tasks attached to a reservation landing on a CPU where the reservation might be different or not existent at all. Peter, what about integrating this with affinity masks instead of cpusets (I have no idea how cpusets are implemented, but I guess they are a superset of affinity masks). This way, the ATTACH_RESERVATION command would fail if any of the CPUs in the cpumask are not part of the reservation. And then our code would have to be notified any time the process' affinity mask is changed (we either fail the affinity change or detach the process automatically from the reservation). Does this sound like a good solution? > > So you are saying this should be based on cgroups? Have you seen the > cgroups proposal and the issues with it, that have been posted? > > -- 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/