From: Peter Zijlstra <peterz@infradead.org>
To: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Cc: Alexander Monakov <amonakov@ispras.ru>,
linux-kernel@vger.kernel.org, Linux PM <linux-pm@vger.kernel.org>,
Giovanni Gherdovich <ggherdovich@suse.cz>,
qperret@google.com, juri.lelli@redhat.com,
Valentin Schneider <valentin.schneider@arm.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Doug Smythies <dsmythies@telus.net>
Subject: Re: schedutil issue with serial workloads
Date: Fri, 5 Jun 2020 22:33:47 +0200 [thread overview]
Message-ID: <20200605203347.GM3976@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <c3145e26-56c8-4979-513c-cfac191e989b@intel.com>
On Fri, Jun 05, 2020 at 06:51:12PM +0200, Rafael J. Wysocki wrote:
> On 6/4/2020 11:29 PM, Alexander Monakov wrote:
> > this is a question/bugreport about behavior of schedutil on serial workloads
> > such as rsync, or './configure', or 'make install'. These workloads are
> > such that there's no single task that takes a substantial portion of CPU
> > time, but at any moment there's at least one runnable task, and overall
> > the workload is compute-bound. To run the workload efficiently, cpufreq
> > governor should select a high frequency.
> >
> > Assume the system is idle except for the workload in question.
> >
> > Sadly, schedutil will select the lowest frequency, unless the workload is
> > confined to one core with taskset (in which case it will select the
> > highest frequency, correctly though somewhat paradoxically).
>
> That's because the CPU utilization generated by the workload on all CPUs is
> small.
>
> Confining it to one CPU causes the utilization of this one to grow and so
> schedutil selects a higher frequency for it.
My initial question was why doesn't io-boosting fix this up, but a quick
look at our pipe code shows me that it doesn't seem to use
io_schedule().
That is currently our only means to express 'someone is waiting on us'
to which we then say 'lets hurry up a bit'.
Because, as you've found, if the tasks do not queue up, there is nothing
to push the frequency up.
next prev parent reply other threads:[~2020-06-05 20:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-04 21:29 schedutil issue with serial workloads Alexander Monakov
2020-06-05 16:51 ` Rafael J. Wysocki
2020-06-05 18:35 ` Alexander Monakov
2020-06-05 20:33 ` Peter Zijlstra [this message]
2020-06-07 17:24 ` Doug Smythies
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=20200605203347.GM3976@hirez.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=amonakov@ispras.ru \
--cc=dsmythies@telus.net \
--cc=ggherdovich@suse.cz \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=qperret@google.com \
--cc=rafael.j.wysocki@intel.com \
--cc=valentin.schneider@arm.com \
--cc=vincent.guittot@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