Skip site navigation (1)Skip section navigation (2)
Date:      22 Jun 1999 18:11:39 -0700
From:      Arun Sharma <adsharma@home.com>
To:        freebsd-questions@FreeBSD.ORG, freebsd-smp@FreeBSD.ORG
Subject:   Re: Multi processor support?
Message-ID:  <m3vhcfyb3o.fsf@c62443-a.frmt1.sfba.home.com>
In-Reply-To: Terry Lambert's message of "Tue, 22 Jun 1999 18:35:27 %2B0000 (GMT)"
References:  <199906221835.LAA25521@usr05.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert <tlambert@primenet.com> writes:

> The best you are going to get is explicit division of tasks
> between multiple processes.  At *that* point (and *only* then)
> does CPU affinity become a real issue.  Even so, it's not an
> issue addressed (IMO) by the Linux SMP implementation (any
> more than the FreeBSD or BSDI implementations).

Linux scheduler does implement processor affinity to some extent:

#ifdef __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

A better way to do this would be to split the runnable process queues
into per processor queues (ref: Digital's SMP implementation).

Also, the ability to have multiple threads executing in a single
address space, scheduled on different processors simultaneously is
very significant.

	-Arun


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m3vhcfyb3o.fsf>