From owner-freebsd-threads@FreeBSD.ORG Thu Jan 6 09:22:45 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E98A16A4CE for ; Thu, 6 Jan 2005 09:22:45 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AECD43D3F; Thu, 6 Jan 2005 09:22:45 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from freebsd.org (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j069MfvA004667; Thu, 6 Jan 2005 09:22:43 GMT (envelope-from davidxu@freebsd.org) Message-ID: <41DD04FE.7070409@freebsd.org> Date: Thu, 06 Jan 2005 17:29:34 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Petri Helenius References: <41DCEA91.6040402@he.iki.fi> <41DCFD2F.2040207@freebsd.org> <41DD01CE.70004@he.iki.fi> In-Reply-To: <41DD01CE.70004@he.iki.fi> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: higher speed mutexes X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2005 09:22:45 -0000 Petri Helenius wrote: > David Xu wrote: > >> I will have low overhead pthread library available soon, for >> simple mutex, it is only an atomic_cmpset_long() plus a function >> call (pthread_mutex_lock) overhead. >> > Sounds great. Will this change the performance of rwlocks or is simple > mutex preferred for performance sensitive applications? because we use simple mutex to protect rwlock, if simple mutex is improved, rwlock should be improved by this side effect. > Is this something that I could drop on top of RELENG_5 or RELENG_5_3 or > is CURRENT required? > Do you have this in some public depository already? > you can browse my perforce repository, it requires -CURRENT and when I put it to public, it will need newest -CURRENT kernel. ;-) http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/projects/davidxu%5fthread/src/lib/libthread/thread > Pete > David Xu