Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp221732imm; Thu, 7 Jun 2018 17:12:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKInrGgmdy5yEeP1Ojs6VQ95TgrvrCykJzTWq0/0DCs1koyZdZwfITmGFz8Ob7ZNWBlNMkfu X-Received: by 2002:a17:902:b087:: with SMTP id p7-v6mr4051803plr.227.1528416767637; Thu, 07 Jun 2018 17:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528416767; cv=none; d=google.com; s=arc-20160816; b=mkOFOvCVIYdDEad92rU0+eqoZOJy0pf2UuFBxquFfU/lwprMJ9+0WUHsHm08IGjfgt zXTaaurkYf7tC+vtIMFsZpQnHWruG9lLo6deUEefOb16LLoQva0U9N4+88tTwDQry8kj /VoeAVmUfnD229xTYVNdeJfFI1w+881TLv8CaUdvG7E3gpf8px1n5GE1NgRsQsEkEK8J swlIansTnHDiEP27g3B+UBJcW6VsVvdfUbk/O7EfXHdtwosHqrvExCCv2mwDQI+KxcBJ T6H3BcZnpV/TXNFfGxsm1l3+otjpRQoZi7xX5bTnIhXQsBpryuOwGH/+Updtk/UyBLkN CRlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=FvmoRnhafkxns2tZpB/1WcMtKlrjEYYNhQBgYAjcM7U=; b=EeWNe2RoLTMJMqf7rvpmPTj7mueAuyuk5+k4yQ+T+EIMjZrxo5rTIzYwWsZRHNIcbK qz19X0mVmD+Vhl8LGgxLyE5tZIuYRobcjVMripxMkGQ9rpLF5Wj65r2CSkfVMxTbhnHe eH8Dx9UMPTDR+F8ciZHu2gxFiuekKulLeiZtatkOxFgtDJ5mcYWQJYi3BHmLAf+mP1PP y2hqGAPBP6yG+4p+LvWnZGOBwhU8tGYNwFJqzDanLpSOP3IOYV3AW/FUiww0hGkSYNXy LKaMWec5hmYuWDok6+kdAP6JcrZrJdpt1RmN6SUxPOCVQ+X+5rmdHQxKpTFnz/ln7A8Z o1rA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 43-v6si56749723plb.511.2018.06.07.17.12.33; Thu, 07 Jun 2018 17:12:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752443AbeFHAMJ (ORCPT + 99 others); Thu, 7 Jun 2018 20:12:09 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54602 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752178AbeFHAMI (ORCPT ); Thu, 7 Jun 2018 20:12:08 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AE66CBB42F; Fri, 8 Jun 2018 00:12:07 +0000 (UTC) Received: from krava (ovpn-204-19.brq.redhat.com [10.40.204.19]) by smtp.corp.redhat.com (Postfix) with SMTP id BE59B1117648; Fri, 8 Jun 2018 00:12:04 +0000 (UTC) Date: Fri, 8 Jun 2018 02:12:03 +0200 From: Jiri Olsa To: Stephane Eranian Cc: Andi Kleen , Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , LKML , Ingo Molnar , Namhyung Kim , David Ahern , Alexander Shishkin , Milian Wolff , frederic@kernel.org Subject: Re: [PATCH 09/10] perf/cputime: Don't stop idle tick if there's live cputime event Message-ID: <20180608001203.GB12322@krava> References: <20180606221513.11302-1-jolsa@kernel.org> <20180606221513.11302-10-jolsa@kernel.org> <20180607154522.hyjmxn3q6zgcvsnx@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 08 Jun 2018 00:12:07 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 08 Jun 2018 00:12:07 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 07, 2018 at 09:01:30AM -0700, Stephane Eranian wrote: > Hi Jiri, > > On Thu, Jun 7, 2018 at 8:45 AM Andi Kleen wrote: > > > > On Thu, Jun 07, 2018 at 12:15:12AM +0200, Jiri Olsa wrote: > > > Disable stopping of the idle tick when having live cputime > > > event. When the tick is disabled, the idle counts are out > > > of date until next tick/update and perf cputime PMU provides > > > misleading counts. > > > > I really don't like this. This can totally change performance > > (e.g. less Turbo due to less idle) and performance tools shouldn't > > change the performance profile drastically. > > > You do not want to change the behavior of the kernel just because you > are monitoring. > This may introduce side effects on other events which may not otherwise exist. right.. I guess we can survive few seconds of misleading idle counts and perhaps we could detect nohz is enabled and warn about this thanks, jirka