Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3305352lqo; Tue, 21 May 2024 12:46:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqLvqZyFx/AR+jvMJJ4SrOBTgoejTywxiTSPrFx9dk5bS5TLUCC9AGfAFDfQn4mFZe7+Sn4ZsK6s7emAe0qxNhgIGsfiOpvrVlb/qVsw== X-Google-Smtp-Source: AGHT+IE0Y+sJJMiAoqImMjHijQYFp4ZE9qHcoXl/IonL1JYYzBP+QNbTKEbn0URODFNJaAXmRa/k X-Received: by 2002:a05:6402:27cd:b0:573:555e:6d89 with SMTP id 4fb4d7f45d1cf-573555e6e72mr22421161a12.1.1716320768121; Tue, 21 May 2024 12:46:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716320768; cv=pass; d=google.com; s=arc-20160816; b=HV7jVPn9BmEIClJKUFZRmmfPhvOBcZtJzTEbrnwT+7nXjKQ7a9iBEEuO9R23ULJyBV eFbsdt3zevKmpdwHuTgRfW7cAu7VoBMfOUe97vRLRS/FDZ09T4Y9KOnpSXUEDjtZB/Io M/eXrMGgLck442+TQqHdRLFYQ7jq3tslJePefLGuBRR7+Br1Ui77nS7vM1xPzKdXAfDr 8h5BMynTdsr8Uxlr3f5AuXG52jMe61Sdwpq3S2GOxLSm7HPjXDVJu+rDGsLiptduUhcE +Cqlx/0VVW35xXgTEyOkVj+QGEd2RvD8zfmLIhdzP/MUidSBWkknpaFjVmk1drRNm0Tk cfIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dcnIdUU6ye0la46famFCoFBtqthvP4TQXFf8FjL5MyA=; fh=mJOyb//u/H0YMrhZMsmGWtXGV6W5I7cCT+EGkE8wL+g=; b=C2fKXxqM+4J80cdqM6FrtI84z6mRqlXkcLGvniIhleQUikllGbeZwvYTvJrorVSywh QWzEgUgw/mq4yE+BRQvxmLoyNyo4VYEjx8PVmvJfOoYYm/gtBwG8ykfxpVemNkMPT5/h HMmQMoigOE90RE0vJlAvilr8I2vJKC14tQUSbJmnuxCjk8sviPoLyUrJesab8+Bf/79O 4emfCkl+sfIONfU5Zsv5oqJNLanozevUdwaPiruUNU6vASMYTguSrUkCB3Xw3lbsLEbp mOrkMKTOd6+h4Qxe6qrujK3f93O0x3FQumOq7tVptUBhd4YEOvAO8MVjVZazsFhlcBup rvLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=upvdvzah; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185392-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185392-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5743067d141si12122706a12.208.2024.05.21.12.46.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 12:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185392-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=upvdvzah; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185392-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185392-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D51931F22D1F for ; Tue, 21 May 2024 19:46:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EFC4149015; Tue, 21 May 2024 19:46:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="upvdvzah" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3800C208DA; Tue, 21 May 2024 19:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716320759; cv=none; b=UedERdfQFY/8IAEsgDVKZN/xABpTeWmkh6ruMm4BAuDhTY6u/gQjOeTQkIgsd98cUtm85lIj5cWwO9Iv4AaEOgtWShnlRfWKsPlTD5D9CYuNTTaRaDdPcbhTjUtn/MC8ueZs8hrvRls0oHBLDxTcEaCjFS6yzapwIaBCp/GeKNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716320759; c=relaxed/simple; bh=0p50TxWeuKVV+sR+6J8Ck7CfuXv5gfWjV85pFForRUo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=m7M6VQaKwV38YAh9cErcufStk70qGepHbIHQW/jYSL7bpOTFKiCTJg/FszgEgKJYDNZpd7rYIlSYMPwD2OkjY7/5rw91A+95xC7ZcAwdiFrk47qF257PNLrVawgl6R4vhyYp8ltTgaQFpgF8RYHrJSFzG/OWLIdW7w+m3hXuXx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=upvdvzah; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37826C2BD11; Tue, 21 May 2024 19:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716320758; bh=0p50TxWeuKVV+sR+6J8Ck7CfuXv5gfWjV85pFForRUo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=upvdvzahWfv8fs44zqgXihhgcg4km/sfEClY0rSg7DVyjwztEzFP48ET70RWDRkba EQPvNmr+uxxjCrLSeW1FodEc7hBIplkXnUxNcKh1gm0+72gSs/69WzIUcRlxWjt+lg ujKb421AWpgXc4uncqBWkbrSRZtO3DcVJlkZglrqFTxKTPO8pqZh9x9uJxmXfxaUX5 31exZPCzkuJa1EjxmntXJfstuiLw42zlN8umlFV8+wjcvRLGU5aO22etRiIg26fRUq DhCh3bQ+GVywor3jheDUamQOsx/hu0gsXcXr88un1EMbSWBV/G+W2WntECk15lRUK7 Z+G37cAHRoV8g== Date: Tue, 21 May 2024 16:45:55 -0300 From: Arnaldo Carvalho de Melo To: Ingo Molnar , Namhyung Kim Cc: Ian Rogers , Peter Zijlstra , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , Changbin Du , John Fastabend , Andrii Nakryiko , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH v1] perf top: Make zeroing histogram on refresh the default Message-ID: References: <20240516222159.3710131-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, May 17, 2024 at 06:25:16PM -0700, Namhyung Kim wrote: > On Thu, May 16, 2024 at 3:22 PM Ian Rogers wrote: > > Instead of decaying histograms over time change it so that they are > > zero-ed on each perf top refresh. Previously the option '-z', or > > pressing 'z' in tui mode, would enable this behavior. Decaying samples > > is non-intuitive as it isn't how "top" works. Make zeroing on refresh > > the default and rename the command line options from 'z' to 'Z' and > > 'zero' to 'decay'. > While it may make more sense, I'm afraid of changing the default > behavior. I think we can add a config option for this. > Also instead of adding a new option, it should be able to use the > existing --no-zero option. Hi Ingo, What do you think? -z and the default to decaying is in 'perf top' since the very beginning, when it was called kerneltop: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e0143bad9dbf2a8fad4c5430562bceba196b66ea Cheers, - Arnaldo