3 ms·
Neat! There’s some Solaris stuff in FreeBSD already, like ZFS and DTrace. I am not familiar with the doors api, but if there is some real advantage to it, perh
by codetrotter 4y ago
Neat! There’s some Solaris stuff in FreeBSD already, like ZFS and DTrace.
I am not familiar with the doors api, but if there is some real advantage to it, perhaps that patch could be included into FreeBSD upstream?
- cryptonector 4y agoThe key advantage of the doors IPC system is that it tries to be a synchronous IPC system, and whenver it can operate synchronously it can do things like: - immediately context switch to the server to reduce latency - transfer the caller's priority to the server to avoid priority inversion problems The downside of doors is that the server really has to be able to satisfy all requests very quickly, and if not then the client and server need to agree on an asynchronous completion notification mechanism (e.g., pass a fildes from the client to the server). And there's no guarantee that all requests can be handled synchronously. But there's a significant number of system services for which it is possible to have very fast, synchronous protocols, and for those doors really shines because of the thread shuttle and priority transference.
- fmajid 4y agoIts main use case was connecting to nscd, the name service caching daemon, and serve a name lookup without incurring context switch latency.