Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757366AbcJQGjQ (ORCPT ); Mon, 17 Oct 2016 02:39:16 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:32876 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752517AbcJQGjF (ORCPT ); Mon, 17 Oct 2016 02:39:05 -0400 Date: Mon, 17 Oct 2016 08:38:57 +0200 From: luca abeni To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Tommaso Cucinotta , Juri Lelli , Thomas Gleixner , Andrea Parri , giuseppe lipari , Claudio Scordino Subject: Re: About group scheduling for SCHED_DEADLINE Message-ID: <20161017083857.4833d539@utopia> In-Reply-To: <20161016214059.65ac35b6@utopia> References: <20161009213938.3cec05ea@utopia> <20161010101558.GL3568@worktop.programming.kicks-ass.net> <20161010110818.GA11311@worktop.programming.kicks-ass.net> <20161016214059.65ac35b6@utopia> Organization: university of trento X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id u9H6dLS5031987 Content-Length: 2141 Lines: 49 On Sun, 16 Oct 2016 21:40:59 +0200 Luca Abeni wrote: > On Mon, 10 Oct 2016 13:08:18 +0200 > Peter Zijlstra wrote: > > > On Mon, Oct 10, 2016 at 12:15:58PM +0200, Peter Zijlstra wrote: > > > However, I think there's a third alternative. I have memories of a > > > paper from UNC (I'd have to dig through the site to see if I can > > > still find it) where they argue that for a hierarchical (G-)FIFO > > > you should use minimal concurrency, that is run the minimal number > > > of (v)cpu servers. > > > > > > This would mean we give a single CBS parameter and carve out the > > > minimal number (of max CBS) (v)cpu that fit in that. > > > > > > I'm just not sure how the random affinity crap works out for that, > > > if we have the (v)cpu servers migratable in the G-EDF and migrate > > > to whatever is demanded by the task at runtime it might work, but > > > who knows.. Analysis would be needed I think. > > > > Hurm,.. thinking slightly more on this, this ends up being a DL task > > with random affinity, which is problematic IIRC. > Yes, there currently is no existing schedulability analysis for > multi-processor EDF with random affinities (as far as I know) Correction: it looks like I was wrong, and the schedulability of multi-processor EDF with arbitrary affinities has already been analysed in A. Gujarati, F. Cerqueira, and B. Brandenburg, “Multiprocessor Real-Time Scheduling with Arbitrary Processor Affinities: From Practice to Theory”, Real- Time Systems, Volume 51, Issue 4, pp. 440–483. Springer Verlag, 2015 (see https://www.mpi-sws.org/~bbb/papers/). Thanks to Giuseppe Lipari for pointing me to this paper. So, having DL tasks with arbitrary affinities is not a big problem from the theoretical point of view... The only issue is that the utilisation-based admission test that is currently implemented in the kernel does not work (and given the complexity of the analysis I think it is better not to perform it in the kernel :) Luca > but I > think we can at least have a look at developing this kind of analysis. > Giuseppe, what do you think?