How to resolve "Neighbour table overflow" problem?
时间:2006-09-21 来源:CUDev
最近实验室的网络总是出现问题:
Sep 21 06:37:48 localhost kernel: printk: 161 messages suppressed. Sep 21 06:37:48 localhost kernel: Neighbour table overflow. Sep 21 06:37:53 localhost kernel: printk: 187 messages suppressed. Sep 21 06:37:53 localhost kernel: Neighbour table overflow. Sep 21 06:37:58 localhost kernel: printk: 188 messages suppressed. Sep 21 06:37:58 localhost kernel: Neighbour table overflow. Sep 21 06:38:03 localhost kernel: printk: 64 messages suppressed. Sep 21 06:38:03 localhost kernel: Neighbour table overflow. Sep 21 06:38:09 localhost kernel: printk: 32 messages suppressed. Sep 21 06:38:09 localhost kernel: Neighbour table overflow. Sep 21 06:38:14 localhost kernel: printk: 32 messages suppressed. Sep 21 06:38:14 localhost kernel: Neighbour table overflow. |
没有想到自己也碰到了这个问题.
解决方案:
echo 20480> /proc/sys/net/ipv4/neigh/default/gc_thresh1
echo 40960> /proc/sys/net/ipv4/neigh/default/gc_thresh2
echo 81920 > /proc/sys/net/ipv4/neigh/default/gc_thresh3
如果ok,就修改/etc/sysctl.conf
net.ipv4.neigh.default.gc_thresh3 = 81920
net.ipv4.neigh.default.gc_thresh2 = 40960
net.ipv4.neigh.default.gc_thresh1 = 20480
注意:我改的数值有点大.
原本 gc_thresh1=128,gc_thresh2=258,gc_thresh3=512the max size of the neighbor table is 100000
相关阅读 更多 +