From owner-cvs-all@FreeBSD.ORG Tue Apr 1 01:03:40 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD080106570C; Tue, 1 Apr 2008 01:03:40 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id 711718FC16; Tue, 1 Apr 2008 01:03:40 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [10.0.1.200] (cpe-24-94-72-120.hawaii.res.rr.com [24.94.72.120]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id m3113YaZ053450; Mon, 31 Mar 2008 21:03:36 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Mon, 31 Mar 2008 15:04:41 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: David Xu In-Reply-To: <200803310255.m2V2toJl053104@repoman.freebsd.org> Message-ID: <20080331150346.R72156@desktop> References: <200803310255.m2V2toJl053104@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libthr/thread thr_cond.c thr_private.h thr_rwlock.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 01:03:40 -0000 On Mon, 31 Mar 2008, David Xu wrote: > davidxu 2008-03-31 02:55:50 UTC > > FreeBSD src repository > > Modified files: > lib/libthr/thread thr_cond.c thr_private.h thr_rwlock.c > Log: > Rewrite rwlock to user atomic operations to change rwlock state, this > eliminates internal mutex lock contention when most rwlock operations > are read. > > Orignal patch provided by: jeff Thanks David! Do you still plan to do kernel side support so we can totally eliminate the pthread mutex and condvars from rwlock? I have evidence that this would produce further improvements. Jeff > > Revision Changes Path > 1.24 +53 -0 src/lib/libthr/thread/thr_cond.c > 1.86 +5 -1 src/lib/libthr/thread/thr_private.h > 1.11 +222 -139 src/lib/libthr/thread/thr_rwlock.c >