News for hackers. Stuff that matters.
Re:Measuring CPU core-to-core latency by Const-me on Sunday September 18, 2022 @05:00PM (#32891458)
I only use AF_UNIX sockets when I need to pass open file handles between processes. I generally prefer message queues: https://linux.die.net/man/7/mq_overview

I haven’t measured myself, but other people did, and they found the latency of message queues is substantially lower: https://github.com/goldsborough/ipc-bench

Re:Measuring CPU core-to-core latency by ambrosio on Monday September 19, 2022 @12:20AM (#32894240)
You might want to measure yourself, because the table of results there doesn't make a lot of sense to me. 4-5 of those methods should be dominated by context switch latency and thus clustered together tightly.

I looked at the sources. The pipe and fifo benchmarks also send a signal on every message, so they're not measuring what you'd expect.