Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp430258lqb; Tue, 16 Apr 2024 23:49:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdwJsy5XiIpfn1cXpAenP2bfH/bCGoAsnVmhJIcnaH5L/hC5oGbUzb+VQpZlPaj5ERl8Zsu32J7SBlcF1YcaJcoAYLHTeiDf+o9WAkVg== X-Google-Smtp-Source: AGHT+IFk432EX4tJTPyB3Rucocvmge52F4Rc1v6xwbCAADJ9z1s4duCYPra36sLemOlHz0LTQtvU X-Received: by 2002:a05:6e02:1d89:b0:36b:19f3:5606 with SMTP id h9-20020a056e021d8900b0036b19f35606mr12621004ila.5.1713336540429; Tue, 16 Apr 2024 23:49:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713336540; cv=pass; d=google.com; s=arc-20160816; b=wbwX8A09JImx4yH61NWJZftUOpINOycET11ZoTnvGfeYD6mf9MnIGzB+xY+eXkeZUF JEG684e1dE+q6ttk7ZEoOCsQxKwxEQkBccewL6jhrsmM8M7kuGoTVicaENMLBwGt5B0n pOtd1fAFvvmDOkScaAsUhBXK/psq56tsONvyQ6sH5rutBmquTgLqFArK5T3CSWCpOw2Y 1itrrINisX3sqlAwWAFW8yZSAEHfJx4+5OpcEboJarqR6hhL+zKKrLNtCvWH2CSNihVb AC1B/Y83bdeLac1adg4piwAKExX8feA6ObCpACamxR2u2uWGQYOYTHzNLLhsVwnEL3kp HC1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=8GdD1N+kL+Txs2fR62xmamHs4atP+AS/1YrbyOjH9XU=; fh=9gJTJpoScuSgsd0u8N4c3EXOEgZdxKvcND2lbm1cOpg=; b=jBcI4AD267PMAxze2EIFjZsLjrvwPzwyRHDrBe/vgg6sEAfXZPa3mbLHrxaAzks0U4 sDVhwITVwViV6bVnYwCCta58AUSwlyVqX+e6jPR54FG9v7BxpsHmB0R4J6aI6cT6dwBV 6MUx8MgKoSETsHdF3FkgcoKUi4iYKtTxg/kxuAtd60coRlnRyNUlCfNy2zlNUSqMDBU0 o6GUdhodLd1lYWMVPfwzTdqjbMbp4wrtij36YryIcskAvhtjL37SCPIle0fhfDwT582f O930EpI4Ugq8NhhOoM7QJXTAyd7puQy7hAXGsKP5HG7sZSBmLAH5zP7pHnsYZttIyTc4 GoDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@shruggie-ro.20230601.gappssmtp.com header.s=20230601 header.b=GFG2I0q7; arc=pass (i=1 spf=pass spfdomain=shruggie.ro dkim=pass dkdomain=shruggie-ro.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-148007-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148007-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y18-20020a63fa12000000b005d8bce9b04dsi10956513pgh.681.2024.04.16.23.48.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 23:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148007-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@shruggie-ro.20230601.gappssmtp.com header.s=20230601 header.b=GFG2I0q7; arc=pass (i=1 spf=pass spfdomain=shruggie.ro dkim=pass dkdomain=shruggie-ro.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-148007-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148007-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3F8A8B21A78 for ; Wed, 17 Apr 2024 06:48:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF83365E02; Wed, 17 Apr 2024 06:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shruggie-ro.20230601.gappssmtp.com header.i=@shruggie-ro.20230601.gappssmtp.com header.b="GFG2I0q7" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FC8D394 for ; Wed, 17 Apr 2024 06:48:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713336532; cv=none; b=JKJ9AsIWK3vltMQaVgQUcCF68JyiMy5JoBHgvk9Qyng5IFEmXYH690HDhKfXYbXfXr0Tr79+7GeIpY5vJspvyKkPqOTRaVVc45bhAzTXetEZABYsnAe0Rxc+AqZG4A+KS/MLf1XmHmGDLdbQ6qhOMM+K8YNdJBEtqKZPQEAI5ZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713336532; c=relaxed/simple; bh=8GdD1N+kL+Txs2fR62xmamHs4atP+AS/1YrbyOjH9XU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Q1c3qZxGu4rCtzLDJa9Fp4B7qM11pLmAoZO7T5hKZpcpXS/M6X8OCMYRT8oKi8M8Y28cld2a6FdddIsLkmbDIZdNvM09U8q2PWg9V7cDyddAtM2TKpZPix0fEF51Ypy9InbcI5Z1VIj5RZlPgEVREZxbeU3qgKlWSoDi2W5tH+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=shruggie.ro; spf=pass smtp.mailfrom=shruggie.ro; dkim=pass (2048-bit key) header.d=shruggie-ro.20230601.gappssmtp.com header.i=@shruggie-ro.20230601.gappssmtp.com header.b=GFG2I0q7; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=shruggie.ro Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shruggie.ro Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-5194cebd6caso227940e87.0 for ; Tue, 16 Apr 2024 23:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shruggie-ro.20230601.gappssmtp.com; s=20230601; t=1713336527; x=1713941327; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8GdD1N+kL+Txs2fR62xmamHs4atP+AS/1YrbyOjH9XU=; b=GFG2I0q76lEDzP8gzQO5K3lFcYJpKA4n7HsUPL7fA+NKaax4/BiQLG9lxgNGU8VQj1 vGdzrB+PaF1vc356ZyfVsxeiAl3Eah83W2BcHDIRfyLgqkoPLe2dw6jle9ZXwvkTgVIh d3cyTZLAA53xxCaWRLAHhYGuxT8IJuReEaHcJyxLhVapOap5PRZCn6ySixf/02KcIUnn DXdCcMRHPv/eLUTfnN1Ktalpb7+/gLA068Nkqyjc4tNHqFnONsSNC4Oybc6CCstQh6// uZtHnFPPvWu9DHafjHw8vwWpb/FfkdGeN5SBHXYvlQT3FJ+aT1Oya8rNzNUvKmb0TKWc wgQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713336527; x=1713941327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8GdD1N+kL+Txs2fR62xmamHs4atP+AS/1YrbyOjH9XU=; b=RNT3ZfEx6p2N4RwIAQcWkhlJks+nmZUatsZZUz48PVLXHAVGolYUhNOBSrV2yVBsrX 9ox+UmoA2ZJtqu4x+bpHxIOAUtIdUr6chJPtN7teG4NaAcx8spR2y0BEKI8mWh1OATrP BrmVyC6mbixEPRauJVuEhAS+i3et1x3oIOFMZSXLKSAfbnBUj2auUWqw5G4L3JtNnMhc A2/Til5vKBGvX3HXiYXHRjBBh7dc3d79HRLcaIUcfmtvfJ3udgUtCV8Vw8qhEjqAXSxm 3ev90130SVsONyx4oR+Gq81v+AjVRmj7cGNQltu7iqgsmIUyFak4KocTEkKFORJlSmwc 7T5Q== X-Gm-Message-State: AOJu0YypzMjCtTXP8+tdQI1PmpUtdxhJhrQrDCQOut5Q7ODdpkKaP+tm h3lUO/cuYwNHt6mFqDPbTJtcsl0nWNyTObnEqiSLGiwF00bm9buSjlxOQSz6lbdrcm2AAz9LTga WG5kL8X+BdhpG28BnfOpemcmKOMFigqgF3rS/6g== X-Received: by 2002:ac2:464a:0:b0:518:9950:9079 with SMTP id s10-20020ac2464a000000b0051899509079mr8518848lfo.2.1713336527056; Tue, 16 Apr 2024 23:48:47 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230516122202.954313-1-alex@shruggie.ro> In-Reply-To: From: Alexandru Ardelean Date: Wed, 17 Apr 2024 09:48:36 +0300 Message-ID: Subject: Re: [PATCH][V2] sched/rt: Print curr when RT throttling activated To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, tian.xianting@h3c.com, steffen.aschbacher@stihl.de, gregkh@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 8, 2024 at 6:25=E2=80=AFPM Valentin Schneider wrote: > > On 01/04/24 18:47, Alexandru Ardelean wrote: > > On Thu, Jul 13, 2023 at 11:07=E2=80=AFPM Alexandru Ardelean wrote: > >> > >> On Tue, May 16, 2023 at 3:22=E2=80=AFPM Alexandru Ardelean wrote: > >> > > >> > From: Xianting Tian > >> > > >> > We may meet the issue, that one RT thread occupied the cpu by 950ms/= 1s, > >> > The RT thread maybe is a business thread or other unknown thread. > >> > > >> > Currently, it only outputs the print "sched: RT throttling activated= " > >> > when RT throttling happen. It is hard to know what is the RT thread, > >> > For further analysis, we need add more prints. > >> > > >> > This patch is to print current RT task when RT throttling activated, > >> > It help us to know what is the RT thread in the first time. > >> > > >> > >> Adding Greg on this patch, since it 's been a while. > >> And also: ping :) > > > > Ping on this :) > > > > AFAIA this has been proposed a few times in the past, the problem is that > printing the current task isn't the right thing to do as it may not be th= e > one that contributed most of the runtime that lead to throttling. > > See https://lore.kernel.org/lkml/20221209163606.53a2370e@gandalf.local.ho= me/ Ah. Thanks for the input :) I'll shut up on this. Thanks Alex >