Hello,
On Mon, 30 Sep 2002, Roberto Nibali wrote:
> > - if entries are more than gc_thresh2 => run GC on each 5sec
>
> What does it do exactly? Could you point me to the code?
2.4, net/core/neighbour.c:neigh_alloc()
> > Yes, it is calculated based on the installed RAM.
>
> How? The same thing as with netfilter buckets?
Sort of :)
> > No influence from other parameters if you are hit from
> > high load (many hosts contacting you). Sometimes the garbage
> > collection algorithm (GC) can not reduce the total cache entries
> > below the max_size and we see the "dst cache overflow"
> > message when the load is high.
>
> This does make sense. Why are those values so low as a standard? Most
> boxes nowadays have GBytes of memory :)
Yes, the thresholds for the neighbour table are
not tuned according to the RAM. Of course, tuning the hash
size (NEIGH_HASHMASK) and/or the hash formula could be a good
idea.
> > Ops, there is no such message in the logs, so may
> > be only the neighbour cache should be tuned.
>
> You mean the expiration cache or the max entries value?
The max_size for routing cache is not reached
> Best regards,
> Roberto Nibali, ratz
Regards
--
Julian Anastasov <ja@xxxxxx>
|