Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1300044pxu; Sat, 5 Dec 2020 10:39:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyE01VC9CUpXG+5NhiSdCtF/OnL+AtKb6ZQZWWeMFu7/LU+Ix5Chh9NS4jZP1F9lVPQdUZx X-Received: by 2002:a17:906:6414:: with SMTP id d20mr12602635ejm.82.1607193590451; Sat, 05 Dec 2020 10:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607193590; cv=none; d=google.com; s=arc-20160816; b=C9D9rw7UG4TqCiMg99y7cJnoFCflj4SHouGiq9xdbYOKGM7acy/0w2D4FVJmCFOfFz CwNk9DqjNW1Xht4hddrJwyJfa6SrbOruZs7wXqo4u0KZ5wnnz7PBsqzU/3Noy1OxGW0c aqCcQcxl7wn+rwnsQCrYv1w8FHPrpRwp6tKliG8+ocSyYg+PDxLl1C3as8NBlYqXzgGN LQbkg7xcSfmy6BvXCb25J2kBQIIc8z/Ea2SWyy/3sZN592dwiBEelpnizOtVcasJ4KIb XMrbDhOcPDE+G8bLzxKVFRvyNu8P4jqAfSiK1r/oAN37W/a+ny9Lt9wEJ719bYE0jgM/ Arug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references; bh=lkyekYoc24XGwJ3lm0JRQPzmmhQt1fZ1Ym4sBvi6zJg=; b=W7qoSOv/xYRAdB3DQymLX7Ji2+El8LitP5eHZxG5eapfTTLt8v+lpc2+kBUuWcKT31 4XyQR7IEh4KzkUws6gLM9IYI1VtRdBV2aDIZ4QbVlOt4kDVPJS304WKWHH31RR+JexDT 2Q9+qXIqNuKDuEO/SqosdPjDF9EpvMO9IKY0NBOc3JTNVNMSag8BMpQursj/Y5wlhDOk OP62cVQtmvA69TYxCwsOSublJBEM60ATYrX0lKsgUOETMYd5VHtH1e4bXIxQiQQeVe93 JiVW3bnlB65EfsJ0PzF/mI+64jIs+VvEkrmaCdYpncLXjX3FCHOWtGwl9jH2OiCJC966 oBNA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt5si3604149ejb.639.2020.12.05.10.39.27; Sat, 05 Dec 2020 10:39:50 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726327AbgLESiI (ORCPT + 99 others); Sat, 5 Dec 2020 13:38:08 -0500 Received: from foss.arm.com ([217.140.110.172]:44454 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbgLESiA (ORCPT ); Sat, 5 Dec 2020 13:38:00 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BE886D6E; Sat, 5 Dec 2020 10:37:13 -0800 (PST) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8BF5B3F575; Sat, 5 Dec 2020 10:37:11 -0800 (PST) References: <20201023101158.088940906@infradead.org> <20201023102347.067278757@infradead.org> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Qian Cai Cc: Peter Zijlstra , tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, bigeasy@linutronix.de, qais.yousef@arm.com, swood@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vincent.donnefort@arm.com, tj@kernel.org, ouwen210@hotmail.com Subject: Re: [PATCH v4 11/19] sched/core: Make migrate disable and CPU hotplug cooperative In-reply-to: Date: Sat, 05 Dec 2020 18:37:06 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/12/20 21:19, Qian Cai wrote: > On Tue, 2020-11-17 at 19:28 +0000, Valentin Schneider wrote: >> We did have some breakage in that area, but all the holes I was aware of >> have been plugged. What would help here is to see which tasks are still >> queued on that outgoing CPU, and their recent activity. >> >> Something like >> - ftrace_dump_on_oops on your kernel cmdline >> - trace-cmd start -e 'sched:*' >> >> >> ought to do it. Then you can paste the (tail of the) ftrace dump. >> >> I also had this laying around, which may or may not be of some help: > > Okay, your patch did not help, since it can still be reproduced using this, > It wasn't meant to fix this, only add some more debug prints :) > https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh > > # while :; do cpuhotplug04.sh -l 1; done > > The ftrace dump has too much output on this 256-CPU system, so I have not had > the patient to wait for it to finish after 15-min. But here is the log capturing > so far (search for "kernel BUG" there). > > http://people.redhat.com/qcai/console.log > From there I see: [20798.166987][ T650] CPU127 nr_running=2 [20798.171185][ T650] p=migration/127 [20798.175161][ T650] p=kworker/127:1 so this might be another workqueue hurdle. This should be prevented by: 06249738a41a ("workqueue: Manually break affinity on hotplug") In any case, I'll give this a try on a TX2 next week and see where it gets me. Note that much earlier in your log, you have a softlockup on CPU127: [ 74.278367][ C127] watchdog: BUG: soft lockup - CPU#127 stuck for 23s! [swapper/0:1]