From: Con Kolivas <kernel@kolivas.org>
To: linux kernel mailing list <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>, Anton Blanchard <anton@samba.org>
Subject: [PATCH] adjust p4 per-cpu gain
Date: Mon, 02 Aug 2004 13:12:28 +1000 [thread overview]
Message-ID: <410DB11C.9000903@kolivas.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 574 bytes --]
The smt-nice handling patch is a little too aggressive by not estimating
the per cpu gain as high enough for pentium4 hyperthread. This patch
changes the per sibling cpu gain from 15% to 25%. The true per cpu gain
is entirely dependant on the workload but overall the 2 species of
Pentium4 that support hyperthreading have about 20-30% gain.
Patch for 2.6.8-rc2-mm1 attached.
Signed-off-by: Con Kolivas <kernel@kolivas.org>
P.S: Anton - For the power processors that are now using this SMT nice
infrastructure it would be worth setting this value separately at 40%.
[-- Attachment #1.2: sched-adjust-p4gain --]
[-- Type: text/plain, Size: 529 bytes --]
Index: linux-2.6.8-rc2-mm1/include/linux/sched.h
===================================================================
--- linux-2.6.8-rc2-mm1.orig/include/linux/sched.h 2004-07-30 22:00:05.000000000 +1000
+++ linux-2.6.8-rc2-mm1/include/linux/sched.h 2004-08-02 13:05:39.753964232 +1000
@@ -636,7 +636,7 @@
.imbalance_pct = 110, \
.cache_hot_time = 0, \
.cache_nice_tries = 0, \
- .per_cpu_gain = 15, \
+ .per_cpu_gain = 25, \
.flags = SD_BALANCE_NEWIDLE \
| SD_BALANCE_EXEC \
| SD_WAKE_AFFINE \
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
reply other threads:[~2004-08-02 3:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=410DB11C.9000903@kolivas.org \
--to=kernel@kolivas.org \
--cc=akpm@osdl.org \
--cc=anton@samba.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