diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2022-06-04 17:34:57 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2022-06-04 17:34:57 +0200 |
commit | a8a3d95be5db1a8a7d5a17e2eb8e233417b1d8c7 (patch) | |
tree | c91bd47eaf319a54af76ef74b1a1283621fc2676 /lib/blake2-impl.h | |
parent | 9e60b500c76945ccdea94d3a67e7acfde5e3f969 (diff) |
Nest: Improve GC strategy for rtables
Use timer (configurable as 'gc period') to schedule routing table
GC/pruning to ensure that prune is done on time but not too often.
Randomize GC timers to avoid concentration of GC events from different
tables in one loop cycle.
Fix a bug that caused minimum inter-GC interval be 5 us instead of 5 s.
Make default 'gc period' adaptive based on number of routing tables,
from 10 s for small setups to 600 s for large ones.
In marge multi-table RS setup, the patch improved time of flushing
a downed peer from 20-30 min to <2 min and removed 40s latencies.
Diffstat (limited to 'lib/blake2-impl.h')
0 files changed, 0 insertions, 0 deletions