Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp145616lqt; Wed, 5 Jun 2024 21:45:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkdstT7Nfq/Lk08gNynsN5E+/t/O7nh8pgpH6zTaMzTNgTlLlo4hDoIhh4R3WVcaGEdRaN5jyhIiCJYWnqQaByJuCWWcMVsDvIk02/eg== X-Google-Smtp-Source: AGHT+IHx04BrT4/Ks8zb/U6ebtW1ncofLIqrML3niDUPPIOe4it4R0e3cBUd77ywAUMeWb04wq/3 X-Received: by 2002:a05:6e02:184a:b0:36c:5f9b:8707 with SMTP id e9e14a558f8ab-374b1f06e10mr46763065ab.16.1717649125373; Wed, 05 Jun 2024 21:45:25 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de262c0c79si474212a12.404.2024.06.05.21.45.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 21:45:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203608-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=RxnzQd8Q; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-203608-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 010172846A9 for ; Thu, 6 Jun 2024 04:45:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A7B333CD1; Thu, 6 Jun 2024 04:45:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="RxnzQd8Q" Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2072.outbound.protection.outlook.com [40.107.100.72]) (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 5C3001EEF7; Thu, 6 Jun 2024 04:45:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.100.72 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717649119; cv=fail; b=NUy64GVR96paoO9ZTAHbsL7bAh4O0v6n5H1T1RHx4jB5Df/ONB2KdaUFhO4j65yxonByPhJRNhQcCv+PI+Et016gf+9Myiyxq4RI/G6U5EQ2yLx0DCWgyjsDu873gqKrQhOjHrhCtPKrt6l0mlbI1mZn11rDUzoobnXG2JvcY4Y= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717649119; c=relaxed/simple; bh=+FHjpg1ZgGsVhmOuLJqkgFi0TO3KuOoAfPsHVuMjnXU=; h=Message-ID:Date:From:Subject:To:Cc:References:In-Reply-To: Content-Type:MIME-Version; b=WUncUeeDGrbYjMy74Kl/HTznkJ1chiTOgamQxOgdYbfXdXs8lTQDvbRVzL17sUBqHeyDV0tqEsyrhA1oAS5RdFcck/KTRW2TjLZ1cOuYillUGf+AWHr9PdFdq8fFhu5RYdc+k9HopdqjLtccCakO0TUA5X5MmBpcRdTgVzmqHtw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=RxnzQd8Q; arc=fail smtp.client-ip=40.107.100.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HH1LtYimrRVWWT/wdwpeCNNp8dbKpUu4z5xMbIGTw46YznSPP9Ne6guTHuEQThe42sswRIhR5af1qinfueiMWW9A7+/yLqNKXYeqE685IXacN8xEEmKwzrOLq/nrsFU2Q/q35/OMslCs52xG0mLs5aZLPgUhhi9+rKyRpfk6Nkxij9XfQg19v9xrbLb6rjf3WO/rz5xacE+dOG9r1toXi6gmgCR3OPvbOXx7/WmJXxbuyyxUZqjchA1D96uYGqEL6tfSCS9XFNAQZnBXgK0pQBzdi7m1UuObRxnDROg6VnlFIJ5Cmxta0QN+e9lX2zOepy+7kt+aXIY6cakgJMrvwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+FHjpg1ZgGsVhmOuLJqkgFi0TO3KuOoAfPsHVuMjnXU=; b=arvOZQV4zuOampgpm2QuucPbkXLW+CUWB9GdBU8TP9I7QbpXj0HY3SK8EAuvXOZwv8qr4EDxUxRW/rLAvXVgiVvEHOGCA0w/xhIrIp6JLc9PVbu50hpy4KYeIQzp0KsR4BUcB/zTOHaIinXjAzJDbwPd7xi8MkkkjMoPWzxl3Np8p/JQ0DdcrsTSPQP5Pv+IEkeEhK1ofi6ScmYOIgf0CfwGMrZYgFHJsUJEfII5v6dqtfR1xxoWZfxMjz42iEbcnur+oLvrkkvDg8cWcvU4sWT6x9kSLgn1RbZuw5/oRCR1sI1MACPxPzDMXqV5uaXgAu8Bi1lYARKh3oG+Fk5rjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+FHjpg1ZgGsVhmOuLJqkgFi0TO3KuOoAfPsHVuMjnXU=; b=RxnzQd8Q3+Ec9rgd2Jc6jTAf840SgoibZLoR5TYPONVmKkrZLWQvTGpAmZRaElE9icWDovaDO+oSiJXNFDD9yOzQ8E/808ZXrqneJRYG6wGpgwYH9iLafz7P8HGyFcNUGTkpw/DMbe7d3mIMl7iN58Rk8TORYj29EDF7nVrEPI0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB6588.namprd12.prod.outlook.com (2603:10b6:510:210::10) by DM4PR12MB8475.namprd12.prod.outlook.com (2603:10b6:8:190::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31; Thu, 6 Jun 2024 04:45:12 +0000 Received: from PH7PR12MB6588.namprd12.prod.outlook.com ([fe80::5e9c:4117:b5e0:cf39]) by PH7PR12MB6588.namprd12.prod.outlook.com ([fe80::5e9c:4117:b5e0:cf39%6]) with mapi id 15.20.7633.018; Thu, 6 Jun 2024 04:45:12 +0000 Message-ID: <86136e0d-45e9-4bf4-826b-359e4993488f@amd.com> Date: Thu, 6 Jun 2024 10:15:00 +0530 User-Agent: Mozilla Thunderbird From: Ravi Bangoria Subject: Re: [PATCH v1] perf top: Make zeroing histogram on refresh the default To: Ian Rogers , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim Cc: 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 , ravi.bangoria@amd.com References: <20240516222159.3710131-1-irogers@google.com> Content-Language: en-US In-Reply-To: <20240516222159.3710131-1-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:25::34) To PH7PR12MB6588.namprd12.prod.outlook.com (2603:10b6:510:210::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB6588:EE_|DM4PR12MB8475:EE_ X-MS-Office365-Filtering-Correlation-Id: 7791368f-0add-434e-eb4f-08dc85e37386 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|7416005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?VXJHWWEyU1hnTEw3a2VYdmswam5NNFF3bjR0Y2c5STV2VUcyV0xDQU41cWFG?= =?utf-8?B?bVphcmxlbmUxMEM0aUhZZ1lOVEdTbzFka3U4NFRURjFYcm5tYkwrV0RxUzR6?= =?utf-8?B?M3d4YVEvZW95R1VDVkpBNTJ2UnFLSlZ1d1g4QjZ5N3l4bk0vM01mclJ0Y3lp?= =?utf-8?B?VDhVVEQveU9nK0JlVUFpbjZCS1l3cUtMcUdGaHZhSS9IR0RtQjVaV3pnYk95?= =?utf-8?B?T1VIOGxDYUdHWmhydVpCVnA3RVQwWGpuK0NsTmZxSHZ0bGNqNE42Ri9zWDRo?= =?utf-8?B?cG12UklSMExuRitEdFd1dDduM3I1ZlFXelltK1VpS0I4YmJiUCtzUFduR3ZL?= =?utf-8?B?RFVpajdPZitmT2dwemR1ejhkdUp5eWNTMWVN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UZ3ZwWnFpTDk2YTdtdHRCMjl2QUtOYjBSZ1BPVGx6OFZT?= =?utf-8?B?cEl1L0FFeVV4S3NOaW5yZ2haQ0ZTbG80ejlyNFZCbmxjWEVpb3JsbEVFVHBX?= =?utf-8?B?OTA0b1R2eVVaNGk4ZEVaV0lVQTRwcG1BTGp4K1hEdjNoVWpNN0ZKSFB3Znha?= =?utf-8?B?S1NtZUxGU2ZySXdxSy9aS1R4cnJhL0JlZ05raHpBcW1qY0lob0F1QkdibUhV?= =?utf-8?B?MmhYaTdWbHBSa3o1TE0xaDIzOEl6UWE2M2NTU1VEV05UNjZQaWk2OHhoRUwz?= =?utf-8?B?SjF1bEs0OTNmeGE3V2o3VG5Ub3cwOTA3QmVLQ29XVG40bWUrSFRnSUJKS0N4?= =?utf-8?B?K0crWUVhbXR2SHVPZHlkME1lZmhKaEJWRkRSVWNxZklzb2JGVU93OCsyVE9K?= =?utf-8?B?NGxTektzUTN2Y0RHWEFuMVlKTWhpN3JwSndRaCszVTQ4b2ZhbUxuMDZqVnV3?= =?utf-8?Q?H938QVAhw2kpNZYUXIP9ePBxqGeepOZfiy+m1Zn?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB6588.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V3hKWVRWdTRjUlZucjFqS0Y5TVNLNTlXbDZxVGRCNkNPOTVrMU44QmJHS2JQ?= =?utf-8?B?eGxkQk0zVktscXRjYjR2ZCtpQzcxZGFGTUpNRFl4Q3g2Vm8vb1ZGeFNra2FU?= =?utf-8?B?Tno5NjZLb00raDJxZS9xbDJuckZJR0NzS0lzNnRVa1QrKzA2WEFhT284WTBn?= =?utf-8?B?OXE0SFErLzZt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VZTSlg4?= =?utf-8?B?THJ2NjJ6SEhwcWtIODlpQ2F3bHBWcGUzUC9ZT3gwVWZCeHB1Nk1qRHNPa2Vz?= =?utf-8?B?N0ZGd1pQL2ZEeFhSQXNLNG5tWHoxVG16UFo3aml6cmp5c2IvVER1emNUVVkr?= =?utf-8?Q?zLVNd11SRF66WtdIysPRCc0PN?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7791368f-0add-434e-eb4f-08dc85e37386 X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB6588.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 04:45:12.5217 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: etYKol6WGFC6e0cAV+gCk9WT8OaanL/Z4xIQZeUr4rd+xH/f8Cvi4XOn8cpCbITUZYEwAo9axYKfQUCjgbOCug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB8475 On 5/17/2024 3:51 AM, 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'. I've also felt `perf top` decay as non-intuitive. Esp. when system becomes idle after some heavy workload, even decayed samples are far more compared to samples from currently running processes and thus `perf top` keeps showing already finished processes at the top, which is kind of confusing. fwiw: Acked-by: Ravi Bangoria