Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757481AbcLOLar (ORCPT ); Thu, 15 Dec 2016 06:30:47 -0500 Received: from mail.santannapisa.it ([193.205.80.99]:54538 "EHLO mail.santannapisa.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754786AbcLOLap (ORCPT ); Thu, 15 Dec 2016 06:30:45 -0500 Subject: Re: [RFD] sched/deadline: Support single CPU affinity To: Peter Zijlstra References: <20161110080807.GD11311@worktop.programming.kicks-ass.net> <91d96936-7504-1578-d4e8-1f2f8d8dc113@sssup.it> <20161213102135.GJ3124@twins.programming.kicks-ass.net> Cc: Ingo Molnar , Thomas Gleixner , Juri Lelli , Luca Abeni , Steven Rostedt , Claudio Scordino , Daniel Bistrot de Oliveira , Henrik Austad , linux-kernel@vger.kernel.org From: Tommaso Cucinotta Message-ID: Date: Thu, 15 Dec 2016 12:30:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161213102135.GJ3124@twins.programming.kicks-ass.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 22 Hi Peter, On 13/12/2016 11:21, Peter Zijlstra wrote: > On Thu, Nov 10, 2016 at 11:01:59AM +0100, Tommaso Cucinotta wrote: >> Just a note: if you want to recover arbitrary task affinities, you can re-cast your above test like this: >> >> for_each_processor(cpu) >> \sum U[t]/A[t] \leq 1 (or U_max), for each task t on cpu, with utilization U[t] and A[t] tasks overall in its affinity mask >> > Do I read it correct when I interpret A[t] as the number of CPUs in its > affinity mask? yes, exactly, A[t] number of CPUs in the task affinity mask (sorry for my bad write-up) > Also, does recoverable mean a bound tardiness, or is that something > weaker still? nope, nothing exact -- it just meant providing flexible but simple & consistent (ie, towards recovering affinity masks) options from the kernel/scheduler side, leaving more complex & exact tests to user-space, or future add-ons to the kernel. Thanks, T.