摘录


Abstract
Receive-side scaling (RSS) is a technique that stores the arriving IP packets in the same flow into the
same hardware queue of a modern network interface card (NIC). It allows scalable processing of the
received packets by allowing exclusive access to the NIC queues by each CPU core. This removes the lock
contention when accessing the NIC queue, and it allows concurrent access to different queues by multiple
CPU cores.
One problem with the existing RSS mechanism, however, is that it maps the IP packets in the same
TCP connection to different NIC queues depending on the direction of the packets. In this paper, we
present symmetric RSS, which allows mapping the packets in the same TCP connection to the same NIC
queue regardless of whether they are upstream or downstream. The basic idea is to manipulate the RSS
seeds such that the RSS hashes of the IP packets in the reverse direction to take on the same values
with those in the forward direction. Since RSS hash calculation is done in the NIC hardware, it does not
consume extra CPU cycles and promises high performance.

点评

可以利用这个来优化性能 实现进出对称

原文

点击这里查看原文

其它

本帖内容由21QA云收藏工具自动生成,欢迎使用。

系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055

asked 11 May '15, 14:34

%E8%B7%AF%E4%BA%BA%E7%94%B2's gravatar image

路人甲
131589677877

Be the first one to answer this question!
toggle preview

powered by O*S*Q*A

粤ICP备14040061号-1