From owner-freebsd-smp Mon Jul 2 13: 2:33 2001 Delivered-To: freebsd-smp@freebsd.org Received: from sneakerz.org (sneakerz.org [216.33.66.254]) by hub.freebsd.org (Postfix) with ESMTP id 11A3A37B405 for ; Mon, 2 Jul 2001 13:02:29 -0700 (PDT) (envelope-from bright@sneakerz.org) Received: by sneakerz.org (Postfix, from userid 1092) id 84CFE5D01F; Mon, 2 Jul 2001 15:02:28 -0500 (CDT) Date: Mon, 2 Jul 2001 15:02:28 -0500 From: Alfred Perlstein To: Julian Elischer Cc: "Michael C . Wu" , "E.B. Dreger" , smp@FreeBSD.ORG Subject: Re: per cpu runqueues, cpu affinity and cpu binding. Message-ID: <20010702150228.S84523@sneakerz.org> References: <20010702141113.Q84523@sneakerz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from julian@elischer.org on Mon, Jul 02, 2001 at 02:24:17PM -0700 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 * Julian Elischer [010702 14:58] wrote: > > > 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. Agreed, however don't forget about the multiple thread execution units that may become available, meaning that as long as you share an address space you can run two (or more) threads in parrallel on a single processor. You wouldn't want to preclude us of taking advantage of that if it becomes available. -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message