Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp47344lqt; Wed, 5 Jun 2024 16:51:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXblasd3vvenPK+giGVE6Z8ZLkKUJm4q+kRf8apmmxHoDq7wx/qFrlg2CJxxcEidgcdj24TGcbPlSVY1wKlx45m9prZ2yUEN3VbggZ8Zg== X-Google-Smtp-Source: AGHT+IFK9BY2Tlpy595nF1WI2LmbpDBfKtmzdSYrcdXnGKWP3aqC4jMiau+hFY7LDkCQ0nIrz/Mt X-Received: by 2002:a17:90b:a47:b0:2c2:335f:ebd3 with SMTP id 98e67ed59e1d1-2c299985601mr1477823a91.9.1717631519257; Wed, 05 Jun 2024 16:51:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717631519; cv=pass; d=google.com; s=arc-20160816; b=dtQxFSr1Te5u30cVbYL/OrQI5yhnS8av24A2Chb9mn+zpDzoey03zZlN+D6+LR/bAD z3TXK1QC5xzW5IDTlu4xtqKidYc1SkImslyf2gg21pkTDAwTI8mhrd40gBYM9I/WFEVq uCOct0chiWyfI/DOZPp8LxhYPwxF0QFN6qscB0Sw/Kr50I68w4rRbisVAY04iF7givi9 /B8aWG1P2absDaPGuvj/6NyFEWwtsbw+0hEtqgOMePiRjVk/ZhFv9CZ7a2VqzqUTNx5E QmRJyqNtW1LVFZzf4xa7B0U8DpYEdCfH9vr3YETOhQCPwYLAb2TQ0rVdVjz2L+lBj0nV DouQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=79M0nO+KIcgbUto8NrR4+Y4jdk/93YVdZriJZH/jQN4=; fh=sEAE1sFPkjpmjKwBK2VBnvYwbEiesqvViUO+iEtys9Q=; b=W5LBJiKf7XHOEyQfLHxf8ekSEd5cc8DaCQZfNaMATQDukc2KZVmL8Zciqmi/HcFKfE 07zQyZDLrqxTdFvPb8wuPwe/LUeqIGRW2Uo5HLnM99bATAt/ryEafV3m5HxKkPJBVQUD k+9gRdwqiehU1uLPPe3vLGvNkfLQEn/NccSBpIQRsh4oHVzCiV51tG6oQQX0Ls+sBzvE u7qZL1JdFY9eR5/7YzbWDtWd+KUzMzuGMRKC2J2TQKH3cV+nDR/hXjUzrxSv4Urc7iUw r1sywQQacQ+IBr9GSeA+HXB/PMs88zyzcS7zU5ilqz8TwHYbcdxOndpmUxoQ0bHhXjwJ /inA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=IAW8G04f; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-203420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203420-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c29c227baasi191710a91.78.2024.06.05.16.51.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 16:51:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=IAW8G04f; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-203420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203420-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EF9772848C4 for ; Wed, 5 Jun 2024 23:51:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5F4913CFAC; Wed, 5 Jun 2024 23:51:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="IAW8G04f" Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F75F167D8D for ; Wed, 5 Jun 2024 23:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717631492; cv=none; b=jD87bqZ6xPFhP6V0GSGSXMiR5Igp9b4z6zv7PvzWW6IB2n26quYIDNBPDMm+a0pH7ZfsM7ovy9IxLX3K+GxJC54U0jJIqFELbYrvXn4jJgg//JQKGyRVB2JwjGQ8x2UV7mshbUE/OmfBGeob7WyK+hirNXE09qRpLFWxwRVEQhc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717631492; c=relaxed/simple; bh=U7InVmmSrK25YNhLJNh+yqPRqcrfe70EpSFFDHgH6LY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Prcz09bKBRhQ4EAvQGHM+2m07VdsJnbLmMYuos4GwNcWuwQBaBcZe6yzgghm1EFPy6GadX7KlHi1psC+jBu2Z8OTjUTTI7pkhMGkl1M8O6hoI/v/pGAN0IoBK/ue29CtK1Ztou1kDLCqnxBk2z/KFXxOQp1DEphGS+2Qzd3ccYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=IAW8G04f; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1f6a270d1b8so63875ad.0 for ; Wed, 05 Jun 2024 16:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717631491; x=1718236291; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=79M0nO+KIcgbUto8NrR4+Y4jdk/93YVdZriJZH/jQN4=; b=IAW8G04ftjJc30nt4pxYlhyYSpARPANh2YuyLI+rDtfxY01Lp1+tODrDUcDjJGxt24 h+mHzLniuhaBdBEnBFhvGuT6ncdzzgxuXaNy5ALCpSpwnYF6d330YxT3N6nC4UMjgvRj LAfyPy5y6Liemmgiore2z78ptc93iB2CyKn03uXXlvznPaHhXPopVhw9/rEyzn6eALWi ZQEDzoZ/Y0c4hUQcKkrQ/nkv/5Rctc8erCkcy77hNu8L5L2MIoCVwVVfm+PArFlKBBDN cJettcqIA5VvOroKjd97grw5F1AenqHdxFKMD/x3liiPdfrDaGPlBJLJLZO/gFm/GwOR pR8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717631491; x=1718236291; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=79M0nO+KIcgbUto8NrR4+Y4jdk/93YVdZriJZH/jQN4=; b=JtEXLUnDxV4/hL658nNLRwKDuhERn+M7iXbmvpzaKOBteyPCFSDv7f/WrgiZT51Rxt GS9tTBGXDN2Iup1udQMuOTbuR6oDf+SVyo9agXhBDIYZH26xU2t4vSY1ClKaoR/0kDeU EEMJ18a/8dsFIl5gg4tB3OLdxnHshr7gAQVWWH5XeV9uOJYIUdwGMWBnTz4HcKLoPG2c K70OxpewUl3lA/gfCey71MSVrz2lp1+EE+kyRmi26I+GQzESpyqNA2Wf9/jCstGXTlpi EYJVm+Vh14EOHXsrN+LN8Wa2PJtc477D02wBvjPDPHD+jGd6FaCGCqiIH11cA7l0748j Bl0w== X-Forwarded-Encrypted: i=1; AJvYcCUVhILB/4ldyjOoDzafJbwNoEqCvyMo7NqgdDoEgsUp7iWfqXuy+HKdUAEhr+39Jv1AEoSupk8i6/rA+ihz/UjmUAoGpFew1zClLSM6 X-Gm-Message-State: AOJu0YzyrlDA5lPIwZyx6LA/zE36XTrBnc2uTwibncnwg5jXkwGSEgKc 7EKbkq1XD4Zt8h56aaZgZc2eKmvRvf4NQ4xlO/9j1KVGCGCQHnQzkF9bMuPQEq+2KodCsh39obu +52eRs9oXzZI/HB6CoY+nBB7RZ8g5snzzFMD+ X-Received: by 2002:a17:902:b587:b0:1f6:8836:e43f with SMTP id d9443c01a7336-1f6bd3b4960mr593435ad.17.1717631490266; Wed, 05 Jun 2024 16:51:30 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240516222159.3710131-1-irogers@google.com> In-Reply-To: From: Ian Rogers Date: Wed, 5 Jun 2024 16:51:17 -0700 Message-ID: Subject: Re: [PATCH v1] perf top: Make zeroing histogram on refresh the default To: Arnaldo Carvalho de Melo Cc: Ingo Molnar , Namhyung Kim , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 21, 2024 at 12:46=E2=80=AFPM Arnaldo Carvalho de Melo wrote: > > On Fri, May 17, 2024 at 06:25:16PM -0700, Namhyung Kim wrote: > > On Thu, May 16, 2024 at 3:22=E2=80=AFPM 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 sample= s > > > 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=3De0143bad9dbf2a8fad4c5430562bceba196b66ea Ping, thanks, Ian