Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3673170pxb; Fri, 5 Nov 2021 21:10:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz63dGf9ro1v7oeipdR+swaYnrfF6H42ijjxjZ+F4SRKesY0DN/6YNIvq4fjJRY5w7oeOGX X-Received: by 2002:a17:907:1b16:: with SMTP id mp22mr76854739ejc.487.1636171824701; Fri, 05 Nov 2021 21:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636171824; cv=none; d=google.com; s=arc-20160816; b=muQweH82L2yLwWc5t9QZ3quW8Sn5lK/5wBTrvg5Oi8QCkVgQtADQ3KVt5rwaLLu0Ou qyUMxaEvnCK0eMKyHHobKFW3ZkxXl7QP2kwHT533PpK5XtnDwnHeCQFhPTk/gwkAD/I9 Elxun/eXdxkNhCRPIY1jq9jsoB8FVZsZPNsu/btvrsSMAXduKIqXnFHSRHbtVy/6ZK05 Z+o7JO/136BBVsO0RpDi0c9nIYoxPM+KVuhDIkmEBCHM5nO2tM//ftJmN5OCVy7ekP8u /eZiBai8yfl/EImXea8/wl5fCmkRKjZyPXiRAOQUhVCvs2SUEXN2lEqHxmJZ8QzrXn/o kKIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OoJ+FmSfSJVPeg55SPs5H9Cad5OF+xCMwp+gslZjZ0Y=; b=bCWQGB0j0WsOnkL7Op+KDqqiMTJRYWGF3v6I8PYeVPJWIxrZwD/CBsEeMTX0sqktox x9s01TcNz91bZwNG2LO66kOag/irVAs1VmkZhClH7gJsLIQM5H1KpBB34nZ/7iz4XDZr izZh531m8JEzEw7uFEjFPAxoXf+X+HJieYo2gzRKI4SeGvJkMt6WYOggDuc6dREvXTEj +rn+T7rXyH6OO7E8KykKdD8OjTyq5dc43FW3Nyr33LLVnrZtZxB3/GJCKQQW+HmQlE5e 91TESQWThQf4vwgA/qHXwkQdYL4qJaE8OVvCR+IyqeDR7XSN5LNklvLC77VM+YmsWpgK 8mRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=NCrbdZpm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr9si19932707ejc.530.2021.11.05.21.09.31; Fri, 05 Nov 2021 21:10:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=NCrbdZpm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231589AbhKEXIe (ORCPT + 99 others); Fri, 5 Nov 2021 19:08:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230331AbhKEXId (ORCPT ); Fri, 5 Nov 2021 19:08:33 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C674FC061570 for ; Fri, 5 Nov 2021 16:05:53 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id x23so3470046qkf.7 for ; Fri, 05 Nov 2021 16:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OoJ+FmSfSJVPeg55SPs5H9Cad5OF+xCMwp+gslZjZ0Y=; b=NCrbdZpmxI6P3Ycc8UTDZyEl8KcoG6yiqYRNXnwYz8CQCaOixoMni5S4iS0/0LWpXU j2xTI6tV9vqFf0kl5hyWGCA2kFJPwdGnWBIoA9sdbOYlwMS25l9Z/xoKeSUxbd+Js7kU LcL7cuoRiO/sYMkgvjE7UmqMOLtSW/CNxMuv7NiqQODpi+IiMdkyBT1UKsmcktGBLL4S TbPYsZE3MTTq51YaH0i/OENdKxM2lx26s6ZRXukUy9qvJvuPSpPtcu9vnTg4OasOUjFk RGNCZk9MPZVrenhzza6p3s8Q00tUtVEZ/3vm7wzmtk35KdJJqoLGwA3Lj1KAaGpjeMr7 X+QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OoJ+FmSfSJVPeg55SPs5H9Cad5OF+xCMwp+gslZjZ0Y=; b=BLURTAyTVhyRCvCv1jD0ct6Tc7lGn/6i0xfBf9+3R/QGHAvsBLURCd68l2wbu2Jypu 9oXaNjkdr9kHBXW0YkAp7Np4lTfREcVy+XGor/Lweil9DVu1XdDTsJS8GLqbM1fJE8Cf XCGuv+1t9cG4a04qusjUhQjBRDp/K5e3i+CQfT8BvZ9lHuKdY5rfnybeg0cuLUgEaNaf Yqz9evOJd75cnZDCwdi9/csL7HzeeTPw/eKvBBQj/klHek4bnr1/FbMZQ818LuOk2M0v vz3dVrfo8orU0yraWpIEq2988TTVxkNovK9/f1DK5PJ9S7bAhpKyi7Dj6BFIRZpvrJZy Zx5g== X-Gm-Message-State: AOAM530lUACD+ry9g/QrhJHMLaxkt/V3NHeZnfDpf7C1ADebqZ87Y6nZ Nd+Z+f9RnxScFCctLEw/vW2vTvx8tTDMpTaZTXFz3Q== X-Received: by 2002:a05:620a:454f:: with SMTP id u15mr49248563qkp.144.1636153552807; Fri, 05 Nov 2021 16:05:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Joel Fernandes Date: Fri, 5 Nov 2021 19:05:41 -0400 Message-ID: Subject: Re: RT_GROUP_SCHED throttling blocks unthrottled RT tasks? To: Doug Anderson Cc: Peter Zijlstra , Steven Rostedt , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 5, 2021 at 7:04 PM Joel Fernandes wrote: > > On Fri, Nov 5, 2021 at 1:44 PM Doug Anderson wrote: > [..] > > > > > > I tried gathering some tracing. One bit that might (?) be relevant: > > > > cros_ec_spi_hig-179 [000] d.h5 1495.305919: sched_waking: > > comm=kworker/4:2 pid=5232 prio=120 target_cpu=004 > > cros_ec_spi_hig-179 [000] d.h6 1495.305926: sched_wakeup: > > comm=kworker/4:2 pid=5232 prio=120 target_cpu=004 > > -0 [001] d.H5 1495.309113: sched_waking: > > comm=sugov:6 pid=2658 prio=-1 target_cpu=006 > > -0 [001] d.H6 1495.309119: sched_wakeup: > > comm=sugov:6 pid=2658 prio=-1 target_cpu=006 > > cros_ec_spi_hig-179 [000] d.h5 1495.309336: sched_waking: > > comm=sugov:6 pid=2658 prio=-1 target_cpu=006 > > cros_ec_spi_hig-179 [000] d.h6 1495.309341: sched_wakeup: > > comm=sugov:6 pid=2658 prio=-1 target_cpu=006 > > -0 [001] d.H5 1495.312137: sched_waking: > > comm=sugov:6 pid=2658 prio=-1 target_cpu=006 > > -0 [001] d.H6 1495.312142: sched_wakeup: > > comm=sugov:6 pid=2658 prio=-1 target_cpu=006 > > cros_ec_spi_hig-179 [000] d.h5 1495.312859: sched_waking: > > comm=sugov:6 pid=2658 prio=-1 target_cpu=006 > > cros_ec_spi_hig-179 [000] d.h6 1495.312870: sched_wakeup: > > comm=sugov:6 pid=2658 prio=-1 target_cpu=006 > > > > My best guess is that there's some bug in the scheduler where it just > > loops constantly picking an unthrottled RT task but then incorrectly > > decides that it's throttled and thus doesn't run it. > > Thanks for posting this. Tricky bit indeed. I was wondering if the > issue is here: > https://elixir.bootlin.com/linux/latest/source/kernel/sched/rt.c#L1031 Errm, I meant Line 1060 in rt.c https://elixir.bootlin.com/linux/latest/source/kernel/sched/rt.c#L1060