Date: Thu, 19 Feb 2004 16:52:14 +0800 From: David Xu <davidxu@freebsd.org> To: Mike Makonnen <mtm@identd.net> Cc: freebsd-threads@freebsd.org Subject: Re: libthr patch Message-ID: <4034793E.8040105@freebsd.org> In-Reply-To: <20040219062850.GC1074@mobile.acs-et.com> References: <20040219062850.GC1074@mobile.acs-et.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Yes, I think sigwait is too slow for synchronizing, it is better to use dedicated function, this looks fine for me. David Xu Mike Makonnen wrote: >Hello folks, > >The following patch stops libthr from using signals for syncronizng threads. >I've tested it localy and have seen *really large* performance >improvements in heavy thread/mutex contention situations. I'm interested >in hearing your experiences. > >P.S. - The patch to the kernel applies two new syscalls so you must > regenerate some files *after* applying the patch. Do the following: > cd /usr/src/sys/kern > sh makesyscalls.sh syscalls.master > cd /usr/src/sys/compat/freebsd32 > sh ../../kern/makesyscalls.sh syscalls.master syscalls.conf > > and then build your kernel in the usual way. > >Cheers. > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4034793E.8040105>