Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1420959lqe; Mon, 8 Apr 2024 08:26:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVPI8yVIxTNDAwJkqqRIr7WR8W6q2ICrJEfDnXAQNhIKcj3CxZQqUDXw7THmPURbEGp6XK8MGlxu9ZbKx15wBE9EdkJRKgVVW4+7tGkA== X-Google-Smtp-Source: AGHT+IHU8251gm/kHqsUCz+WlrWModMbW3UqLm6JWpZoXhsop8C2c4ITs1MhCaJuO7GFW9rrBRhx X-Received: by 2002:a05:6512:1051:b0:515:9eaf:5c21 with SMTP id c17-20020a056512105100b005159eaf5c21mr8475258lfb.36.1712589963980; Mon, 08 Apr 2024 08:26:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712589963; cv=pass; d=google.com; s=arc-20160816; b=mFLvSsWed2qlErTMYJF2R8ShYziZJv6WzY1pu8R/R3MgfLbqVCzG9LV9HEM8bWjO97 8kQy/dRJeKwCygx/h3zvJiCaaN/Hv7LErMh9YdZXEklxZAEmKONyStojWralH2O/ZbyM 0HVVSJEnNtBEx8cnrWEahn/EIRJ+ZiPcobPS8h0sh+jdL9voMuLgKMP27LgNfqcJbVrb cNSo/j81EpoSvhL3LhaFsbCm0a0IQGv94eoFrLrl/0QQPz+mHwdACgvZgjl8eNNs6Mzb PQadqfyZ3n8wHdmx6OAlg0AwKFk/8V/3TXbkwVOMFSZkJcoTLNzjhUC/o52OTeePolJ0 ld9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=E2bygDLxctLyEaBgrlNgxm+JWadAQkRVMDbvCvnQsQk=; fh=8a0psbI7Ye8meWmqofkFRlXc5ftThF5o/FvkMPs8ecc=; b=mjLGoxrkcxYednhlMtJJeSkTbFbPO98WZgerDrhEaC6zzZdJqy5PX7DRr3iT7H44tF yRnnJbTlF8DytZQ4uVP4VPN/xYk1BXpliaLXYHyL+qnywBkWNQJxiZWr+zVeHbZYCQaw nb7ZoHycQeCZ0Nga6T8iwyl89m/Xl24R/flwJqT0Ko75Jw+3zOSIWoStoxlzZuZcCyFm vB+OfwAR0j+uChaP3M+2X+fyxaJSmYpKXN5QbjO0K0tJ8wLSK9/pXztN6R3G1uAFjt6T j+Nnc3Dt67sXQAFPgkpGcN5StQ16kwupJ7jV2dgIi6ljh0d+vg/YIwjRWPAslA+iMM7K Tfag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i87uljCJ; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-135599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ho40-20020a1709070ea800b00a4e738368f3si3945698ejc.755.2024.04.08.08.26.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:26:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i87uljCJ; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-135599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id ABFB61F22D52 for ; Mon, 8 Apr 2024 15:26:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C93BC140E22; Mon, 8 Apr 2024 15:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="i87uljCJ" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DCF814038A for ; Mon, 8 Apr 2024 15:25:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712589959; cv=none; b=m0bo3uOu73k2qbijUvtQpLBY456B7fy/JumIn3jPxcT1FO0TX52KC5Yl6K69vhOK3tGNtEHRNL3hU6PP+3ZuhX/LzcUHxcKqGDKj31YPWZ22bqOsqERCl6aS68O6A3GI/4TcBCis7rxrzuQbwgZDNLdXGuaB6zUDPycPQLI7bF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712589959; c=relaxed/simple; bh=E2bygDLxctLyEaBgrlNgxm+JWadAQkRVMDbvCvnQsQk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=mZ1AR14rgyxdPOZB0eLo/ntiUhksF5kgP+4IsfPeIRfBe1N3fQGLlT5lu4cOz3ss/DBcddmjAwZhrMeCWv4/vaIqBc2CRDL14/Iu5kSOFa4vDwltKjzXnWONF/l2qZblEf5Gpb7WNxb21W0nILdP+XrvR0MHm3k/+3pV9Oxyd38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=i87uljCJ; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712589956; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E2bygDLxctLyEaBgrlNgxm+JWadAQkRVMDbvCvnQsQk=; b=i87uljCJUPsuJLpA4HuRizPR9hOuHe5hVeKI7gRiakC72Fj8wCfUVqP7rFwVyc8F0DfUd8 wJ48ZiJI9y2/mgMMPx67aCED9/mBl44tJDjJT0WHwPYWSDgUiIpDt9ejDq3yZfpPKiqYL0 THd0mGxmWCBjvjejNNonXpRmzgD6hBw= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-46-3Nu3O5w2MYqMQE1K92yMSQ-1; Mon, 08 Apr 2024 11:25:54 -0400 X-MC-Unique: 3Nu3O5w2MYqMQE1K92yMSQ-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-6993bd297ebso47656056d6.2 for ; Mon, 08 Apr 2024 08:25:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712589954; x=1713194754; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E2bygDLxctLyEaBgrlNgxm+JWadAQkRVMDbvCvnQsQk=; b=fZFV5MYXMMPpGoU2mIAYfu9qrlNOKe3SOi191wH8Dfrz1tk7gyWY1B/YWMr9troXzu oSl/AaTMntOhkSZsegfMBLhkqftzlu6DUci5e3UEas4UuE1SHiH8/0D+omxlOfrB18CA ZdRhhn/NA431KeYAB4p0SVUTBFSzOWq3Zo5ud6deFHGWdAxmWCmW2DFvQrXT5bow6zEX U7Mxjyi/5yojCsuzPOOz6RTo3HY10clLZ8UlX1W2zFbvyeUVkW+LU/pVSyc1/iIvcVA9 DW4NzWRXVHDA2/1uR2nrhcnK7ERdHYXG0P3nYXk9IlblO8YuUPpfM/b2GYJz8eJObKSJ YEWg== X-Forwarded-Encrypted: i=1; AJvYcCWZnI4uXLj3Ale850buU4ObmKtfwMxtmRSlZCaOVQVUi+CEkEEiOq07Kj52lFIHopCRNxlA5DXdHGI1E2cSMzUz/smDPI+p7qDs+Gne X-Gm-Message-State: AOJu0YwYLCcQQ7C3/qQxstKUKgBPlC2R7aTSsXf658g1/tPs/4VI/hfF KTRVb1v8APSb2oy10DuaBs0Bb6jVq+ryl4Xm36pqc7BUUlieF8l3h3uYHuhjnxW1cNtExbnGl9O yt8bs07WqX+ole3lXrr+I95OKwfqQNGc2ASjZ/v8tOSa4Gj2KzA3ZPz2C9otmLg== X-Received: by 2002:a05:6214:e47:b0:69b:1f07:44ce with SMTP id o7-20020a0562140e4700b0069b1f0744cemr2010616qvc.60.1712589954271; Mon, 08 Apr 2024 08:25:54 -0700 (PDT) X-Received: by 2002:a05:6214:e47:b0:69b:1f07:44ce with SMTP id o7-20020a0562140e4700b0069b1f0744cemr2010603qvc.60.1712589954016; Mon, 08 Apr 2024 08:25:54 -0700 (PDT) Received: from vschneid-thinkpadt14sgen2i.remote.csb (213-44-141-166.abo.bbox.fr. [213.44.141.166]) by smtp.gmail.com with ESMTPSA id j9-20020a0cf9c9000000b0069b20aed8b4sm512884qvo.103.2024.04.08.08.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:25:53 -0700 (PDT) From: Valentin Schneider To: Alexandru Ardelean , linux-kernel@vger.kernel.org Cc: 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 Subject: Re: [PATCH][V2] sched/rt: Print curr when RT throttling activated In-Reply-To: References: <20230516122202.954313-1-alex@shruggie.ro> Date: Mon, 08 Apr 2024 17:25:50 +0200 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 the one that contributed most of the runtime that lead to throttling. See https://lore.kernel.org/lkml/20221209163606.53a2370e@gandalf.local.home/