From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752844AbcLJQdF (ORCPT ); Sat, 10 Dec 2016 11:33:05 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33221 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464AbcLJQdD (ORCPT ); Sat, 10 Dec 2016 11:33:03 -0500 Subject: Re: [PATCHSET 0/6] perf sched timehist: Introduce --idle-hist option (v2) To: Namhyung Kim , Arnaldo Carvalho de Melo References: <20161208144755.16673-1-namhyung@kernel.org> Cc: Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , Andi Kleen , Minchan Kim From: David Ahern Message-ID: <00499939-48a7-217d-8127-47763abf5fbd@gmail.com> Date: Sat, 10 Dec 2016 09:32:54 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161208144755.16673-1-namhyung@kernel.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/8/16 7:47 AM, Namhyung Kim wrote: > Hi, > > This patchset implements the idle hist feature which analyze reason of system > idle. Sometimes I need to investigate what makes CPUs to go idle even though > I have jobs to do. It may be due to I/O, waiting on lock or whatever. > ... > Namhyung Kim (6): > perf sched timehist: Split is_idle_sample() > perf sched timehist: Introduce struct idle_time_data > perf sched timehist: Save callchain when entering idle > perf sched timehist: Skip non-idle events when necessary > perf sched timehist: Add -I/--idle-hist option > perf sched timehist: Show callchains for idle stat > > tools/perf/Documentation/perf-sched.txt | 4 + > tools/perf/builtin-sched.c | 252 +++++++++++++++++++++++++++----- > 2 files changed, 222 insertions(+), 34 deletions(-) > LGTM Acked-by: David Ahern Suggested improvement: Add the length of the time window. ie., data collected (or analyzed over if --time is used) for N.M seconds. Puts the amount of idle time into perspective.