From: Quentin Perret <quentin.perret@arm.com>
To: "Wang, Vincent (王争)" <Vincent.Wang@unisoc.com>
Cc: "Zhang, Chunyan (张春艳)" <Chunyan.Zhang@unisoc.com>,
"Ingo Molnar" <mingo@redhat.com>,
"Peter Zijlstra" <peterz@infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Chunyan Zhang" <zhang.lyra@gmail.com>
Subject: Re: 答复: [PATCH V4] sched/cpufreq: initialize iowait_boost_max and iowait_boost with cpu capacity
Date: Mon, 4 Mar 2019 13:58:12 +0000 [thread overview]
Message-ID: <20190304135810.rq2ojnbn5vezrab3@queper01-lin> (raw)
In-Reply-To: <9099990618e242e1bab77ce3f9d9b1e3@BJMBX02.spreadtrum.com>
On Monday 04 Mar 2019 at 07:35:04 (+0000), Wang, Vincent (王争) wrote:
> Did you mean the value of arch_scale_cpu_capacity() is changed in
> cpu_capacity_store()?
Yes, there's that, but more importantly topology_normalize_cpu_scale()
is called during boot. With printks() in the relevant functions, the
boot log on my system with two CPUFreq policies looks like this:
[ 2.393085] init_cpu_capacity_callback: policy0
[ 2.397714] sugov_start: policy0
[ 2.403734] init_cpu_capacity_callback: policy1
[ 2.407901] topology_normalize_cpu_scale: done
[ 2.412581] sugov_start: policy1
So, the lack of order of sugov_start() and topology_normalize_cpu_scale()
is a problem, I think.
> If so, I can restart schedutil governor after new capacity is updated.
Hmm, that feels a bit overkill, but that should at least be a correct
way of updating sg_cpu->{min, max} in a non-racy way. And CPU capacity
changes are infrequent, so the overhead of re-starting the governor
isn't a major issue, I suppose.
You could also update the values in sugov_get_util() at the cost of a
small overhead to compute 'min'. I'm not sure what's preferable since
we wanted to avoid that kind of overhead in the first place ...
Thanks,
Quentin
next prev parent reply other threads:[~2019-03-04 13:58 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-22 10:37 Chunyan Zhang
2019-02-22 10:59 ` Quentin Perret
2019-03-04 7:35 ` 答复: " Wang, Vincent (王争)
2019-03-04 13:58 ` Quentin Perret [this message]
2019-03-04 15:26 ` Peter Zijlstra
2019-03-04 16:48 ` Quentin Perret
2019-03-04 17:40 ` Peter Zijlstra
2019-03-04 17:44 ` Peter Zijlstra
2019-03-04 17:50 ` Quentin Perret
2019-03-04 18:47 ` Peter Zijlstra
2019-03-04 19:11 ` Quentin Perret
2019-03-05 8:32 ` [PATCH] sched/cpufreq: Fix 32bit math overflow Peter Zijlstra
2019-03-05 10:55 ` Rafael J. Wysocki
2019-03-06 2:01 ` Chunyan Zhang
2019-03-06 7:50 ` Chunyan Zhang
2019-03-09 14:35 ` [tip:sched/urgent] sched/cpufreq: Fix 32-bit " tip-bot for Peter Zijlstra
2019-03-19 11:10 ` tip-bot for Peter Zijlstra
2019-03-04 17:40 ` 答复: [PATCH V4] sched/cpufreq: initialize iowait_boost_max and iowait_boost with cpu capacity Vincent Guittot
2019-03-04 17:49 ` Peter Zijlstra
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=20190304135810.rq2ojnbn5vezrab3@queper01-lin \
--to=quentin.perret@arm.com \
--cc=Chunyan.Zhang@unisoc.com \
--cc=Vincent.Wang@unisoc.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=zhang.lyra@gmail.com \
/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®