From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932460AbcLLRhk (ORCPT ); Mon, 12 Dec 2016 12:37:40 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34370 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932163AbcLLRhi (ORCPT ); Mon, 12 Dec 2016 12:37:38 -0500 Subject: Re: [PATCHSET 0/6] perf sched timehist: Introduce --idle-hist option (v2) To: Namhyung Kim References: <20161208144755.16673-1-namhyung@kernel.org> <00499939-48a7-217d-8127-47763abf5fbd@gmail.com> <20161212172620.GD4142@danjae.aot.lge.com> Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , Andi Kleen , Minchan Kim From: David Ahern Message-ID: <4be90f86-ec74-de6a-fb10-03e749d02c3a@gmail.com> Date: Mon, 12 Dec 2016 10:37:30 -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: <20161212172620.GD4142@danjae.aot.lge.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/12/16 10:26 AM, Namhyung Kim wrote: > Do you mean adding an elapsed time so that it can see the cpu utilization (or > something similar)? Then we need to expose the elapsed time during record or > maybe just use time difference between first and last sample? I was thinking tstart = time of first sample analyzed, tend = time of last sample analyzed, dt = tend - tstart. If the analysis window (dt) is 5 seconds and each cpu is idle for 0.1 seconds of that 5 second window then the system is under high load.