mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kongweibin <kongweibin2@huawei.com>
To: <kongweibin2@huawei.com>
Cc: <andrii@kernel.org>, <ast@kernel.org>, <bpf@vger.kernel.org>,
	<daniel@iogearbox.net>, <davem@davemloft.net>,
	<edumazet@google.com>, <hsinweih@uci.edu>, <jakub@cloudflare.com>,
	<john.fastabend@gmail.com>, <kuba@kernel.org>,
	<linux-kernel@vger.kernel.org>, <liuxin350@huawei.com>,
	<yanan@huawei.com>, <wuchangye@huawei.com>,
	<xiesongyang@huawei.com>, <zhangmingyi5@huawei.com>
Subject: [bpf?] [net?] socket test data of ebpf sockmap/redirection and TCP/IP stack
Date: Mon, 29 May 2023 11:49:18 +0800	[thread overview]
Message-ID: <20230529034918.718150-1-kongweibin2@huawei.com> (raw)
In-Reply-To: <20230525143814.361127-1-kongweibin2@huawei.com>

Thank you for your attention!

The testing tool is Fortio.First,start a Fortio server container,and then
start a Fortio client container to send messages to the server container.
Compare the performance indicators of using ebpf sockmap/redirect and TCP/IP
stack.

test cmd:
fortio server:docker run -it -d --name=fortio-server fortio/fortio server
fortio client:docker run -it --rm --name=fortio-client fortio/fortio load 
              -c $connum -t 30s -qps 0 -jitter=true -payload-size $payload 
			  -quiet http://172.17.0.2:8080

As I increase `connum` or `payload`,the performance improvement gradually
becomes less significant or even decreases.

Host Configuration:16 CPUs(x86_64),64G mem
OS kernel version:5.10

here are the test datas:

|----------------------------------------------------------------------------
|connum	|payload|   qps	  |avg(ms)|   qps   |avg(ms)|qps improve|avg reduce |
|----------------------------------------------------------------------------
|       |       |     TCP/IP  	  |		  ebpf      |           |           |
|1		|0k		|25819.43 |0.039  |31060.83 |0.032 	|20.30%		|17.24%     |
|1		|1k		|20697.53 |0.048  |27073.13 |0.037 	|30.80%		|23.45%     |
|1		|10k	|11086.70 |0.090  |14656.67 |0.068 	|32.20%		|24.44%     |
|1		|100k	|2993.60  |0.334  |3746.63  |0.267 	|25.15%		|20.16%     |
|10		|0k		|145297.5 |0.069  |170481.7 |0.058 	|17.33%		|15.53%     |
|10		|1k		|80145.87 |0.124  |94578.50 |0.105 	|18.01%		|15.28%     |
|10		|10k	|20523.40 |0.487  |23920.67 |0.418 	|16.55%		|14.11%     |
|10		|100k	|6532.70  |1.531  |6837.87  |1.462 	|4.67%		|4.49%      |
|20		|0k		|218367.3 |0.091  |258349.1 |0.077 	|18.31%		|15.38%     |
|20		|1k		|90609.27 |0.221  |98366.67 |0.203 	|8.65%		|7.93%      |
|20		|10k	|20363.63 |0.983  |22731.00 |0.880 	|11.66%		|10.45%     |
|20		|100k	|7391.83  |2.705  |7374.20  |2.712 	|-0.24%		|-0.25%     |
|50		|0k		|221913.6 |0.225  |255631.1 |0.195 	|15.20%		|13.18%     |
|50		|1k		|110390.9 |0.453  |123547.0 |0.404 	|12.00%		|10.74%     |
|50		|10k	|28793.87 |1.737  |28751.90 |1.739 	|-0.08%		|-0.15%     |
|50		|100k	|9590.40  |5.213  |9565.83  |5.227 	|-0.26%		|-0.26%     |
|100	|0k		|286830.5 |0.349  |348999.5 |0.287 	|21.67%		|17.78%     |
|100	|1k		|147858.3 |0.676  |170042.6 |0.588 	|15.01%		|13.01%     |
|100	|10k	|50195.63 |1.992  |52431.73 |1.907 	|4.49%		|4.25%      |
|100	|100k	|11895.37 |8.405  |11982.83 |8.344 	|0.74%		|0.73%      |
|----------------------------------------------------------------------------

      parent reply	other threads:[~2023-05-29  3:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-25 14:38 [bpf?] [net?] Questions about the impact of ebpf sockmap/redirection on socket performance improvement kongweibin
2023-05-26  6:50 ` John Fastabend
2023-05-29  3:49 ` kongweibin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230529034918.718150-1-kongweibin2@huawei.com \
    --to=kongweibin2@huawei.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hsinweih@uci.edu \
    --cc=jakub@cloudflare.com \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liuxin350@huawei.com \
    --cc=wuchangye@huawei.com \
    --cc=xiesongyang@huawei.com \
    --cc=yanan@huawei.com \
    --cc=zhangmingyi5@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®