感谢 @淘宝褚霸 等人的大量文档。各位SA,如果你的服务器cpu使用很不均衡,top 中si的用量很大,不妨试试这个脚本。 五一前优化服务器,把smp_affinity 和 rps/rfs的内容通通看了遍,花了两天时间写了个自动配置的脚本,在github上:http://t.cn/zTQ5HRW ,欢迎抓虫。
Scaling in the Linux Networking Stack: http://www.mjmwired.net/kernel/Documentation/networking/scaling.txt SMP IRQ Affinity: https://cs.uwaterloo.ca/~brecht/servers/apic/SMP-affinity.txt linux kernel 2.6.35中RFS特性详解: http://www.pagefault.info/?p=115 Linux 多核下绑定硬件中断到不同 CPU(IRQ Affinity): http://www.vpsee.com/2010/07/load-balancing-with-irq-smp-affinity/ 计算 SMP IRQ Affinity : http://www.vpsee.com/2010/07/smp-irq-affinity/ Linux SMP IRQ Affinity: http://www.igigo.net/archives/231 Linux内核 RPS/RFS功能详细测试分析: http://www.igigo.net/archives/204 rfs: Receive Flow Steering : http://lwn.net/Articles/381955/ rps: Receive packet steering: http://lwn.net/Articles/361440/ Receive Packet Steering : http://lwn.net/Articles/331582/ Software receive packet steering : http://lwn.net/Articles/328339/ MYSQL数据库网卡软中断不平衡问题及解决方案 : http://blog.yufeng.info/archives/2037 SMP affinity and proper interrupt handling in Linux http://www.alexonlinux.com/smp-affinity-and-proper- interrupt-handling-in-linux Why interrupt affinity with multiple cores is not such a good thing http://www.alexonlinux.com/why-interrupt-affinity- with-multiple-cores-is-not-such-a-good-thing
183 total views, 30 views today