From owner-freebsd-questions Tue Jun 22 18:11:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 1141014BD4; Tue, 22 Jun 1999 18:11:44 -0700 (PDT) (envelope-from adsharma@c62443-a.frmt1.sfba.home.com) Received: from c62443-a.frmt1.sfba.home.com ([24.0.69.165]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <19990623011144.RXEY8807.mail.rdc1.sfba.home.com@c62443-a.frmt1.sfba.home.com>; Tue, 22 Jun 1999 18:11:44 -0700 Received: (from adsharma@localhost) by c62443-a.frmt1.sfba.home.com (8.8.7/8.8.7) id SAA22415; Tue, 22 Jun 1999 18:11:39 -0700 To: freebsd-questions@FreeBSD.ORG, freebsd-smp@FreeBSD.ORG Subject: Re: Multi processor support? References: <199906221835.LAA25521@usr05.primenet.com> From: Arun Sharma Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII Date: 22 Jun 1999 18:11:39 -0700 In-Reply-To: Terry Lambert's message of "Tue, 22 Jun 1999 18:35:27 +0000 (GMT)" Message-ID: Lines: 25 X-Mailer: Gnus v5.5/Emacs 20.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Terry Lambert 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-questions" in the body of the message