Re: [PATCH] sched.c: Be a bit more conservative in SMP
- From: Ludovic Drolez <ldrolez@xxxxxxxxxx>
- Date: Wed, 20 Sep 2006 09:42:53 +0200
Antonio Vargas wrote:
A variant on this theme would be (not tested or somewhat, just a
random idea for considering):
1. find if the process is a cpu-hog, if not then ignore
2. find somehow how much time has this process on it's current cpu
3. then, instead of always substracting 1 from th current load on the
current cpu, substract for example 1...0 when running from 0 to 60
seconds... this way cpu hogs would only rotate slowly?
in code:
number_to_sub_from_queue_load = (256 - min(256,
time_from_last_change_of_cpu)) >> 8;
somehow managing to get fixedpoint loadlevels on the runqueues would
make this work better....
Yes ! That might be a better idea !
In fact, I tested the 1st patch on our cluster (Finite elements computing on 8 CPUs):
- Under Windows: 875 seconds
- Linux 2.6.16 : 1019 s
- Linux 2.6.16 + manual taskset : 842 s
- Linux 2.6.16 + Vincent's patch : 1373 s :-(
If you find time to write a patch, Antonio, I would be pleased to try it !
Cheers,
--
Ludovic DROLEZ
http://lrs.linbox.org - Free asset management software
-
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/
- Follow-Ups:
- Re: [PATCH] sched.c: Be a bit more conservative in SMP
- From: Vincent Pelletier
- Poor scheduling when not loaded at 100% (Was: [PATCH] sched.c: Be a bit more conservative in SMP)
- From: Ludovic Drolez
- Re: [PATCH] sched.c: Be a bit more conservative in SMP
- References:
- [PATCH] sched.c: Be a bit more conservative in SMP
- From: Vincent Pelletier
- Re: [PATCH] sched.c: Be a bit more conservative in SMP
- From: Vincent Pelletier
- Re: [PATCH] sched.c: Be a bit more conservative in SMP
- From: Vincent Pelletier
- Re: [PATCH] sched.c: Be a bit more conservative in SMP
- From: Ludovic Drolez
- Re: [PATCH] sched.c: Be a bit more conservative in SMP
- From: Antonio Vargas
- [PATCH] sched.c: Be a bit more conservative in SMP
- Prev by Date: Re: [PATCH 1/4] x86_64/i386 thermal mce: Refactor thermal throttle reporting.
- Next by Date: Re: [PATCH 4/4] therm_throt: Add a cumulative event counter and export it to /sys.
- Previous by thread: Re: [PATCH] sched.c: Be a bit more conservative in SMP
- Next by thread: Poor scheduling when not loaded at 100% (Was: [PATCH] sched.c: Be a bit more conservative in SMP)
- Index(es):
Relevant Pages
|