Athlon MP vs Athlon XP

Greg Lindahl lindahl at conservativecomputer.com
Thu Nov 8 15:55:30 EST 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
_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf



More information about the Beowulf mailing list