webserver-llc / angie

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

Enhancement using vmsplice for unix sockets #96

Open osevan opened 1 month ago

osevan commented 1 month 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 4 weeks 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.