这几天查看bug列表的时候,发现一个关于 Neighbour table overflow
相关的bug。
从字面上看应该是内核 ARP 相关的 table cache 用光了,在这种情况下应该增加 ARP table cache 的大小。
那么该如何增加是一个问题,有问题先Google一下。
发现好多关于该问题的解决方法:
大致都是通过 sysctl 命令来修改内核参数来增加 table cache 的大小:
_thresh1
_thresh2
_thresh3These 3 parameters are defined in the Linux Kernel Code in the header file /include/net/neighbour.h as integer.
Gaia Portal accepts maximal value _thresh1
The minimum number of entries to keep in the ARP cache.
The garbage collector will not run if there are fewer than this number of entries in _thresh2
The soft maximum number of entries to keep in the ARP cache.
The garbage collector will allow the number of entries to exceed this for 5 seconds before collection will _thresh3
The hard maximum number of entries to keep in the ARP cache.
The garbage collector will always run if there are more than this number of entries in the cache.In order for the garbage collector to work properly, and not to overload the machine with garbage collections, when changing the gc_thresh3 parameter, user should (note: does not have to) change the gc_thresh2 and gc_thresh1 parameters accordingly.
关于这几个参数的解释在 kernel: neighbour table overflow 中有详细的解释。
而在Linux: Neighbour Table Overflow Error and Solution中,介绍的方法
Solving neighbour table overflow errors (large subnets)中介绍了在子网很多的时候如何设置这些参数。
综上关于这个问题主要是修改这几参数,通过不同的参数调节,可以达到用户的不同要求。
本文发布于:2024-02-04 11:45:15,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170706424955268.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |