From: Peter Teoh Subject: pthread_mutex_lock() and Xenstored Date: Fri, 31 Aug 2007 13:51:18 +0800 Message-ID: <05c801c7eb94$850ae780$9a010a0a@eeyore> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0870860146==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0870860146== Content-Type: multipart/alternative; boundary="----=_NextPart_000_05C5_01C7EBD6.01C561B0" This is a multi-part message in MIME format. ------=_NextPart_000_05C5_01C7EBD6.01C561B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable pthread_mutex_lock() are not async-signal safe (ref: http://www.gelato.org/pdf/Illinois/gelato_IL2004_libatomic_boehm.pdf) but I still see that it is used extensively in xenstored implementation = (eg, xs.c). Moreover, pthread_mutex_lock() suffered a higher performance penalty = than other synchronization option. For a one-time effort like domain = creation this is ok, but Xenstore is used repeatedly to access data, and = therefore performance could potentially be enhanced. Does all these sound logical? ------=_NextPart_000_05C5_01C7EBD6.01C561B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
pthread_mutex_lock() are not async-signal safe=20 (ref:
http://www.gelato.org/pdf/Illinois/gelato_IL2004_libatomic_boehm.pdf)
but I still see that it is used = extensively in=20 xenstored implementation (eg, xs.c).
 
Moreover, pthread_mutex_lock() = suffered a higher=20 performance penalty than other synchronization option.   For a = one-time effort like domain creation this is ok, but Xenstore is used = repeatedly=20 to access data, and therefore performance could potentially be=20 enhanced.
 
Does all these sound=20 logical?
 
 
------=_NextPart_000_05C5_01C7EBD6.01C561B0-- --===============0870860146== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0870860146==--