From: Peter Zijlstra <peterz@infradead.org>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Wanpeng Li <kernellwp@gmail.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Ingo Molnar <mingo@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Wanpeng Li <wanpeng.li@hotmail.com>,
Linux PM list <linux-pm@vger.kernel.org>,
Steve Muckle <steve.muckle@linaro.org>
Subject: Re: [PATCH] sched/cpufreq: don't trigger cpufreq update w/o real rt/deadline tasks running
Date: Thu, 21 Apr 2016 19:17:15 +0200 [thread overview]
Message-ID: <20160421171715.GJ3430@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <CAJZ5v0j1krY6HO34QKY-NzJoc5jdS8C+qDQvDmWEZeOxE=5SQg@mail.gmail.com>
On Thu, Apr 21, 2016 at 07:07:51PM +0200, Rafael J. Wysocki wrote:
> On Thu, Apr 21, 2016 at 2:33 PM, Peter Zijlstra <peterz@infradead.org> wrote:
> > On Thu, Apr 21, 2016 at 09:09:43AM +0800, Wanpeng Li wrote:
> >> >> Sometimes .update_curr hook is called w/o tasks actually running, it is
> >> >> captured by:
> >> >>
> >> >> u64 delta_exec = rq_clock_task(rq) - curr->se.exec_start;
> >> >>
> >> >> We should not trigger cpufreq update in this case for rt/deadline
> >> >> classes, and this patch fix it.
> >
> >> I add a print to print when delta_exec is zero for rt class, something
> >
> > So its zero, so what?
> >
> >> like below:
> >
> >> watchdog/5-48 [005] d... 568.449105: update_curr_rt: rt
> >> delta_exec is zero
> >> watchdog/5-48 [005] d... 568.449111: <stack trace>
> >> => put_prev_task_rt
> >> => pick_next_task_idle
> >
> > So we'll go idle, but as of this point we're still running the rt task.
>
> Skipping the update in that case might be the right thing to do, though.
It is; the patch looks fine, but the Changelog is entirely
misleading/wrong.
Its not because the task isn't running; it is. Its because we end up
calling update_curr() multiple times and bailing when nothing changed is
indeed the right thing.
prev parent reply other threads:[~2016-04-21 17:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-18 5:51 [PATCH] sched/cpufreq: don't trigger cpufreq update w/o real rt/deadline tasks running Wanpeng Li
2016-04-20 0:32 ` Rafael J. Wysocki
2016-04-20 0:48 ` Wanpeng Li
2016-04-20 14:01 ` Peter Zijlstra
2016-04-20 22:24 ` Wanpeng Li
2016-04-20 22:28 ` Rafael J. Wysocki
2016-04-21 1:09 ` Wanpeng Li
2016-04-21 11:11 ` Rafael J. Wysocki
2016-04-21 12:12 ` Wanpeng Li
2016-04-21 12:25 ` Wanpeng Li
2016-04-21 12:33 ` Peter Zijlstra
2016-04-21 13:33 ` Wanpeng Li
2016-04-21 17:07 ` Rafael J. Wysocki
2016-04-21 17:17 ` Peter Zijlstra [this message]
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=20160421171715.GJ3430@twins.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=kernellwp@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rafael.j.wysocki@intel.com \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=steve.muckle@linaro.org \
--cc=wanpeng.li@hotmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.