From: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
To: Mark Brown
<broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
Cc: Colin Cross <ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>,
Allen Martin <amartin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: cpu clock change latency
Date: Tue, 27 Sep 2011 21:31:46 +0200 [thread overview]
Message-ID: <201109272131.46738.marvin24@gmx.de> (raw)
In-Reply-To: <20110927153021.GA16150-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
On Tuesday 27 September 2011 17:30:22 Mark Brown wrote:
> On Fri, Sep 23, 2011 at 09:49:53AM -0700, Colin Cross wrote:
> > cpu-tegra.c says latency is 300 uS because relocking the CPU pll has a
> > udelay(300). 400 nS would just make the ondemand governor sample more
> > often than it means to. I doubt changing it to 400 uS makes any
> > difference.
>
> The interactive effect of a higher transition latency with ondemand can
> be rather visible.
True, given the 400 µs latency and the multiplier of 1000 we end up having
a sample_rate of the ondemand scheduler of 0.4 seconds, which is very
"feelable". My AMD desktop announces a 1 µs latency so the default sampling
rate is only 10 ms.
A transition latency of 400 ns will set the sampling_rate to 10 ms (the
minimum value allowed, so 10 µs would have the same effect).
So doing an "echo 40000 >
/sys/devices/system/cpu/cpufreq/ondemand/sampling_rate" is the best we can
do now and almost produces the same result as 10000.
We additionaly found that setting io_is_busy=1 improves the transfer rate
of the mmc by 50%.
> It's probably also worth mentioning that if there's regulators used for
> voltage scaling the system really ought to be including latency for them
> in the estimate, for voltage increases the regulator needs to be updated
> prior to the SoC side starting off.
which would make things even worse :-(
Marc
prev parent reply other threads:[~2011-09-27 19:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 14:39 cpu clock change latency Marc Dietrich
[not found] ` <201109231639.33651.marvin24-Mmb7MZpHnFY@public.gmane.org>
2011-09-23 16:44 ` Allen Martin
2011-09-23 16:49 ` Colin Cross
[not found] ` <CAMbhsRTiqLZ2bSefh-DnmDY0RB4JGkSmumh8Tt_7217BsHsa7Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-27 15:30 ` Mark Brown
[not found] ` <20110927153021.GA16150-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2011-09-27 19:31 ` Marc Dietrich [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=201109272131.46738.marvin24@gmx.de \
--to=marvin24-mmb7mzphnfy@public.gmane.org \
--cc=amartin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
--cc=ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.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