Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751821AbcJJMEf (ORCPT ); Mon, 10 Oct 2016 08:04:35 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:55342 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136AbcJJMEe (ORCPT ); Mon, 10 Oct 2016 08:04:34 -0400 Date: Mon, 10 Oct 2016 14:04:25 +0200 From: Peter Zijlstra To: Luca Abeni Cc: linux-kernel@vger.kernel.org, Tommaso Cucinotta , Juri Lelli , Thomas Gleixner , Andrea Parri Subject: Re: About group scheduling for SCHED_DEADLINE Message-ID: <20161010120425.GB11311@worktop.programming.kicks-ass.net> References: <20161009213938.3cec05ea@utopia> <20161010101558.GL3568@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161010101558.GL3568@worktop.programming.kicks-ass.net> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1183 Lines: 28 On Mon, Oct 10, 2016 at 12:15:58PM +0200, Peter Zijlstra wrote: > Right, so the problem we have is unspecified SCHED_FIFO on SMP and > historical behaviour. > > As you know we've extended FIFO to SMP by G-FIFO (run the m highest prio > tasks on m CPUs). But along with that, we allow arbitrary affinity masks > for RR/FIFO tasks. > > (Note that RR is broken in the G-FIFO model, but that's a different > discussion for a different day). > > Now, the proposed model has identical CBS parameters for every (v)cpu of > the cgroup. This means that a cgroup must be overprovisioned in the > general case where nr_tasks < nr_cpus (and worse, the parameters must > match the max task). > > This leads to vast amounts of wasted resources. > > The alternative is different but fixed parameters per cpu, but that is > somewhat unwieldy in that it increases the configuration burden. But you > can indeed minimize the wasted resources and deal with the affinity > problem (AFAICT). > Hurm, so I think both proposals above rely on deadline servers with single CPU affinity, something which we currently do not support at all, and is something that should be defined/fixed first I think.