erpc-io / eRPC

Efficient RPCs for datacenter networks
https://erpc.io/
Other
835 stars 137 forks source link

feat: use one dpdk segment to send not first packet #90

Closed cxz66666 closed 1 year ago

cxz66666 commented 1 year ago

Fix https://github.com/erpc-io/eRPC/issues/89.

We can use only one segment to send not first packet, which can save a DMA copy. Here is a sample test, based on on dpdk, large_rpc_tput test,1 client thread and 1 server thread

req_size/speed(Gb/s) before after
2k 18.37 19.84
4k 23.54 26.69
8k 26.67 30.40

It can speed up 14% at most, which is inspiring!