Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2711207rdb; Wed, 15 Nov 2023 08:27:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMDj/WJXp9acPvC4WKzmm31CzWYrPJSGkzu9HVS9VfXWsIeqYzCYsfWL/6sU8jGXIAZjvV X-Received: by 2002:a05:6a00:2da7:b0:6c6:a46f:25f3 with SMTP id fb39-20020a056a002da700b006c6a46f25f3mr14867752pfb.13.1700065630853; Wed, 15 Nov 2023 08:27:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700065630; cv=none; d=google.com; s=arc-20160816; b=mpLMCQVnaxFORHRZB0iou3DlFjnac4JidcYKpdyWfxIwKIxmZK+Zgvw3h4+meVlOTP AwwtdMsDBuZv6rpy2+4n0t2OvCjd4aBYGLnkhuIE7x4/Z15ZJfQB/IsuCz/saFPhINr3 vRJNgfK5ljwI8RzHbYk+4qALgTif62aEomnfjgnsqT7eBuTO7sl25Z93ZyvF5NGjOU5W ehR/2qEBzSAfT4VD1/gkLm4NIHLAo1ug5TbwCFQHiqClm6glkRrAhiBOzPdfSZK5Kfyz Whfwrp+GbSUNqnjJYBChy0KzsfNozr75Dz7611ZkScSGW5pvmqsTZD6SnXe7OJKr2hA2 gxMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=99yk7gFQJbKkFb8zH0I56xDbVqPaI6irZUig3dh5ir8=; fh=hNvdJZAwo7NtrTFMth4A6Wl9yaOAsBCUQ4Lipez2z1E=; b=vMCl240vvc3aXtBwST8GW7rnDHGiu5nYAsk4v8jPJc0eA9BSm4NcFvFxjFgLzkyZWt yu/DCoetqK1JM3/c53518+ZNgmwbdVnjgd43FgC2IOtgI07CepRskf6BlC3J0rz5Vild 6a3g7T36QiujooY6bRowJYwG+96JvS3fmEfY7ZvgEkDDTNyKQb3jm3iuDEyDU4vkol27 qsIyzoXBnpUD+ABd1Xj2eIKZ33su9pN3Fs/2ieVGzUmubQ9TSMiN1dVQW+MgOTZFieTK 3S1SUNKbnUf4W0vWOg5y/hHNjmVvv8/fEXbRhlTjnMYynOfsn3WdsKsWeFWxAyKC/1Bm I15Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q7-20020a056a00088700b0069023e4bcb4si10641859pfj.114.2023.11.15.08.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 08:27:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 96BBD8077585; Wed, 15 Nov 2023 08:26:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbjKOQ0W convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 Nov 2023 11:26:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbjKOQ0V (ORCPT ); Wed, 15 Nov 2023 11:26:21 -0500 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85A3AAB; Wed, 15 Nov 2023 08:26:18 -0800 (PST) Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso5441242a12.3; Wed, 15 Nov 2023 08:26:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700065578; x=1700670378; 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=7XbGNtZYQzrg+K/86U5tkkq4BRBUIpICB/C0IOeiM6Q=; b=KLHUmA4/es8Rcr3QDHXNmJv6QrcaZJ6zXcIjGA37Vc8IBpFxjc4cm4LImrxbzwKuam 4QDmDcQQirFOT+uEVJWEM9w0aTfW5ZFdqRbKFG4IOsDgNK547IhUWhyY5JZ5U4Xytqv4 zvsQsbRoR1eAl1rTHgxS5kqWzbnldHIoC2+rYGqOQ5pv9C1jP5hqnpmaSVA18BQlwxsI wnJMF60cuoIaEogI7ALYTO+HC3igpkw4GAVNcn5RUMqD+FCEPtjnymn2ZqBZR6s0Tdol BoDgmuPGupBzVBvsZhbx+tyi/gnct9q8tFiW6QzNdJboJ1eBWSeWgHTSTbVPZoJfoZWf mMgA== X-Gm-Message-State: AOJu0YwuXTOOK0har0fLWXRdvvMIzWNXl2l2K4KD5I4pYXUithxGU9Mr Z/aTJ+/dLaGlAG8VOUCGlwN8stRBmo6eG/K8fDY= X-Received: by 2002:a17:90b:2789:b0:283:2932:e912 with SMTP id pw9-20020a17090b278900b002832932e912mr14944255pjb.28.1700065577790; Wed, 15 Nov 2023 08:26:17 -0800 (PST) MIME-Version: 1.0 References: <449fb8d2.27fb.18bcc190021.Coremail.00107082@163.com> <76d75357.6ab6.18bce6b7d5b.Coremail.00107082@163.com> <20231115103241.GD3818@noisy.programming.kicks-ass.net> <407a06f8.632a.18bd2a2ece1.Coremail.00107082@163.com> <1a1338d0.6b3a.18bd3c09056.Coremail.00107082@163.com> In-Reply-To: <1a1338d0.6b3a.18bd3c09056.Coremail.00107082@163.com> From: Namhyung Kim Date: Wed, 15 Nov 2023 08:26:06 -0800 Message-ID: Subject: Re: [Regression or Fix]perf: profiling stats sigificantly changed for aio_write/read(ext4) between 6.7.0-rc1 and 6.6.0 To: David Wang <00107082@163.com> Cc: Peter Zijlstra , mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 15 Nov 2023 08:26:24 -0800 (PST) On Wed, Nov 15, 2023 at 8:12 AM David Wang <00107082@163.com> wrote: > > > 在 2023-11-15 23:48:33,"Namhyung Kim" 写道: > >On Wed, Nov 15, 2023 at 3:00 AM David Wang <00107082@163.com> wrote: > >> > >> > >> > >> At 2023-11-15 18:32:41, "Peter Zijlstra" wrote: > >> > > >> >Namhyung, could you please take a look, you know how to operate this > >> >cgroup stuff. > >> > > >> > >> More information, I run the profiling with 8cpu machine on a SSD with ext4 filesystem : > >> > >> # mkdir /sys/fs/cgroup/mytest > >> # echo $$ > /sys/fs/cgroup/mytest/cgroup.procs > >> ## Start profiling targeting cgroup /sys/fs/cgroup/mytest on another terminal > >> # fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --bs=4k --iodepth=64 --size=1G --readwrite=randrw --runtime=600 --numjobs=4 --time_based=1 > >> > >> I got a feeling that f06cc667f7990 would decrease total samples by 10%~20% when profiling IO benchmark within cgroup. > > > >Oh sorry, I missed this message. Can you please share the > >command line and the output? > > > I did not use perf..... This is the part where it is not quite convincing to report the change, I am using a profiling tool of my own as I mentioned in the first mail..... > But I believe my profiling tools did detect some changes. Oh.. ok. You didn't use perf. Then what is your profiling tool? Where did you see the 10%~20% drop in samples? > > I am not experienced with the perf-tool at all, too complicated a tool for me.... But I think I can try it. I feel sorry about that. In most cases, just `perf record -a` and then `perf report` would work well. :) Thanks, Namhyung