webserver-llc / angie

Angie - drop-in replacement for Nginx
https://en.angie.software
BSD 2-Clause "Simplified" License
1.24k stars 65 forks source link

Enhancement using vmsplice for unix sockets #96

Open osevan opened 3 months ago

osevan commented 3 months ago

Dear Devs,

some setups using angie in unix socket listening mode for better performance on local host.

Using vmslice reduce overhead in kernel and lower latency .

Maybe some of devs, could make vmsplice unix sockets available inside configure option --with_vmsplice or --enable-vmsplice https://qsantos.fr/2024/08/25/linux-pipes-are-slow/

Thanks and

Best Regards

VBart commented 2 months ago

vmsplice() exists >15 years already. There are reasons why it's not used. AFAIK among some other disadvantages and complications, it's impossible to know when the data is actually sent and buffer can be reused.

Your link is a bit irrelevant, since it compares performance with pipes, not sockets.