When considering such a change, please also consider this one (for
exploiting the fast thread context switch somewhat better):
@@ -277,8 +277,8 @@
weight += PROC_CHANGE_PENALTY;
#endif
- /* .. and a slight advantage to the current process */
- if (p == prev)
+ /* .. and a slight advantage to the current thread */
+ if (p->mm == prev->mm)
weight += 1;
}
It was originally proposed by Linus and Stephen Tweedie almost two
years (!) ago. (I can dig out the reference if wanted.)
Regards,
Wolfram.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu