caching - Number of ARP entries for GC to clear?
问题描述
In Linux Kernel source code, ARP cache is clear by garbage collector () as this post described.
But in net/core/neighbour.c in kernel source code has this condition: (in neigh_periodic_work() function)
if (atomic_read(&tbl->entries) < tbl->gc_thresh1)
goto out;
...
<doing clear ARP cache here>
...
out:
So does the GC clear ARP cache only when number of ARP entries is greater than gc_thresh? What if I have only 2 or 3 entries, does these entries never be cleared ?
解决方案
推荐阅读
- android - 在android java中使用searchview时如何在ListView中突出显示过滤后的文本
- r - 转换数据框以便能够过滤值
- angular - 寻求在jspdf中使用动态数据为多页设置填充的解决方案
- node.js - 我如何在 node.js 中重定向
- docker - 为什么我的 Docker swarm 服务只复制到 3/5?
- html - 由样式化组件创建的类自动添加到另一个 div/组件。(云前)。在本地运行良好
- python-3.x - import psycopg2 : SystemError: _psycopg 的初始化在第二个 URL 命中引发未报告的异常\r 失败
- c# - 将光标置于所有文本框的末尾
- python - 在 Python 中找到任意函数的下确界/上确界以计算和绘制 darboux 和
- c# - 找不到任何可用的配置文件