Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp690214ybe; Wed, 4 Sep 2019 06:23:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGthxw2NSBUL2mvrwgYw5FOtRzii9PgvyDWkbjo7YSBX1ffUlNE8JCLzI2x7bw4c3uaM1b X-Received: by 2002:a63:9249:: with SMTP id s9mr34048705pgn.356.1567603382827; Wed, 04 Sep 2019 06:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567603382; cv=none; d=google.com; s=arc-20160816; b=GfAod2s6ensbqowfWCMlY4+EBmeAQGwYO6fYXkI+FFz5Dr5d+7mEEBveep+46joT7H X73Ruj7VlvkQ7pIL/dPmNOV1SSE16dbiaTphOSw+7Y7uqseCrocswqTjtMtXSuWvKt1k RJwZIjR3gUDxyMtDDpqyS5BD8WdzfhaYf8vh74GfWdKzf5ATxU78tw8vNKT/BMpbvx84 ri/NJYtNMaamRZT5cZhK/Jg1z4Eb9XxR8ebvskhi8LlbI64akuve9hE92dBE9vl0pCJF 1oY/XonjHdZyyPhz47A0QeEvin7nufq2QB3kcN9AjC2EbXYMg4znDBLyoMjQbci8m0sB dGWA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=o46LVJ6JG6Xk945+Cx02l37UQMhl4sdEdOLzMMRDMXQ=; b=SHQUuD9jw0v36ZqSR0Ad4jfn/bu1oNdroKJ6y4lvyUEgtY35geQ0NSlkoVrvOChgsw KGuWqd6Uq3MdSpwfp2VWM/VBrrF/9HPRbXBe2VwaYIELIy1wUVvdH41dY85Cr9D3LApB sEYOUgST4AqIv47AFNbAmMSnPaZ9xNUdBUBSJhWvXw3rj7Rch2AgwNu1PAK249py6px+ I9r05I6Ze+TzrPfs8auJp6SGxO9KAfiGkoOBtXFEjYUXabg07aAuekHt3udIJ07EGoAL C81DjdJ6fYzW8MMeWyRtBPKaall0oVjc2Tf9+t//UJTTqRfXecbixFc7Vq5bPfoCGzaY vJHg== 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 c8si5370019pls.110.2019.09.04.06.22.45; Wed, 04 Sep 2019 06:23:02 -0700 (PDT) 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 S1730166AbfIDNVw (ORCPT + 99 others); Wed, 4 Sep 2019 09:21:52 -0400 Received: from foss.arm.com ([217.140.110.172]:54856 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729020AbfIDNVv (ORCPT ); Wed, 4 Sep 2019 09:21:51 -0400 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 3497528; Wed, 4 Sep 2019 06:21:51 -0700 (PDT) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 935123F59C; Wed, 4 Sep 2019 06:21:49 -0700 (PDT) Subject: Re: [PATCH 2/2] sched/debug: add sched_update_nr_running tracepoint To: Peter Zijlstra , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner , Borislav Petkov , Dave Hansen , Steven Rostedt , "H. Peter Anvin" , Andy Lutomirski , =?UTF-8?Q?Jirka_Hladk=c3=bd?= , =?UTF-8?B?SmnFmcOtIFZvesOhcg==?= , x86@kernel.org References: <20190903154340.860299-1-rkrcmar@redhat.com> <20190903154340.860299-3-rkrcmar@redhat.com> <20190904131309.GS2332@hirez.programming.kicks-ass.net> From: Valentin Schneider Message-ID: <07518d3f-cfa8-d6a5-2a13-4d8a7457ee15@arm.com> Date: Wed, 4 Sep 2019 14:21:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190904131309.GS2332@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/09/2019 14:13, Peter Zijlstra wrote: > On Tue, Sep 03, 2019 at 05:43:40PM +0200, Radim Krčmář wrote: > >> Red Hat adapted one of them for the tracepoint framework and created a >> tool to plot a heatmap of nr_running, where the sched_update_nr_running >> tracepoint is being used for fine grained monitoring of scheduling >> imbalance. > > You should be able to reconstruct this from wakeup and switch > tracepoints. > > I never tried to do it myself but know some folks around me gave it a go (Morten, Qais and maybe even Chris). I can't remember the exact details but there was something about not getting the right input - duplicated wakeups, or no migration information (I think sched_migrate doesn't cover all of the cases) so the information you're building diverges as time progresses.