Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3814626rdh; Fri, 29 Sep 2023 03:14:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvdvzl6srJ6Uvsc2hE/WbWdwso4Eek2kmXGzybQO6TFnnnPgTOE8QtGRMl+bQrA6+snAzK X-Received: by 2002:a05:6a00:2442:b0:68e:2b6b:2723 with SMTP id d2-20020a056a00244200b0068e2b6b2723mr3442736pfj.29.1695982465550; Fri, 29 Sep 2023 03:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695982465; cv=none; d=google.com; s=arc-20160816; b=rjR1c08g5ewSkYyjtzS5bzPpSpIEitfKBR0HLW9g61V4Yl0tlirsPgX9ZFUz//DhE+ UMBGe5bt2Fpw7K5reoKlQ6AZPp2IQAMDuendSOD6KdW7TM9rwPaEUrkdI3raKnjdxfkR MrcvLSNnVq55YqhYIEpO5D1H4ne0560OsTVvIXr3qYMrPH8GJbnEaIk/gza8hsmK14Dm XNMem3t2HqsK/f8tpFW/VhqWXmt0d8HiaKTcmHOkNo5XkAtxSoyibiPyxaSI62PoWP9S itBhBoYWWSlcU0QQo0Le8dREaPLCr1Zu3LX7oJcoFvNV6W79gyj5Z+GlxJodntCNxn+l wV1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JHxqmj3tSTy2G5LiN/2ZAZO5W2ttNXDNevrvKcCTecU=; fh=29EUK+uddsBiFkqvM7SKjkxh2JxJWqq+e4LxIGIK1Z8=; b=s4ipZP1Oh0TmjdGfMxlbFbL3CZ4LosqEMC6F0k8tYI6OAlsObQM7K8AY/eRPW1k/1C iZHPMozBsEDeJ1sgeYBeLywHKoC05as5fv2VmvzP1I6Bxype0/1af/YtQ3Tbxjmbq/P4 oboLGA0O+m+Yp3Vhm+bdegvnDbxpYnQoMgi8KwigfaYIhj4W/6kRDpEqPKAmV88WzT4/ Kj4bqkQcpw4DS63eQM0m53Wn56iJ8wfxn1b22Q2eAcYtLwVOaxMP2SK2Fq090a7DJMlV 6hIx3EBnFv2r7X5iN2gRDK92ebviCFnHsmJrbAeHCnXHabsUDiZjqk6Pmw8EgQONLuC2 eJbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N8G2TtEn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id cu2-20020a056a00448200b0069015b1491bsi20780354pfb.120.2023.09.29.03.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 03:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N8G2TtEn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 387B2801BB79; Fri, 29 Sep 2023 00:07:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232554AbjI2HGo (ORCPT + 99 others); Fri, 29 Sep 2023 03:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232740AbjI2HGl (ORCPT ); Fri, 29 Sep 2023 03:06:41 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C34C1A5 for ; Fri, 29 Sep 2023 00:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695971153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JHxqmj3tSTy2G5LiN/2ZAZO5W2ttNXDNevrvKcCTecU=; b=N8G2TtEnRHv0Kau5+gSU3ofyBlq6R9PXJABzbInkHVXVgap+VFvG3D/LMD/xTOFIZ77i3T zwekzWgEczVBgEgFgOH/XMpjsw8RUZkATPogjPwBjlONDGfxr5uZyl2+jYqcSpcNaG7SHQ PHIKE2HAJ6S/6CrK7RFCxqGvBTqNwM8= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-622-6kJq8elIOiuJ43qDq9b96Q-1; Fri, 29 Sep 2023 03:05:51 -0400 X-MC-Unique: 6kJq8elIOiuJ43qDq9b96Q-1 Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-65afd7515aaso185079206d6.0 for ; Fri, 29 Sep 2023 00:05:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695971151; x=1696575951; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JHxqmj3tSTy2G5LiN/2ZAZO5W2ttNXDNevrvKcCTecU=; b=lW/Pny0q3dSsg6F1OaTcBfQWB+Bcx7YZd0+OLKzfZUcLHZy1d+Y9vC4SHnMeERpBiN TxoIq1MjNZaehOCgZGuwi5NBSqHrYV4lQJwoZ8FNtCO5UsPuAhMw2Cp3JroU4/rh3QxT nbXPGYWWXlT4DD82HvsgA1EAQPO3JV7GfRwDgKyVaODJcrqmaxo4bV9PPkyqEq18Znvx bxbeIukD8oLhQEeNdWsnxXij4p2UHeUaSh3BqwvXFvnWxUF2ZIstXYg7McNOx3thKjbw Uz14ORi5fmLrFPWZ5TeBnP0991HAF5+PUYXA/oHtE0fxXSXAzH3m9SryQ4wd6af8lj66 ggpA== X-Gm-Message-State: AOJu0YzV5z6ZTd8HmmftZKvHKwUyra/FSqLypjUC9Pr9dUkwoWfWPd8f rxns6SUUdUsFnhUpxmFWM//s5oaKdHNMAZubXx5soCRGavJ4Ny0XmtUgsEd8AU3cJgQR2FXJJdy MYRTHln3fcnK791IBcSRdPpID X-Received: by 2002:a0c:f5d0:0:b0:64f:82d2:26fe with SMTP id q16-20020a0cf5d0000000b0064f82d226femr3261805qvm.39.1695971151123; Fri, 29 Sep 2023 00:05:51 -0700 (PDT) X-Received: by 2002:a0c:f5d0:0:b0:64f:82d2:26fe with SMTP id q16-20020a0cf5d0000000b0064f82d226femr3261792qvm.39.1695971150846; Fri, 29 Sep 2023 00:05:50 -0700 (PDT) Received: from localhost.localdomain ([2a00:23c6:4a2f:8e01:cdb2:e442:d239:3933]) by smtp.gmail.com with ESMTPSA id a12-20020a0ce34c000000b0065b24c08994sm2786830qvm.128.2023.09.29.00.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 00:05:50 -0700 (PDT) Date: Fri, 29 Sep 2023 08:05:46 +0100 From: Juri Lelli To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, Daniel Bristot de Oliveira , Dietmar Eggemann , Ingo Molnar , Peter Zijlstra , Steven Rostedt , Vincent Guittot , Thomas Gleixner , Sebastian Andrzej Siewior Subject: Re: [PATCH] sched/deadline: Make dl_rq->pushable_dl_tasks updates drive dl_rq->overloaded Message-ID: References: <20230928150251.463109-1-vschneid@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928150251.463109-1-vschneid@redhat.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 00:07:04 -0700 (PDT) Hi, On 28/09/23 17:02, Valentin Schneider wrote: > dl_nr_migratory is increased whenever a DL entity is enqueued and it has > nr_cpus_allowed > 1. Unlike the pushable_dl_tasks tree, dl_nr_migratory > includes a dl_rq's current task. This means a dl_rq can have a migratable > current, N non-migratable queued tasks, and be flagged as overloaded and have > its CPU set in the dlo_mask, despite having an empty pushable_tasks tree. > > Make an dl_rq's overload logic be driven by {enqueue,dequeue}_pushable_dl_task(), > in other words make DL RQs only be flagged as overloaded if they have at > least one runnable-but-not-current migratable task. > > o push_dl_task() is unaffected, as it is a no-op if there are no pushable > tasks. > o pull_dl_task() now no longer scans runqueues whose sole migratable task is > their current one, which it can't do anything about anyway. > It may also now pull tasks to a DL RQ with dl_nr_running > 1 if only its > current task is migratable. > > Since dl_rq->dl_nr_migratory becomes unused, remove it. > > RT had the exact same mechanism (rt_rq->rt_nr_migratory) which was dropped > in favour of relying on rt_rq->pushable_tasks, see: > 612f769edd06 ("sched/rt: Make rt_rq->pushable_tasks updates drive rto_mask") > > Link: https://lore.kernel.org/all/20230811112044.3302588-1-vschneid@redhat.com/ > Signed-off-by: Valentin Schneider This looks good thanks! Acked-by: Juri Lelli Best, Juri