From: Julia Lawall <julia.lawall@inria.fr>
To: Doug Smythies <dsmythies@telus.net>
Cc: Julia Lawall <julia.lawall@inria.fr>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
Len Brown <lenb@kernel.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Viresh Kumar <viresh.kumar@linaro.org>,
Linux PM list <linux-pm@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: problem in changing from active to passive mode
Date: Tue, 26 Oct 2021 17:13:19 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.22.394.2110261658440.3825@hadrien> (raw)
In-Reply-To: <CAAYoRsXeQravNXKsWAZvacMmE_iBzaQ+mQxNbB5jcD_vkny+Sg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1699 bytes --]
The problem is illustrated by the attached graphs. These graphs on the
odd numbered pages show the frequency of each core measures at every clock
tick. At each measurement there is a small bar representing 4ms of the
color associated with the frequency. The percentages shown are thus not
entirely accurate, because the frequency could change within those 4ms and
we would not observe that.
The first graph, 5.9schedutil_yeti, is the normal behavior of schedutil
running. The application mostly uses the second highest turbo mode, which
is the appropriate one given that there are around 5 active cores most of
the time. I traced power:cpu_frequency, which is the event that occurs
when the OS requests a change of frequency. This happens around 5400
times.
The second graph, 5.15-schedutil_yeti, is the latest version of Linus's
tree. The cores are almost always at the lowest frequency. There are no
occurrences of the power:cpu_frequency event.
The third graph, 5.9schedutil_after_yeti, it what happens when I reboot
into 5.9 after having changed to passive mode in 5.15. The number of
power:cpu_frequency drops to around 1100. The proper turbo mode is
actually used sometimes, but much less than in the first graph. More than
half of the time, an active core is at the lowest frequency.
This application (avrora from the DaCapo benchmarks) is continually
stopping and starting, both for very short intervals. This may discourage
the hardware from raising the frequency of its own volition. I also tried
a simple spin loop (for(;;);) with the 5.15 rc version, and it does go to
the highest frequency as one would expect. But there are again no
power:cpu_frequency events.
julia
[-- Attachment #2: Type: application/pdf, Size: 182726 bytes --]
next prev parent reply other threads:[~2021-10-26 15:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-24 13:02 Julia Lawall
2021-10-24 22:44 ` Doug Smythies
2021-10-25 5:17 ` Julia Lawall
2021-10-25 20:49 ` Julia Lawall
2021-10-26 15:13 ` Julia Lawall [this message]
2021-10-27 15:10 ` Doug Smythies
2021-10-27 15:16 ` Julia Lawall
2021-10-28 17:10 ` Julia Lawall
2021-10-28 17:29 ` Rafael J. Wysocki
2021-10-28 17:57 ` Rafael J. Wysocki
2021-10-28 18:16 ` Rafael J. Wysocki
2021-10-28 18:43 ` Rafael J. Wysocki
2021-10-28 19:13 ` Julia Lawall
2021-10-28 19:21 ` Rafael J. Wysocki
2021-10-28 19:25 ` Julia Lawall
2021-10-28 19:48 ` Rafael J. Wysocki
2021-10-28 20:18 ` Julia Lawall
2021-10-29 15:39 ` Rafael J. Wysocki
2021-10-29 20:29 ` Julia Lawall
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=alpine.DEB.2.22.394.2110261658440.3825@hadrien \
--to=julia.lawall@inria.fr \
--cc=dsmythies@telus.net \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=viresh.kumar@linaro.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
all inboxes | Powered by JetHome®