From owner-freebsd-arch Tue Oct 31 16:27:12 2000 Delivered-To: freebsd-arch@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id D134837B4E5 for ; Tue, 31 Oct 2000 16:27:09 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eA10R4013441; Tue, 31 Oct 2000 16:27:04 -0800 (PST) Date: Tue, 31 Oct 2000 16:27:04 -0800 From: Alfred Perlstein To: Bosko Milekic Cc: Terry Lambert , freebsd-arch@FreeBSD.ORG Subject: Re: MP: per-CPU mbuf allocation lists Message-ID: <20001031162704.H22110@fw.wintelcom.net> References: <200010312344.QAA18978@usr09.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from bmilekic@dsuper.net on Tue, Oct 31, 2000 at 06:57:50PM -0500 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Bosko Milekic [001031 15:53] wrote: > > On Tue, 31 Oct 2000, Terry Lambert wrote: > > > On the other hand, we know that significant concurrency can > > be achieved, even with a single Big Giant Lock, by removing > > resources from the conflict domain, rather than moving them > > to private conflict domains. Per CPU resources simply do not > > need locking or mutexes or atomic_t or similar protection: > > they are inherently MP-safe. > > Is this 100% accurate? Don't we still need to protect even the > per-CPU lists with a lock just in case we get an interrupt and get > rescheduled because of a higher priority thread that wants execution? Is > this possible? > If it isn't the case, then ignore the question, but if it is, I agree > that it still makes sense to have per-CPU resources available, just > because it the lock contention is minimized. The possiblity of using spinlocks which will turn off interrupts on the CPU that has aquired the spinlock may be used for leaf locks held for a very short time. But that's getting way ahead of ourselves. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message