Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)

From: Maxim Sobolev <sobomax_at_FreeBSD.ORG>
Date: Fri, 12 May 2006 14:33:30 -0700
On Fri, May 12, 2006 at 04:41:11PM -0400, Andrew Gallatin wrote:
> 
> In addition to this linux vsyscall, there is the MacOSX/Darwin
> commpage.  The map machine-specific implementations of atomic
> operations, bcopy, bzero, spinlocks, pthread_getspecific, etc into a
> common page mapped into userspace applications. The also do a (mostly)
> syscall-free gettimeoday this way.
> 
> See http://fxr.watson.org/fxr/source/osfmk/ppc/commpage/?v=xnu-792
> 
> Obviously, we could not take the code due to APSL infection (unless
> Apple were to donate it), but it is something else to look at.

As somebody suggested, it can be easily done by exporting ELF
shared object via md(4)-like device driver and then libc will be
able to dlopen() and use it. This should provide the same
performance as a "magic-page" approach, but it much easier to
implement and it looks much less "hackish".

-Maxim
Received on Fri May 12 2006 - 19:34:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:55 UTC