Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp34597ybl; Tue, 7 Jan 2020 01:34:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwfPIumPAKQPfmNwWNgRgwRylmmgkfAIhXB2IWht9X89DovWBRMi5O0qkcp38RyMjnin0d2 X-Received: by 2002:a9d:6f0a:: with SMTP id n10mr124751862otq.54.1578389690164; Tue, 07 Jan 2020 01:34:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578389690; cv=none; d=google.com; s=arc-20160816; b=XiQbMGc6xaZ2VBTAMHY0Pkxq0AdgfpcENfhxkZSEzgtF+PLdQcdQGcp2opOTXNiNVA WUsUF56K7XOZjEVDpVXJ/JzK2OkTanDhJ12sR3VqiVEJ5s/dzXEQWCXKk0cgBgfoyryt I6DLPutA0UCPI9dcZJOAqt/nrvrLA/heKriq6WtW1lWooq+ob2mNbOAckk+JfYW/Fhf+ VBU8KH97lAoNsrtK009toIUNA0/tQWogF8FJ14ZTev6hniJjYlZdkdlYWZPQeTTbxnNf XsrYrtRmYl+72PKmSoZvnyh9lyzFlZkRfL2J7qcf5AzxjhA+IjlomcxOP1ctwSkKGXMb SWaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+gyT597CSUb3vTF8vtNS0ogoC3uLxUkJ9SR8FBD625M=; b=H3tfq2e2tFCp4rbxJv+lcTtwCMmTApCmwbdkN3p7yGySfsPB6COXhp5n2Q9a6pkxB9 UG0Y7/8LOdgHOR6fIWkEgjgDSuB/imKvargh5bPk31cA06hum5ZCN65kZPABnbPydFWt eNBXcoy7vcI8G8BpvnA/c5Enmc4rM65hV3rb39fP8jrDeHUYP6Bv0DDjDfe4r4VC/ZAT tY2w4wg0W7f976K3wCl/O/1xT+BQEQWW419zb0JVMW3u1/geU7xEj80i12MrkDbB4eZ8 uBi0QUVdCJBmLhh4rXmjHG2JXKActjo3h84G69TmeMvJgaTQTQKHe3VohdsBdW/QQ0xB Qwow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="3fMXxD/E"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si30814868oie.17.2020.01.07.01.34.29; Tue, 07 Jan 2020 01:34:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="3fMXxD/E"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727707AbgAGJcn (ORCPT + 99 others); Tue, 7 Jan 2020 04:32:43 -0500 Received: from merlin.infradead.org ([205.233.59.134]:48582 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbgAGJcn (ORCPT ); Tue, 7 Jan 2020 04:32:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+gyT597CSUb3vTF8vtNS0ogoC3uLxUkJ9SR8FBD625M=; b=3fMXxD/EMYJ8d0ZJI1DssRuSO RXnlTsdLu1NFF8Hy2n2/aGvsL5i4auhHTXtmaZFF3W1+MCaqP3C7usTxowV3MEqN6kYcEOw8iM+x5 rmqGV91sqPXKjQmFXz+jdt00LIK4MINOqfG8QSyIlUcVWxiG1j+6c7dO6Gg3VMQmqHzqAcdVvRWJk t2NRTqdFAvUPQ9y5laCFGS5e7JNacKpgQmgvqJGPSf5AhvYm7P53UO/h7nhearv2pBIV/diZUCaFw zbwzZDCmhTIa0r9PPvDdGmXG0Gj/IgyAlnm/Gwt7L1V+IoaZ/EpE0E2EHBU7mUImDfw6fH5aNtyzj Rg+XNI0Hg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iolDk-0004hL-W6; Tue, 07 Jan 2020 09:32:17 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 28656304A59; Tue, 7 Jan 2020 10:30:42 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 91E3C2B48A33E; Tue, 7 Jan 2020 10:32:14 +0100 (CET) Date: Tue, 7 Jan 2020 10:32:14 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: Wei Li , mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, mgorman@suse.de, huawei.libin@huawei.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/debug: Reset watchdog on all CPUs while processing sysrq-t Message-ID: <20200107093214.GV2844@hirez.programming.kicks-ass.net> References: <20191226085224.48942-1-liwei391@huawei.com> <20200102144514.646df101@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200102144514.646df101@gandalf.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 02, 2020 at 02:45:14PM -0500, Steven Rostedt wrote: > On Thu, 26 Dec 2019 16:52:24 +0800 > Wei Li wrote: > > > Lengthy output of sysrq-t may take a lot of time on slow serial console > > with lots of processes and CPUs. > > > > So we need to reset NMI-watchdog to avoid spurious lockup messages, and > > we also reset softlockup watchdogs on all other CPUs since another CPU > > might be blocked waiting for us to process an IPI or stop_machine. > > Have you had this triggered? > > > > > Add to sysrq_sched_debug_show() as what we did in show_state_filter(). > > > > Signed-off-by: Wei Li > > --- > > kernel/sched/debug.c | 11 +++++++++-- > > 1 file changed, 9 insertions(+), 2 deletions(-) > > > > diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c > > index f7e4579e746c..879d3ccf3806 100644 > > --- a/kernel/sched/debug.c > > +++ b/kernel/sched/debug.c > > @@ -751,9 +751,16 @@ void sysrq_sched_debug_show(void) > > int cpu; > > > > sched_debug_header(NULL); > > - for_each_online_cpu(cpu) > > + for_each_online_cpu(cpu) { > > + /* > > + * Need to reset softlockup watchdogs on all CPUs, because > > + * another CPU might be blocked waiting for us to process > > + * an IPI or stop_machine. > > + */ > > + touch_nmi_watchdog(); > > + touch_all_softlockup_watchdogs(); > > This doesn't seem to hurt to add, thus. > > Reviewed-by: Steven Rostedt (VMware) Thanks!