SMP IRQ Affinity


感谢 @淘宝褚霸 等人的大量文档。各位SA,如果你的服务器cpu使用很不均衡,top 中si的用量很大,不妨试试这个脚本。
五一前优化服务器,把smp_affinity 和 rps/rfs的内容通通看了遍,花了两天时间写了个自动配置的脚本,在github上:http://t.cn/zTQ5HRW ,欢迎抓虫。

[补充]

SMP affinity and proper interrupt handling in Linux
http://www.alexonlinux.com/smp-affinity-and-proper-interrupt-handling-in-linux
文章提到  如果使用的内核中包含 CONFIG_HOTPLUG_CPU 选项为 On的情况下,网卡的中断就可以自己平衡了。

 

 

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
Multi-queue network interfaces with SMP on Linux https://greenhost.nl/2013/04/10/multi-queue-network-interfaces-with-smp-on-linux/

|2|left

《SMP IRQ Affinity》有7个想法

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Unable to load the Are You a Human PlayThru™. Please contact the site owner to report the problem.