Re: [PATCH] SMT Nice 2.6.4-rc1-mm1

From: Con Kolivas
Date: Mon Mar 01 2004 - 06:28:20 EST


On Mon, 1 Mar 2004 05:52 pm, Con Kolivas wrote:
> This patch provides full per-package priority support for SMT processors
> (aka pentium4 hyperthreading) when combined with CONFIG_SCHED_SMT.

And here are some benchmarks to demonstrate what happens.
P4 3.06Ghz booted with bios HT off as UP (up), SMP with mm1(mm1), SMP with
mm1-smtnice(sn)

What would a benchmark from me be if not based on a kernel compile? These
numbers are coarse so the range is about +/- 2 seconds however the results
should be clear. Time is in seconds, rounded.


Straight kernel compile: make
Time
up 87
mm1 88
sn 88


Concurrent kernel compiles, one make, the other nice +19 make
Nice0 Nice19
up 183 235
mm1 208 211
sn 180 237


Kernel compile with an artifical cpu load running nice +19 (while true ; do
a=1 ; done)
Time
up 92
mm1 129
sn 104


Kernel compile with a true distributed computing cache burner running nice +19
(mprime www.mersenne.org)
Time
up 96
mm1 168
sn 94


Clearly the type of load running will influence the balance here depending on
how long the task actually runs and how cache intensive it is. Basically for
real world loads priority is very poorly preserved by default because of the
shared cpu resources, and the worst case is a very common one; running a
distributed computing client.

Note this patch has no demonstrable effect if tasks are run at the same nice
value.

Con
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/