From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752369AbdKMKjd (ORCPT ); Mon, 13 Nov 2017 05:39:33 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40586 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbdKMKjb (ORCPT ); Mon, 13 Nov 2017 05:39:31 -0500 X-Google-Smtp-Source: AGs4zMb7bFnwhaepEHiNbNfZ/7/Vq7APCMz2VX6dk9mCCKCnctspcLNyHADALHjv3wW+vIQMWm6xrw== Subject: Re: [PATCH] sched/deadline: fix runtime accounting in documentation To: Claudio Scordino , linux-kernel@vger.kernel.org Cc: peterz@infradead.org, Luca Abeni References: <1507889286-24651-1-git-send-email-claudio@evidence.eu.com> From: Daniel Bristot de Oliveira Message-ID: <2de30b8f-0f71-3245-e378-ed1d498fb5e0@redhat.com> Date: Mon, 13 Nov 2017 11:39:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1507889286-24651-1-git-send-email-claudio@evidence.eu.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/13/2017 12:08 PM, Claudio Scordino wrote: > Signed-off-by: Claudio Scordino > Signed-off-by: Luca Abeni > --- > Documentation/scheduler/sched-deadline.txt | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff --git a/Documentation/scheduler/sched-deadline.txt b/Documentation/scheduler/sched-deadline.txt > index e89e36e..79f40c6 100644 > --- a/Documentation/scheduler/sched-deadline.txt > +++ b/Documentation/scheduler/sched-deadline.txt > @@ -204,10 +204,16 @@ CONTENTS > It does so by decrementing the runtime of the executing task Ti at a pace equal > to > > - dq = -max{ Ui, (1 - Uinact) } dt > + dq = -max{ Ui / Umax, (1 - Uinact - Uextra) } dt > > - where Uinact is the inactive utilization, computed as (this_bq - running_bw), > - and Ui is the bandwidth of task Ti. > + where: > + > + - Ui is the bandwidth of task Ti; Just one very very small addition to make it more clear: > + - Umax is the maximum reclaimable utilization (subject to RT limits); ^^^^^^^^^^^^^^^^^^^ (subjected to RT Throttling limits) Anyways, Acked-by: Daniel Bristot de Oliveira > + - Uinact is the (per runqueue) inactive utilization, computed as > + (this_bq - running_bw); > + - Uextra is the (per runqueue) extra reclaimable utilization > + (subject to RT limits). > > > Let's now see a trivial example of two deadline tasks with runtime equal >