Fastsocket is a highly scalable socket and its underlying networking implementation of Linux kernel. With the straight linear scalability, Fastsocket can provide extremely good performance in multicore machines. In addition, it is very easy to use and maintain. As a result, it has been deployed in the production environment of SINA.
这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
是否更恰当?