Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1031889pxb; Tue, 19 Oct 2021 19:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHf80ApFTo0zGmOyW3uX3A/2oAtH1sUNcUOM/oup3HuOD46pHZ+6Ul8MKNDG2vL9IG2ktJ X-Received: by 2002:a05:6a00:888:b0:44c:c00e:189c with SMTP id q8-20020a056a00088800b0044cc00e189cmr3434003pfj.79.1634695391922; Tue, 19 Oct 2021 19:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634695391; cv=none; d=google.com; s=arc-20160816; b=W57I3UiRgEG9k0Ll1SuXTZYPvcFWDIvjFfRtUa/EfPYLjDGOg5ya3vn+PZaWFBrkPC Xf/GDXNTiaU8QHPT1j6KQbcb1B3LXEQQCdz6rNsdUQvgmHcJM8Vpj2uWhEXrtHRWZFmc 6jbm5/mCOmuyHxRnkUdZh6UV8AW4RCyToa/yLsP73QwxxE2Zn8YQ/o/1f/ONJbpBiYjw MwSUyRs5wmPvvhHHgKo5vaTtHlx6MxqBJcw/rEFKwHnU1pWupJGb2nJpfgWTusWtxo7h b9bOz37pz5aDUIHSWbA5u9wHbp13BeWPyvYuB3+vhxcgTXO/Q4h5vuAnXxj4ICqugdY7 aljQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=f+K0RiyOhiuMJOTDhZsAja98nFqLIum74FMnUQt0cDA=; b=qKMdmV6r7x/lTFULmcS/8RrKpPBhFWhcrU9hxlWAPnQ27KNBnl/Ft4exbPvzXI0ZUg 3ahvKYAQUG9PVz9WMYNsO7R3JjM4evXPN2MYNiuB3ez15mySaaqbuT86zXyvGKCtoRKh mUdcfJRHwq2ABKUmzAF5y903yGL3OmJfqyNmxIKcODfuZ1hJyRyfLrQK8+Yw3dsqNxUr f6CDZyKcw1ILvZTmEl93V36mjQR6ULSBMfNuVA2X6dTJidHbBWapqtwlLe5etTTtVYo0 0G5fzpuTMgYt2rPunA/jSn1ao7Y9jtkvj+wurTqwnBos7OfvLFUzeUpvEt9pAXI9ReNM paxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w63si892699pgd.388.2021.10.19.19.02.58; Tue, 19 Oct 2021 19:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbhJTCCp (ORCPT + 99 others); Tue, 19 Oct 2021 22:02:45 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:24362 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbhJTCCp (ORCPT ); Tue, 19 Oct 2021 22:02:45 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4HYtxS5kL3zbhF2; Wed, 20 Oct 2021 09:55:56 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Wed, 20 Oct 2021 10:00:29 +0800 Received: from [10.67.111.205] (10.67.111.205) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Wed, 20 Oct 2021 10:00:29 +0800 Subject: Re: [QUESTION] Performance deterioration caused by commit 85f726a35e504418 To: "Zanussi, Tom" , Steven Rostedt CC: linux-kernel References: <992d3b1c-70db-5cc7-8400-39caa5d502d5@huawei.com> <20211018093731.2dd5917f@gandalf.local.home> <19e4222c-c9ac-5c1a-0c3a-b8bfd3524ab7@huawei.com> <20211018225112.3f6bda99@gandalf.local.home> <20211019141002.386e7b6a@gandalf.local.home> From: Yang Jihong Message-ID: <9d0844e4-271e-41f7-3883-3dd1e572a8c8@huawei.com> Date: Wed, 20 Oct 2021 10:00:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.111.205] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Steve and Tom On 2021/10/20 2:38, Zanussi, Tom wrote: > On 10/19/2021 1:10 PM, Steven Rostedt wrote: >> On Tue, 19 Oct 2021 12:30:28 -0500 >> "Zanussi, Tom" wrote: >> >>> So anyway, as far as the histograms go, I think optimizing the two >>> changes in 85f726a35e504418 while ignoring trailing garbage can be done >>> without affecting the histogram correctness. >> >> So, none of that is exported to user space? > > I meant just that any optimization of those two things that ignored the > trailing garbage wouldn't affect the histogram keys. > > But yeah I think you're correct that ignoring it in the case of > saved_cmdlines wouldn't be a problem either but it would be in the case of > max_buffer since that's exported by the ring buffer. OK. Thanks very much for your patience. :) Kind regards, Jihong > > Tom > >> >> -- Steve >> > .