From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756665Ab0KKNNq (ORCPT ); Thu, 11 Nov 2010 08:13:46 -0500 Received: from canuck.infradead.org ([134.117.69.58]:52523 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756133Ab0KKNNp convert rfc822-to-8bit (ORCPT ); Thu, 11 Nov 2010 08:13:45 -0500 Subject: Re: [RFC][PATCH 05/22] sched: SCHED_DEADLINE policy implementation From: Peter Zijlstra To: Raistlin Cc: Ingo Molnar , Thomas Gleixner , Steven Rostedt , Chris Friesen , oleg@redhat.com, Frederic Weisbecker , Darren Hart , Johan Eker , "p.faure" , linux-kernel , Claudio Scordino , michael trimarchi , Fabio Checconi , Tommaso Cucinotta , Juri Lelli , Nicola Manica , Luca Abeni , Dhaval Giani , Harald Gustafsson , paulmck In-Reply-To: <1289438335.13577.462.camel@Palantir> References: <1288333128.8661.137.camel@Palantir> <1288333814.8661.146.camel@Palantir> <1289420478.2084.54.camel@laptop> <1289438335.13577.462.camel@Palantir> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 11 Nov 2010 14:13:38 +0100 Message-ID: <1289481218.2084.84.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2010-11-11 at 02:18 +0100, Raistlin wrote: > On Wed, 2010-11-10 at 21:21 +0100, Peter Zijlstra wrote: > > > + if (dl_time_before(dl_se->deadline, rq->clock) || > > > + dl_entity_overflow(dl_se, rq->clock)) { > > > + dl_se->deadline = rq->clock + dl_se->dl_deadline; > > > + dl_se->runtime = dl_se->dl_runtime; > > > + } > > > +} > > > > Can't we loose runtime deficit this way? > - if unblocking happens _before_ it becomes eligible again, the > enqueue will be later handled by the dl_timer itself, when it'll > fire, and the task will be given a replenishment starting from its > negative runtime; > - if unblocking happens _later_ than the firing of dl_timer, resetting > the scheduling parameters should be just fine, from the bandwidth > point of view. > > Does it make sense? Yes, I think so. Thanks!