From: "David Wang" <00107082@163.com>
To: "Namhyung Kim" <namhyung@kernel.org>
Cc: "Peter Zijlstra" <peterz@infradead.org>,
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
Subject: Re: [Regression or Fix]perf: profiling stats sigificantly changed for aio_write/read(ext4) between 6.7.0-rc1 and 6.6.0
Date: Tue, 21 Nov 2023 13:51:11 +0800 (CST) [thread overview]
Message-ID: <b5426dd.4bb8.18bf06ebd99.Coremail.00107082@163.com> (raw)
In-Reply-To: <CAM9d7chFQ1L0h0av7ziXU4ja_j1FMRgwd-CHULnOB5YuH9yo2w@mail.gmail.com>
At 2023-11-21 06:59:18, "Namhyung Kim" <namhyung@kernel.org> wrote:
>On Fri, Nov 17, 2023 at 5:48 PM David Wang <00107082@163.com> wrote:
>>
>> >And is there any chance if it's improved because of the change?
>> >Are the numbers in 6.7 better or worse?
>> >
>> I have no idea whether the change of expected total sample count a bug or a fix, but, the observed result that total sample count drift a lot (bigger standard deviation), I think , is a bad thing.
>
>Right. Can you run perf stat to measure the number of context
>switches and cgroup switches, then?
>
> sudo perf stat -a -e context-switches,cgroup-switches -- sleep 10
>
I upgraded to 6.7-rc2, now I am testing v6.7-rc2 against v6.7-rc2 with f06cc66 reverted with following command:
$ for i in {1..6}; do sudo ./perf stat -a -e context-switches,cgroup-switches -G mytest -- sleep 10; sleep 1; done
while `fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --bs=4k --iodepth=64 --size=1G --readwrite=randrw --runtime=300 --numjobs=4 --time_based=1` was running in cgroup mytest.
v6.7-rc2
+----+------------------+-----------------+----------+
| | context-switches | cgroup-switches | ratio |
+----+------------------+-----------------+----------+
| #1 | 505168 | 503494 | 1:0.9967 |
| #2 | 503627 | 501932 | 1:0.9966 |
| #3 | 509352 | 507397 | 1:0.9962 |
| #4 | 510274 | 508357 | 1:0.9962 |
| #5 | 508872 | 507063 | 1:0.9964 |
| #6 | 506138 | 504205 | 1:0.9962 |
+----+------------------+-----------------+----------+
v6.7-rc2 with f06cc66 reverted:
+----+------------------+-----------------+----------+
| | context-switches | cgroup-switches | ratio |
+----+------------------+-----------------+----------+
| #1 | 462504 | 460733 | 1:0.9962 |
| #2 | 464717 | 463036 | 1:0.9964 |
| #3 | 462245 | 460361 | 1:0.9959 |
| #4 | 463522 | 461783 | 1:0.9962 |
| #5 | 459760 | 458005 | 1:0.9962 |
| #6 | 457863 | 456024 | 1:0.9960 |
+----+------------------+-----------------+----------+
The different mean value is apparent, but no wider deviation observed, maybe the larger standard deviation observed in my last mail is caused by other factors during fio session.
Thanks
David Wang
next prev parent reply other threads:[~2023-11-21 5:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-14 4:31 [Regression or Fix]perf: profiling stats sigificantly changed for aio_write/read(ext4) between 6.7.0-rc1 and 6.6.0 David Wang
2023-11-14 15:20 ` David Wang
2023-11-15 10:32 ` [Regression " Peter Zijlstra
2023-11-15 10:59 ` David Wang
2023-11-15 15:48 ` Namhyung Kim
2023-11-15 16:11 ` David Wang
2023-11-15 16:26 ` Namhyung Kim
2023-11-16 4:08 ` David Wang
2023-11-17 21:11 ` Namhyung Kim
2023-11-18 1:46 ` David Wang
2023-11-20 22:59 ` Namhyung Kim
2023-11-21 5:51 ` David Wang [this message]
2023-11-15 15:45 ` Namhyung Kim
2023-11-15 16:24 ` David Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b5426dd.4bb8.18bf06ebd99.Coremail.00107082@163.com \
--to=00107082@163.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox