Hi, Mikhail Isachenkov The server and client on the same machine. You can see from the below detail, the AVG of course do have less value Latency Distribution 50.00% 8.28ms 75.00% 9.28ms 90.00% 19.02ms 99.00% 1.36s 99.90% 2.76s 99.99% 4.63s Thanks LQ From: nginx-devel <nginx-devel-bounces@nginx.org> On Behalf Of Martin Grigorov Sent: Thursday, Noveby liuqiao - Nginx Development
Hi, Mikhail Isachenkov: Great thanks for reply, I use wrk to do the test, please see below link for wrk script and nginx config file https://gist.github.com/qiaoliu78/75e7710a02c3346d22ddda04cea83b97 I use 2 different E5 8280 servers, each with 2 Mellanox 100GB cards bound and directly connected, one server run Nginx the other server run WRK. I also run the test on same server, but seems can noby liuqiao - Nginx Development
Hi, what is the result of this patch set now? Thanks LQ -----Original Message----- From: Liu, Qiao Sent: Thursday, September 24, 2020 8:59 AM To: nginx-devel@nginx.org Subject: RE: Use BPF to distribute packet to different work thread. Remove printf # HG changeset patch # User Liu Qiao <qiao.liu@intel.com> # Date 1599735293 14400 # Thu Sep 10 06:54:53 2020 -0400 # Node ID c2eabe91by liuqiao - Nginx Development
Remove printf # HG changeset patch # User Liu Qiao <qiao.liu@intel.com> # Date 1599735293 14400 # Thu Sep 10 06:54:53 2020 -0400 # Node ID c2eabe9168d0cbefc030807a0808568d86c93e4f # Parent da5e3f5b16733167142b599b6af3ce9469a07d52 Use BPF to distribute packet to different work thread. Use Berkeley Packet Filter to get packet queue_mapping number, and use this queue_mapping number to dby liuqiao - Nginx Development
Below is 5 times test result compare, 112 threads, 10000 connections, 1M object http request. Seems P99 have great improvement, and Max is also reduced AVG Stdev Max P99 test 1 1.32s 447.09ms 5.48s 2.82s BPF test 2 1.39s 513.8ms 9.42s 3.1s testby liuqiao - Nginx Development
Hi, Maxim Konovalov: Yes, this host has no ADQ-capable cards, the server use Mellanox NIC, if use ADQ-capable cards, the latency improvement will be 40% Thanks LQ -----Original Message----- From: Maxim Konovalov <maxim@nginx.com> Sent: Sunday, September 13, 2020 5:04 PM To: nginx-devel@nginx.org; Liu, Qiao <qiao.liu@intel.com> Subject: Re: Use BPF to distribute packet to different woby liuqiao - Nginx Development
Hi, Maxim Dounin: Thanks for your reply, this server is random selected, we just do BPF and no-BPF test, I think the latency based on server configuration, not related with BPF patch, also the NIC of the server is Mellanox, not ADQ capable hardware , we will do more test Thanks LQ -----Original Message----- From: nginx-devel <nginx-devel-bounces@nginx.org> On Behalf Of Maxim Dounin Sent: Moby liuqiao - Nginx Development
Hi, Vladimir Homutov: The below is our WRK test result output with BPF enable 112 threads and 10000 connections Thread Stats Avg Stdev Max +/- Stdev Latency 608.23ms 820.71ms 10.00s 87.48% Connect 16.52ms 54.53ms 1.99s 94.73% Delay 153.13ms 182.17ms 2.00s 90.74% Req/Sec 244.79 142.32 1.99k 68.40% Latency Distribution 50.by liuqiao - Nginx Development
# HG changeset patch # User Liu Qiao <qiao.liu@intel.com> # Date 1599735293 14400 # Thu Sep 10 06:54:53 2020 -0400 # Node ID f79d524a2cc0093c53490f947564e42371cf944f # Parent da5e3f5b16733167142b599b6af3ce9469a07d52 Use BPF to distribute packet to different work thread. Use Berkeley Packet Filter to get packet queue_mapping number, and use this queue_mapping number to distribute the paby liuqiao - Nginx Development