Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2684057rdb; Wed, 15 Nov 2023 07:49:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOu1XuBORG3dLWlkBXgJoga5hJ60gkZzDk6oTuFJscRmHyY1xaqNlvUqqvDSxZ44UblpEp X-Received: by 2002:a17:90a:7e83:b0:27d:a105:d9a0 with SMTP id j3-20020a17090a7e8300b0027da105d9a0mr10999194pjl.12.1700063340938; Wed, 15 Nov 2023 07:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700063340; cv=none; d=google.com; s=arc-20160816; b=TJADEYMzsdm2ZhbwZOhSnpWkolcr1AQY4zreaqRi0JRUfQObQL3m6tFxDxTkFrJ4hQ 0sXJpEq3NdM1p6xo++7RJBijAQZajRBKMqEu2BGwI5YFAD85sSWy0D/NRyYIo54156Nr UvTs8ZhDdsn8q5WkeY9S2vPIZRYmA1w184oiyX7YWaRMeGw6TMAtNWSLSePFV2cGncnE 9UZlVf21dq1u640VqZqdox/ynd+SptDs+kAn/65R6C5wwSeXTYyLZybJh5ImFUPs6+Sc 3lvhAiF4pIQpiS/oV/sSzo7qAGCRXzTrmWwpcwu+hBHIiLSLeIl635uXdKg3tgd9UFms y3Pw== 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=vfYI9bmJxRKimKxa7UG2aI7zN8WOcS2b64HjDvUmKqo=; fh=hNvdJZAwo7NtrTFMth4A6Wl9yaOAsBCUQ4Lipez2z1E=; b=SRZZuLoYtyOQyxkgemO7+Bqy8AKZEPktfhDjdAqZjPymd2kyAstR8bvqozinLml/m8 32E22ZW8/rkV/BfYo1jb/oIEzKJfmNJdt4mTNES6Weo1OpNIVWGY1yNxbc6bWswTjXzc oGlNcmZRKWogMxdvrxnSrr+VhVr7KE3KTF6LE2j9/4ZVg6lJ5RwqFXJQkNv4aNMVf1fL JIxuiViHogloSt47ne7TeXdTxym5uqkabcoCH3YHzhbhfpVUByXJLnNfJfeMmvsaSrmC 5KJJqka5M8nUBdWm2EtptsyabTm+QgLMfk7DcYxsoURMm6eUcOyz2xocijMVCnLGVfLq eS1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id p22-20020a17090adf9600b0028039e55582si27954pjv.96.2023.11.15.07.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 07:49:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id B640580FE284; Wed, 15 Nov 2023 07:48:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbjKOPss convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 Nov 2023 10:48:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbjKOPss (ORCPT ); Wed, 15 Nov 2023 10:48:48 -0500 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 081AF101; Wed, 15 Nov 2023 07:48:45 -0800 (PST) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-5b980391d7cso4399869a12.0; Wed, 15 Nov 2023 07:48:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700063324; x=1700668124; 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=s12ncDJyYBjbloau2hqKY3l51l8J95ntKc21brrMHWk=; b=JTzAkZWWif28ou269nxN2gjUZpODn48PGCy8ryAaeq4khORLum9MxX3XHZFiqqGqQX WCW1koDNS+d/5+60yPsUhZsdxNJ9uP10EZjCW4rc0tHyThAJj5oRuWq4BrBTAnWPO3S1 gdSUhNIS/JPd4VGrmQ904SZ8+BgeplOWlQmntLqFrKZNjN/mJUfSjHEKI3zcUvNqO1W/ +isEg4rzGEWLSPXXq9ujVeF47O8nifiouUVa+0Q5WXtVIeTrCSgGjGPd/I3S44Z41s4z csKjaIla+qVvmBxEew01vA4G8ccX979S29pA5WLPdYm49srepLpHQiNXF9DG8QE86vgt FFRg== X-Gm-Message-State: AOJu0YyMnmIxfSw1TJcuMi0BGKrFfFNdV/ASspI8Q7FB/PuX/voIrJfS MnDvyuztWIH9rb40DXT8hamNy/sAoeFXZ/s9mVpIJPXC X-Received: by 2002:a17:90a:cb95:b0:27c:f1f8:261f with SMTP id a21-20020a17090acb9500b0027cf1f8261fmr9728656pju.20.1700063324412; Wed, 15 Nov 2023 07:48:44 -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> In-Reply-To: <407a06f8.632a.18bd2a2ece1.Coremail.00107082@163.com> From: Namhyung Kim Date: Wed, 15 Nov 2023 07:48:33 -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.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Wed, 15 Nov 2023 07:48:56 -0800 (PST) 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? Thanks, Namhyung