lkml.org 
[lkml]   [2007]   [Jul]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateMon, 2 Jul 2007 17:50:29 +0200
FromIngo Molnar <>
SubjectRe: [patch] CFS scheduler, -v18
* Vegard Nossum <vegard.nossum@gmail.com> wrote:

> Resulting files at
> http://vegard.afraid.org:1104/pub/cfs/
> 
> cfs-debug-info-2007.07.02-15:18:13    Before running program
> cfs-debug-info-2007.07.02-15:19:51    ~10 secs after start
> cfs-debug-info-2007.07.02-15:20:54    ~1 minute after start
> cfs-debug-info-2007.07.02-15:25:52    ~5 minutes after start
> cfs-debug-info-2007.07.02-15:30:54    ~10 minutes after start
> 
> a.out is my program, FahCore_78 is the f@h client.

thx. As an initial matter, could you double-check whether your v18 
kernel source has the patch below applied already?

	Ingo

Index: linux/kernel/sched_fair.c
===================================================================
--- linux.orig/kernel/sched_fair.c
+++ linux/kernel/sched_fair.c
@@ -342,8 +342,9 @@ update_stats_enqueue(struct cfs_rq *cfs_
 		s64 tmp;
 
 		if (se->wait_runtime < 0) {
-			tmp = (0 - se->wait_runtime) << NICE_0_SHIFT;
-			key += (tmp * se->load.inv_weight) >> WMULT_SHIFT;
+			tmp = -se->wait_runtime;
+			key += (tmp * se->load.inv_weight) >>
+					(WMULT_SHIFT - NICE_0_SHIFT);
 		} else {
 			tmp = se->wait_runtime * se->load.weight;
 			key -= tmp >> NICE_0_SHIFT;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-02 17:53    [from the cache]
©2003-2008