From: Arjan van de Ven <arjan@infradead.org>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org
Subject: [PATCH 0/2] Some improvements to the cpuidle menu governor
Date: Sun, 9 May 2010 16:02:42 -0700 [thread overview]
Message-ID: <20100509160242.2e351e6a@infradead.org> (raw)
Hi,
two patches to the menu governor that, together, boost the quality of
the decisions it makes significantly (results below).
The first patch is basically a bugfix, while the second patch adds some
smarts to the algorithm.
Both patches only impact the idle-duration predictor (for those
unfamiliar with the menu governor, the menu governor first tries to
predict the idle duration, and then uses a set of heuristics to pick
a suitable idle state based on this prediction. The better the
prediction the better the decision ends up being)
To show the quality of the predictor, I added some instrumentation
where I had perf report out the result of the current, after patch 1
and after patch 2 prediction value as well as the actual idle duration
as measured at the end of the idle period. The test run I give below had
69854 samples (other runs had pretty much the same result).
The quality indicator I use is the percentage of samples for which the
prediction is within a certain factor of the actual duration.
Factor before patches patch 1 patch 1+2
1.5x 29.1% 30.4% 34.1%
2x 33.6% 49.3% 52.9%
4x 43.6% 73.6% 75.2%
10x 56.9% 86.1% 86.5%
100x 78.4% 97.0% 97.2%
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
next reply other threads:[~2010-05-09 23:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-09 23:02 Arjan van de Ven [this message]
2010-05-09 23:03 ` [PATCH 1/2] cpuidle: Fix incorrect optimziation Arjan van de Ven
2010-05-09 23:04 ` [PATCH 2/2] cpuidle: Add a repeating pattern detector to the menu governor Arjan van de Ven
2010-05-10 21:38 ` Andrew Morton
2010-05-11 1:27 ` Arjan van de Ven
2010-05-10 23:43 ` Andrew Morton
2010-05-19 19:51 ` Frank Rowand
2010-05-21 19:43 ` Andrew Morton
2010-05-22 5:23 ` Arjan van de Ven
2010-05-22 16:31 ` Arjan van de Ven
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=20100509160242.2e351e6a@infradead.org \
--to=arjan@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.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
Powered by JetHome