- 论坛徽章:
- 0
|
找了个不是办法的办法:
参考白金提供的资料,做 irq affinity 静态捆绑
将eth0 和cpu3、cpu4做静态捆绑,eth1 和 cpu0、cpu1做静态捆绑
cpu负载均衡好些,但eth1绑定的CPU还是不均衡,eth1上做了nat,可见的确是netfilter对smp的支持不好
参考资料:http://bcr2.uwaterloo.ca/~brecht/servers/apic/SMP-affinity.txt
13:36:22 up 23:47, 1 user, load average: 0.99, 0.97, 0.91
33 processes: 31 sleeping, 2 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 0.0% 0.0% 0.0% 0.1% 45.0% 0.0% 54.7%
cpu00 0.2% 0.0% 0.2% 0.0% 1.2% 0.0% 98.3%
cpu01 0.0% 0.0% 0.0% 0.0% 100.0% 0.0% 0.0%
cpu02 0.0% 0.0% 0.0% 0.0% 22.2% 0.0% 77.7%
cpu03 0.0% 0.0% 0.0% 0.4% 56.4% 0.0% 43.2%
Mem: 1009404k av, 198512k used, 810892k free, 0k shrd, 1316k buff
21136k active, 6604k inactive
Swap: 0k av, 0k used, 0k free 24420k cached
[ 本帖最后由 ippen 于 2006-5-12 14:09 编辑 ] |
|