复杂情况下如何评估DPDK的性能

How to evaluate the performance of DPDK in a complex circumstance

让我们考虑一下这样的情况:

在 MMORPG 游戏中,我们向服务器发送一个数据包,服务器会对所有具有攻击或治疗等连接的玩家进行大量计算。之后,我们可能会收到几个数据包。

由于我们可能会收到多个数据包,所以事情有点困难。如果我们只读取一个,那么我们可以只使用时间戳来查看时间成本。但是现在,我们不能那样做。那么,在这种复杂的情况下,如何评估传统TCP/IP堆栈与DPDK流程之间的性能?

If we only read one, then we can just use timestamp to see the time cost. But now, we cannot do that. 回答> 您始终可以在 RX 中注册回调处理程序,以便每个数据包调用它。

how to evaluate the performance between traditional TCP/IP stack and the DPDK process in a complex circumstance like that? 回答> 我假设您将 TLDK 或 mTCP 或 ANS 作为用户空间堆栈,您最好的方法是在每次读取成功时进行回调。