From 6cfe2066ab024251936b119ab5c39a3892d8342a Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 26 Sep 2022 12:09:14 +0200 Subject: Higher export settle times when route refresh is running. This helps the route refresh procedures to finish or at least do more work before the exporters jump in and steal all the CPU time for themselves. --- nest/rt.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nest/rt.h') diff --git a/nest/rt.h b/nest/rt.h index d53f54e1..6ee2ce9b 100644 --- a/nest/rt.h +++ b/nest/rt.h @@ -65,6 +65,8 @@ struct rtable_config { byte debug; /* Whether to log */ struct rt_cork_threshold cork_threshold; /* Cork threshold values */ struct settle_config export_settle; /* Export announcement settler */ + struct settle_config export_rr_settle;/* Export announcement settler config valid when any + route refresh is running */ }; struct rt_export_hook; @@ -136,6 +138,9 @@ struct rtable_private { btime last_rt_change; /* Last time when route changed */ btime gc_time; /* Time of last GC */ uint gc_counter; /* Number of operations since last GC */ + uint rr_counter; /* Number of currently running route refreshes, + in fact sum of (stale_set - stale_pruned) over all importers + + one for each TIS_FLUSHING importer */ byte prune_state; /* Table prune state, 1 -> scheduled, 2-> running */ byte prune_trie; /* Prune prefix trie during next table prune */ byte nhu_state; /* Next Hop Update state */ -- cgit v1.2.3