From owner-freebsd-smp Tue May 28 13:52:18 2002 Delivered-To: freebsd-smp@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id D5B4037B410; Tue, 28 May 2002 13:52:06 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id B1C3FAE1CA; Tue, 28 May 2002 13:52:06 -0700 (PDT) Date: Tue, 28 May 2002 13:52:06 -0700 From: Alfred Perlstein To: John Baldwin Cc: Jeffrey Hsu , smp@freebsd.org, tanimura@r.dl.itc.u-tokyo.ac.jp Subject: Re: socket buffers and condition variables Message-ID: <20020528205206.GI17045@elvis.mu.org> References: <0GWU00K5X6TYZA@mta6.snfc21.pbi.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i 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 * John Baldwin [020528 13:21] wrote: > > On 28-May-2002 Jeffrey Hsu wrote: > > > Reduce contention upon locking a socket buffer by replacing tsleep() and > > > wakeup() with a condvar. > > > > I'd prefer if we waited until we had the networking stack all locked up > > before measuring and deciding that there is enough contention on socket > > buffers to warrant this change. > > I don't really see how this change avoids contention anyways. The stuff we talked about... using the mutex associated with the condvar rather than the schedlock to protect the cv's wait queue. Basically reduce contention on the global wait queues and schedlock. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message