Athlon MP vs Athlon XP

Greg Lindahl lindahl at conservativecomputer.com
Thu Nov 8 12:55:30 PST 2001


On Thu, Nov 08, 2001 at 03:36:08PM -0500, Thomas Lovie wrote:

> I have a innocent question.... Does the kernel have processor affinity
> built in to it yet?

Yes, and has for ages. Use the source, Luke:

/usr/src/linux/kernel/sched.c, function goodness. This is 2.4:

#ifdef CONFIG_SMP
		/* Give a largish advantage to the same processor...   */
		/* (this is equivalent to penalizing other processors) */
		if (p->processor == this_cpu)
			weight += PROC_CHANGE_PENALTY;
#endif

g



More information about the Beowulf mailing list