Re:Show HN: ip2unix – Turn IP sockets into Unix domain sockets
by Tepix on Wednesday July 08, 2020 @01:24AM
(#23767123)
This is very clever.
Last time i ran benchmarks (several years ago), UNIX domain sockets were twice as fast as IP sockets so that's another reason to use them.
[ Parent
| on HN ]
Re:Show HN: ip2unix – Turn IP sockets into Unix domain sockets
by easytiger on Friday July 10, 2020 @01:48PM
(#23794211)
Isn't a TCP socket fastpathed on loopback ranges anyway?
Re:Show HN: ip2unix – Turn IP sockets into Unix domain sockets
by aszlig on Friday July 10, 2020 @04:19PM
(#23795965)
There was a patch[1] a few years ago, but apparently it didn't make it into mainline. At least looking in net/ipv4/tcp.c I haven't found any traces related to that.
However, I could have sworn that I've seen a similar patch in recent years, but either my memories are serving me wrong or I simply can't find it anymore.
Nevertheless, I didn't benchmark whether this is the case, nor was performance the main goal for writing ip2unix. So if performance is a concern, maybe benchmark with your specific workload?