Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPS开启的时候,是否也开启RFS比较好,设置rps_flow_cnt和rps_sock_flow_entries #48

Open
raintears2 opened this issue Oct 30, 2015 · 1 comment

Comments

@raintears2
Copy link

这2项默认都是0,脚本没有设置

cat /sys/class/net/eth0/queues/rx-0/rps_flow_cnt
0

sysctl -a|grep net.core.rps_sock_flow_entries
net.core.rps_sock_flow_entries = 0

还有就是判断开启rps条件

if [[ ! $HW_QUEUES == $CORES ]]; then

改成

if [[ $HW_QUEUES -lt $CORES ]]; then

是否更恰当?

@gfreewind
Copy link
Contributor

RPS是为了软中断均衡,RFS是为了提高cache命中率,这个其实就是fastsocket要解决的。

个人认为使用Fastsocket时,关闭这两个为好。

你可以发个pull request看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants