4 ms·
Does modern Linux have anything close to Doors? I’ve an embedded application where two processes exchange small amounts of data which are latency sensitive, and
by lukeh 1y ago
Does modern Linux have anything close to Doors? I’ve an embedded application where two processes exchange small amounts of data which are latency sensitive, and I’m wondering if there’s anything better than AF_UNIX.
- the8472 1y agoshared memory provides the lowest latency, but you still need to deal with task wakeup, which is usually done via futexs. Google was working on a FUTEX_SWAP call for linux which would have allowed direct handover from one task to another, not sure what happened to that.
- Galanwe 1y agoIf you really want low latency, then you should be OK to trade power/CPU for it, and you can just spin instead of being woken up.
- mort96 1y agoWould be helpful to know what your problem is with AF_UNIX at the moment. Is it lacking in features you want? Is it higher latency than you'd want? Is the server/client socket API style not appropriate for your use-case?
- lukeh 1y agoWell, it’s probably fine but, it’s an audio application where metering (not audio) is delivered from a control plane process to a UI process. Lower latency is better. But haven’t measured it.
- themerone 1y agoWhat are Doors, it's too common a word to Google.
- kjellsbells 1y agoLightweight IPC invented by Sun. https://en.m.wikipedia.org/wiki/Doors_(computing) https://en.m.wikipedia.org/wiki/Doors_(computing) Look for Doors solaris and there are quite a few articles.
- deleted 1y ago[deleted]