Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2351924lqb; Mon, 27 May 2024 17:42:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdMIw20XzgipstyZBitR69BqFawMEMnL4FTsHwUyHlsAeVdNxJ9hJAU7aa4u0RYHMmOxGkTk+zOheLydiYBfiQZ61vp8W1tlxKpFDGEA== X-Google-Smtp-Source: AGHT+IExZ25ogMNdCBDCYW1NnDYhg/VBNlbG59qJJCqisSXYUKJCW2vh3kQVYLm6+0XN0zX+fZJm X-Received: by 2002:a05:6870:2186:b0:24c:b3cc:a8b with SMTP id 586e51a60fabf-24cb3cc5e79mr10549034fac.50.1716856960007; Mon, 27 May 2024 17:42:40 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fcfd6dc3si7045316b3a.206.2024.05.27.17.42.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 17:42:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191575-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=neutral (bad format) header.i=@oracle.com; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=m7oMrNke; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-191575-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191575-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 924E12834B1 for ; Tue, 28 May 2024 00:42:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48DB112B17C; Tue, 28 May 2024 00:37:17 +0000 (UTC) Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (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 0951313C81B for ; Tue, 28 May 2024 00:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716856636; cv=fail; b=so2pCYm1qVHk2D74UkgsATbNXhzUkjj+R0juKieYI9sr6C5xiZllRGuI6BrvJRV7IzYyJkFB+dLTpIqyBRPNa/IdspvrXiIC8QGstD03XARMzbWpVnpjhY6e7Dj+yLqzRMuK9HZGzpCpw3Mj4y8SrcWLoJmVycxj9wO9G88HVAQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716856636; c=relaxed/simple; bh=fE8Lj7oIdkYG+2IXF/V3Uk8Sx22gVS/2kjJiYpE2bJ4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=PZYkvwLXAeedWANNWOdDRkYbA72wMspcYcL2ylyc9q3x60KgMorz18jYd8cP2ZZGNRRaR/emudpHfLfQWtt8A5In4KtX89q48dRRuKU0T7swrJELZRRJCWxHyOT5+ijn1lqPjIR3ShMomgshtmYcD3Htnuj0PNKv4UQk9PkYqJc= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44RDI4aL025161; Tue, 28 May 2024 00:36:59 GMT DKIM-Signature: =?UTF-8?Q?v=3D1;_a=3Drsa-sha256;_c=3Drelaxed/relaxed;_d=3Doracle.com;_h?= =?UTF-8?Q?=3Dcc:content-transfer-encoding:content-type:date:from:in-reply?= =?UTF-8?Q?-to:message-id:mime-version:references:subject:to;_s=3Dcorp-202?= =?UTF-8?Q?3-11-20;_bh=3DKEcOg6TTu5LjMdHM9GsPiktnEd8VxG7vmFKMgnemHPA=3D;_b?= =?UTF-8?Q?=3DSin+0aEnjZWTD5ovJOh+yzC1HoNaS00IgaXaU8aI6NDs2yJyYjiF4X7Jxsvh?= =?UTF-8?Q?HqaBW+wg_iaTcmWc1OQEGct7cOlmzj/w3tlE3oKOrjbAODvtFmyYYhweSIUCNPT?= =?UTF-8?Q?B8idFsZDQu8Ggn_IMqNiEAn17XTNxCFdK+g2m64A9pecaYiFRYbCmkDNMmQye+9?= =?UTF-8?Q?X0iX5s3Jc4HAM+DRGQOV_hgTTwLLz3vOwxpC62GsklqPW7csdbWDtfwGG/yszEW?= =?UTF-8?Q?r+tzIT83rQPiGFzZa801/nYdlX_uwveJuieNFIgqjj7Fa5RRyEPVE/3R5OuYJW9?= =?UTF-8?Q?zYgTfktqroqOgWBOM2s+arUTwW585OGN_1Q=3D=3D_?= Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yb8hg39cp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 May 2024 00:36:59 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 44RKdPcu037607; Tue, 28 May 2024 00:36:58 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3yc5057yh0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 May 2024 00:36:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bcjQarElSkTdC7tMnGThNP/nOGjZ8CjY/a4WfCWbNjp3FhXan7QZIeRyWswCuXG15UNSWNaXM+96t/2VfuoTvHguTw/bSrZ8cBiQS22xsxGQe2JXUtGCuZMp6AGBUBu3nN1BLAhzZCkxqo1pNpY5VVCh88g0LmrzwZ8sJIJe7oNOtQHlFuyHXzoyr6UD0Tto2JlchELXtzyBDZeq/+4ZWgt1cayTitZFWhCs+XyyW/8XG7Y+AufMCqoRvMDd95PfQelwJzAHIVkPYKsweXSc6t58r+0etAYtBcvjZt6W51uGGsekZ58r0Z26ffJ1QFTk4XJ89Z8H3C6RyIDv6hI9Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KEcOg6TTu5LjMdHM9GsPiktnEd8VxG7vmFKMgnemHPA=; b=A7RI2rA6Qbbpo4hpSy0kZZUkCSgfevkTjF3XLyQ3YvJWczCbSts/H1kSC/bwnZyb+9GjzUk8Pd5C8hTG43CoajSaek0IzAaBSnXTKroAF4Jx62E5iQey168P47GmncKHjFve7DBY55XFPIP93rH8M4XU4HmpCHkr7L3n8xKJkFszu3OTJbROjJVHdt3aXq45aM/sQZQLGMf9go8RiChQXHTxbGunL9TLPBA1zvlZQRfQMGkFyw8ekb47AtfhpsIg3dh50vk4bzSwUN3atqLKlk/eje0xQEVPp8fZDv/brsiTLRHXItSeIa9yjUdVfENDJIqVb8lTC3MB+uDzeaBZ0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KEcOg6TTu5LjMdHM9GsPiktnEd8VxG7vmFKMgnemHPA=; b=m7oMrNke2+woycUhwlGMrV04PbyUCk/D5feRGS0iAyVFNlFHwEVV92yqtUpSzU2xf1Qdfwfvm3BAb5oZM7Q1LQSBUVjVHjBSf6iwMuZOUko/u24UdhXfULc11nRXsIRakajG2IZLjQKbUBiLfLavJX44BJREovhSJ5mg1qDtm6w= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by DS7PR10MB7177.namprd10.prod.outlook.com (2603:10b6:8:e1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.29; Tue, 28 May 2024 00:36:56 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e%4]) with mapi id 15.20.7611.030; Tue, 28 May 2024 00:36:56 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, paulmck@kernel.org, rostedt@goodmis.org, mark.rutland@arm.com, juri.lelli@redhat.com, joel@joelfernandes.org, raghavendra.kt@amd.com, sshegde@linux.ibm.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, Ankur Arora , Ingo Molnar , Vincent Guittot Subject: [PATCH v2 30/35] sched: latency warn for TIF_NEED_RESCHED_LAZY Date: Mon, 27 May 2024 17:35:16 -0700 Message-Id: <20240528003521.979836-31-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240528003521.979836-1-ankur.a.arora@oracle.com> References: <20240528003521.979836-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR04CA0358.namprd04.prod.outlook.com (2603:10b6:303:8a::33) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|DS7PR10MB7177:EE_ X-MS-Office365-Filtering-Correlation-Id: b6f0f6c5-4d22-4c35-9b63-08dc7eae4703 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?cmGhlHuJx1oEcLxBNKNoRC+NIGgcXUyynAofBhY1xiZhjE7AUHrGnol/5hpO?= =?us-ascii?Q?+sIM+vypbxR1T5uSvRkJOzZH0GRA8lKh4gBFWwdpDOMySTDLOe5uO7agoPbT?= =?us-ascii?Q?F9EOAGZMOtg8NmhydAVNZ1tbluDRluErtTLjGzzb7Z9jpHzlMT90h0kKeGl5?= =?us-ascii?Q?xfxUwg+JFGwCA2FNpwExM76uuipya5k6XHO7qWaOe50e8lfsixStrPwmqv9r?= =?us-ascii?Q?kvNRsb11F2jbJkrNZHuTBzNVNGTHW2MdDQL7INp+7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DBnazbqw2dSo2QKROBMxeDGPg3OpWPCOHYMb9EyHOinbsaof?= =?us-ascii?Q?Lug94ck76Pv1sabVyWtj1691uWkgWxR2znGLGExZrsertjFIFDpeDWWfg6NY?= =?us-ascii?Q?Hu57aExg+7oPfh2xTRUyzJ4jjscwKBdDmqkaxcesqg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?UWnnnbAIN1c4C9wQICynJ6k6tlj2vl6K9/HQkMpkmO8N3NSSmFLV8CW7Brsb?= =?us-ascii?Q?fJB/6es0TyW/UUyJ6r/a5C+U559Mpp4pp8GogFwdDQKIScacjP6qQndADeZn?= =?us-ascii?Q?aGEc6Arcj2nhrmNMgDbyB9lE2Ac8sYPX6fvRPQckNS5cjp32ci+itgLMa29i?= =?us-ascii?Q?GbSfw+/nR0wQxB8MH6sBUoxwPtqpu49INrDY/AzU7+P4Foc359d8QQpuVWe1?= =?us-ascii?Q?xLCbSpqwpM1KmONVq/uNUWOSSSH9aTYHJWOtRAWBJmwbgzbzQckixhWhQp7h?= =?us-ascii?Q?MbhAIw9gF5/L9w8/N+tYY5b/lFHZNKuKF1pGR3OmnM529E6dE8tcw9hNiK50?= =?us-ascii?Q?bc6yX4SYy7F41ppUJQq0Pebp1NPFwXARlVd/JxhhScoVew3/H5SZz3FzFbsV?= =?us-ascii?Q?cdJaJbN2vvrQAEmgw5eT+I5mMroc56qLLA7xq9R9d6jeZCAL1nolbaoFlfwq?= =?us-ascii?Q?jGVmytaiq5XuEEHQPhFWchetOqazV9XNy6dIlGeQoj0mGHcpzsmrod0YxXur?= =?us-ascii?Q?LAvVxD9E8qlJI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ihTDA8o?= =?us-ascii?Q?e2QsGIFRPbfBS0mm9MfnGlqlg00o1HpsNqDRpo+/EAgsT5cjXJ1VbpE6s8IV?= =?us-ascii?Q?EozHt/1uIJzbVakmdNX9/u6yM+qSDSvlXPTI4283gvMKglbNUFSuIx39/581?= =?us-ascii?Q?Ffw1rWAK31g1IKP/2iwIaPKNIvOdSCQzYNW2a/zxIfHuFHCbKqrK28IkipF6?= =?us-ascii?Q?cQ=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: L33ocEgSmE+XIBfq27JAUoRxyxoxC37xdV0VjxkxqztnRTvZ82OgqI6QiGlhbPB6PSEQg8IyfgSwlajuTY85gGjeBII8m4QHlT+fHoBJdwPcRbPgpERy8Fn86ysnaN/WJ1nDoFLDoxwiFzdWWLoOiJUeHxrnbu8CH+JBP0NFx+I1me/TRNeo55lirwUPmOBDLgyFGYNSL5QIHeRwvY63TB7SkdrsGf3qCX1Qd81HtyqKWz9OO1Oew6Apigiv8FajYBYSRCMDWqwiXJoZtrdMmnR2fMPpzg037a2A74E01BcxixYdSM2c7KR6r/Ez32V7r6sqQFzeClZ5gDNm8yBEFm78uFZ7nky7JiH8z9RyIfQq46QC2Dgs4rIjeMvFeK++pY+FyqljFuJWGUaoSOhPaEI758UVjSzBoD7pR7Ady3saekkoS7EmOS0naZCauUM7oiCAHrhifvK0DZ50up2p7XO7gGdK68v4bb5LXJWBEInr2WPXBTcbj49BkDju6c42Z7NIHBdCcicZjqKXlAsqvjAjCFdAVebzLR4MSYWWurqq746A1Nazu0VTtk1bXNcsSOK8LAiacrg8Lk1iuBlvr0qv8oqkCoDCs70MrdyeKBY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6f0f6c5-4d22-4c35-9b63-08dc7eae4703 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 00:36:56.1956 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Qn+jn/R7dt+AMla+e1tsZegFihs1MwNA20bKlcIeg7ekRjulUUVvH9gU8WR81qSpQu4tAqOt9zn0VrSfvuC8r25g53+r/cxvhpjOxpldFTk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB7177 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-27_06,2024-05-27_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405280003 X-Proofpoint-GUID: t9mVAK44QA6DJhOergGtRERsRVzn5-Xf X-Proofpoint-ORIG-GUID: t9mVAK44QA6DJhOergGtRERsRVzn5-Xf resched_latency_warn() now also warns if TIF_NEED_RESCHED_LAZY is set without rescheduling for more than the latency_warn_ms period. Cc: Ingo Molnar Cc: Peter Ziljstra Cc: Juri Lelli Cc: Vincent Guittot Signed-off-by: Ankur Arora --- kernel/sched/core.c | 2 +- kernel/sched/debug.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 2bc3ae21a9d0..4f0ac90b7d47 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5673,7 +5673,7 @@ static u64 cpu_resched_latency(struct rq *rq) if (sysctl_resched_latency_warn_once && warned_once) return 0; - if (!need_resched() || !latency_warn_ms) + if ((!need_resched() && !need_resched_lazy()) || !latency_warn_ms) return 0; if (system_state == SYSTEM_BOOTING) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index e53f1b73bf4a..a1be40101844 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -1114,9 +1114,12 @@ void proc_sched_set_task(struct task_struct *p) void resched_latency_warn(int cpu, u64 latency) { static DEFINE_RATELIMIT_STATE(latency_check_ratelimit, 60 * 60 * HZ, 1); + char *nr; + + nr = __tif_need_resched(RESCHED_NOW) ? "need_resched" : "need_resched_lazy"; WARN(__ratelimit(&latency_check_ratelimit), - "sched: CPU %d need_resched set for > %llu ns (%d ticks) " + "sched: CPU %d %s set for > %llu ns (%d ticks) " "without schedule\n", - cpu, latency, cpu_rq(cpu)->ticks_without_resched); + cpu, nr, latency, cpu_rq(cpu)->ticks_without_resched); } -- 2.31.1