Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2556897ybv; Mon, 24 Feb 2020 07:22:13 -0800 (PST) X-Google-Smtp-Source: APXvYqygTI/kh3IVPLJaCGp2jkUUsUBbW0+q/QDYSVp1Rt+SQ5p0a073M1/1ZIhZec8n7nI0/A1R X-Received: by 2002:a9d:7508:: with SMTP id r8mr40335684otk.116.1582557733407; Mon, 24 Feb 2020 07:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582557733; cv=none; d=google.com; s=arc-20160816; b=e/tozoHhzr99LxfBdbeoPG10y/R+i4hVbvBFbUmqFagk3knpJWfmsxKEswRifw6agX Ut70bWP2zW4Ppo6NmPSGErSi1SbjB5cUBb1B2th8Kgwza5WDaTyD88rWD6LwVlmBenCn LhSBXspyznjWrQHGwgp6T0b5LdXS3tcBhbXBFDUNGMrD1I90JmgFpe+8sUHyVhw7qKiZ f/kVOL8dwvF6R/vAG1tAdRGv4idaQXWgytKKJk7sNlAE0spCbNNp3NfqQSPPPdg6Itnq MR94QPeJvSL3cj8/sYjOYfUppTYoACwtXWxTn0uqOfRRIGpkxSq75O/3kSCDrkTfVgU0 PHRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=ctFgPEaLTauINUOtFhLesDFhiQAIeLv3zv/K4Mv0tP4=; b=GkBEVkO7261Vu4+YVyowUleMjYVE7r0ig5cCkPqTcGwveJa0FgDxpbIkO/ViUFGzJA UxLYQHVorly1MPG5RoClrt8+IxuIN7GLFz+8YG2bIQ5CfVaqPiyoMOioESor4wynMl40 udEiDRZ0HDj6jYo14EeApZndiLztO0vqPAApJWjpGi7S+4/vzPuIhJ9hUNJutYQl5+gk mjpx7ffSfQE8YhUTNDdkuHst45x+hV7Kk3WXazCVH/8gKkKTv5vNQ9Mg1F5rGtu5Vmjp SoYeCQlxRWoZoyZ9wmylUIXMQ49czjpEsGzIG2Gtfe5pSlKG0njYFzxHCXzRU+Yk/WBB iQpw== ARC-Authentication-Results: i=1; mx.google.com; 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 f17si5881958otq.96.2020.02.24.07.22.01; Mon, 24 Feb 2020 07:22:13 -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; 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 S1728221AbgBXPVW (ORCPT + 99 others); Mon, 24 Feb 2020 10:21:22 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:50371 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728114AbgBXPVE (ORCPT ); Mon, 24 Feb 2020 10:21:04 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1j6FX8-0005uP-H0; Mon, 24 Feb 2020 16:20:34 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 2A11E1C213A; Mon, 24 Feb 2020 16:20:34 +0100 (CET) Date: Mon, 24 Feb 2020 15:20:33 -0000 From: "tip-bot2 for Mel Gorman" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/numa: Trace when no candidate CPU was found on the preferred node Cc: Mel Gorman , Ingo Molnar , Peter Zijlstra , Steven Rostedt , Vincent Guittot , Juri Lelli , Dietmar Eggemann , Valentin Schneider , Phil Auld , Hillf Danton , x86 , LKML In-Reply-To: <20200224095223.13361-3-mgorman@techsingularity.net> References: <20200224095223.13361-3-mgorman@techsingularity.net> MIME-Version: 1.0 Message-ID: <158255763391.28353.13908318328593727622.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: f22aef4afb0d6cc22e408d8254cf6d02d7982ef1 Gitweb: https://git.kernel.org/tip/f22aef4afb0d6cc22e408d8254cf6d02d7982ef1 Author: Mel Gorman AuthorDate: Mon, 24 Feb 2020 09:52:12 Committer: Ingo Molnar CommitterDate: Mon, 24 Feb 2020 11:36:32 +01:00 sched/numa: Trace when no candidate CPU was found on the preferred node sched:sched_stick_numa is meant to fire when a task is unable to migrate to the preferred node. The case where no candidate CPU could be found is not traced which is an important gap. The tracepoint is not fired when the task is not allowed to run on any CPU on the preferred node or the task is already running on the target CPU but neither are interesting corner cases. Signed-off-by: Mel Gorman Signed-off-by: Ingo Molnar Acked-by: Peter Zijlstra Cc: Steven Rostedt Cc: Vincent Guittot Cc: Juri Lelli Cc: Dietmar Eggemann Cc: Valentin Schneider Cc: Phil Auld Cc: Hillf Danton Link: https://lore.kernel.org/r/20200224095223.13361-3-mgorman@techsingularity.net --- kernel/sched/fair.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index f38ff5a..f524ce3 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1848,8 +1848,10 @@ static int task_numa_migrate(struct task_struct *p) } /* No better CPU than the current one was found. */ - if (env.best_cpu == -1) + if (env.best_cpu == -1) { + trace_sched_stick_numa(p, env.src_cpu, -1); return -EAGAIN; + } best_rq = cpu_rq(env.best_cpu); if (env.best_task == NULL) {