From owner-freebsd-smp Mon Jul 2 12:58:48 2001 Delivered-To: freebsd-smp@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 61A5037B406 for ; Mon, 2 Jul 2001 12:58:41 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA13624; Mon, 2 Jul 2001 14:24:18 -0700 (PDT) Date: Mon, 2 Jul 2001 14:24:17 -0700 (PDT) From: Julian Elischer To: Alfred Perlstein Cc: "Michael C . Wu" , "E.B. Dreger" , smp@FreeBSD.ORG Subject: Re: per cpu runqueues, cpu affinity and cpu binding. In-Reply-To: <20010702141113.Q84523@sneakerz.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 2 Jul 2001, Alfred Perlstein wrote: > * Julian Elischer [010702 13:38] wrote: > > > > At USENIX we decided to proceed with the KSE work. > > yay! > > > > > As a side issue I plan on NOT ALLOWING multiple KSEs (thread carriers?) > > from the same thread group in the same process to be on the same > > processor. SO load balancing and processor affinity will not > > apply to the thread-carrying entities (KSEs). Of course the userland > > thread scheduler has the ultimate say as to which processor > > a thread is scheduled on. > > Actually, this may cause some performance problems, when you have > a shared address space you can avoid tlb shootdowns when a process's > address space changes, you also share the cache, lastly there's > some rumor about a new CPU archetecture that runs multple threads > on the same CPU at the same time. Just food for thought. If you select to run 2 thread carriers (see other mail on nomenclature)> (KSEs) then you have specifically asked for 2 processors worth of concurrency so we ASSUME you know what you are doing.. If you want to run all the threads on a single processor to get better cache activity, then you should't ASK to run on 2 (or more) processors. :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message