Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4387453imm; Wed, 30 May 2018 04:52:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJww4XCSNs0UMVg6xehOuMdfIjQ/G3+JlG+yaaeZqO0UjLQhZqn0T4YaCIXWT3whDmoJVmE X-Received: by 2002:a63:6383:: with SMTP id x125-v6mr1920010pgb.277.1527681155197; Wed, 30 May 2018 04:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527681155; cv=none; d=google.com; s=arc-20160816; b=bL1ocEnSH/RB4/Px9K5y2QWRGwgpZBsBiI3m/fSU7kJ+xzncaVBgrSekXdYHUa0EwU Rwig2hLbKypJ0HUoUDOil0ua8hX28aYCb6vdSTXuLRbCDtM5HX2ls/aWVYf5laS6/AKs bbaIG3dAOS0e8jF/hmr2JftX/xh270GNjz/J9fmpENckNyJq86rmz/VdHRofmhA+MUms +IpstCRk/pf/wPa8D9aQUyX0N7GdKGpZpffhBuCe3mBcWLpKCbqchPl5mO0R4Ak9nYav yv4Fz2gqbAYBX0SgQLcILlCrE01jsn2jvR8tBCVSzVgLrvTcP+fYeRd8TxGJsyoqXkoJ SjCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hXVga0NRE6BKgNq8u/SuTRIn/EJxFyzawUtZl5HRkoM=; b=zkm3BlDruRNLE9DvxMTAV9IAcgCDpvZIfFpnoV7mv7nRfYB/1HU6h1XOeArSIOPY9v vQcP/9hjb75QCHsaraEgvxkOQ/DJfTSagTSVa6qlkoVTknGqxIwA3wjLMoyQPfnLs3OO +mhY1D23jg6Ih6GAN0/mtTnASPIa4x1+lOscracHixhgVdGLAQj7l7rbo52hHUdcSmUw kFNEGxtRKehggSJ/1TIPMWLq4ezhAl2aFfMo6ZApb38zXXM2J4vOr/KaxWw7lZkWE1KC WYzY58utC2TG3ZIS+mObu827lRpOwWA5QDsBgWvMEJSaIszv4ryLLGrI8KGGpXEbv3AI YItA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uno1w0u5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3-v6si34303245pld.593.2018.05.30.04.52.20; Wed, 30 May 2018 04:52:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uno1w0u5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751765AbeE3Lvs (ORCPT + 99 others); Wed, 30 May 2018 07:51:48 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:54836 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751012AbeE3Lvr (ORCPT ); Wed, 30 May 2018 07:51:47 -0400 Received: by mail-it0-f68.google.com with SMTP id 76-v6so7527680itx.4 for ; Wed, 30 May 2018 04:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hXVga0NRE6BKgNq8u/SuTRIn/EJxFyzawUtZl5HRkoM=; b=Uno1w0u5IIEM8LrW1Rhyq+qtbNahx3REUqHmJFRUZiaxApyc8b3qPlVlcZO2KTpO4D FmXxhXiyTEAA7A+R2Pxd3KPBp2B66tBaDmaMX84RkjZB8N62cQdgNu1ouTFbjczeXZbK SGNYblk/Gp1XRXp9e4wTFAa8G0P+fPEZ45wVA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hXVga0NRE6BKgNq8u/SuTRIn/EJxFyzawUtZl5HRkoM=; b=FP7LfLx944vMCKyH28pE5JsMlX7Uw3nI/t0Q9axqadprQuSvEhsfIhPQYyHtEI7S6Y 1toAorf7ETG1naZZDD5csY0cRhh3FkBBQces0w8AX3h3JjH5wsbmi0rK2NwUnARIHWM7 pVw22fMz24b4QtTBE4YzAAO3hSYznWn5/vHEDjkiKMVpObg/784Pi1HdWEvs3zfFle8q wo1jaTb/d99uu7huqMB0PvNO4aGmDgsgEkC2wmdRoJnFWOUEbXa2Xsp+th9cn9f5rISI CmdERjLf8x2fRFzRtwDh0D2URdWazWFMMVn7vyg3YZ/OldZK5CWZEoZdKaLPNOarUZEP VEzA== X-Gm-Message-State: APt69E39+59q0EGyR3GU7on6uqZuPGKxkpo8WsI17/3zu3gUuOl2pvwf 5sLr5JvmndezEJgWXPaLm6iUP+iV7vpDI1U8scB9GGAoPUo= X-Received: by 2002:a24:8782:: with SMTP id f124-v6mr1353718ite.30.1527681106622; Wed, 30 May 2018 04:51:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:4cc:0:0:0:0:0 with HTTP; Wed, 30 May 2018 04:51:26 -0700 (PDT) In-Reply-To: <20180530105050.GI30654@e110439-lin> References: <1527253951-22709-1-git-send-email-vincent.guittot@linaro.org> <1527253951-22709-5-git-send-email-vincent.guittot@linaro.org> <20180530105050.GI30654@e110439-lin> From: Vincent Guittot Date: Wed, 30 May 2018 13:51:26 +0200 Message-ID: Subject: Re: [PATCH v5 04/10] sched/dl: add dl_rq utilization tracking To: Patrick Bellasi Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , "Rafael J. Wysocki" , Juri Lelli , Dietmar Eggemann , Morten Rasmussen , viresh kumar , Valentin Schneider , Quentin Perret Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30 May 2018 at 12:50, Patrick Bellasi wrote: > On 25-May 15:12, Vincent Guittot wrote: >> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >> index fb18bcc..967e873 100644 >> --- a/kernel/sched/fair.c >> +++ b/kernel/sched/fair.c >> @@ -7290,11 +7290,14 @@ static inline bool cfs_rq_has_blocked(struct cfs_rq *cfs_rq) >> return false; >> } >> >> -static inline bool rt_rq_has_blocked(struct rq *rq) >> +static inline bool others_rqs_have_blocked(struct rq *rq) > > Here you are going to fold in IRQ's utilization which, strictly > speaking, is not a RQ. Moreover, we are checking only utilization. > > Can we use a better matching name? E.g. > others_have_blocked_util > non_cfs_blocked_util others_have_blocked looks ok and consistent with cfs_rq_has_blocked > ? > >> { >> if (rq->avg_rt.util_avg) >> return true; >> >> + if (rq->avg_dl.util_avg) >> + return true; >> + >> return false; >> } >> > -- > #include > > Patrick Bellasi