]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Table cork compromise
authorMaria Matejka <mq@ucw.cz>
Mon, 16 Dec 2024 08:34:08 +0000 (09:34 +0100)
committerMaria Matejka <mq@ucw.cz>
Mon, 16 Dec 2024 08:34:08 +0000 (09:34 +0100)
The original values were way too low but what was set
later was too high and caused memory buildup upon startup.

nest/rt-table.c

index 9b0e86dd0a01cff16f9411a8e1e7eb861cbb7d2e..295296bf57cf9c1a29fced9bcb22199300f76a9e 100644 (file)
@@ -4469,8 +4469,8 @@ rt_new_table(struct symbol *s, uint addr_type)
   c->addr_type = addr_type;
   c->gc_threshold = 1000;
   c->gc_period = (uint) -1;    /* set in rt_postconfig() */
-  c->cork_threshold.low = 333300;
-  c->cork_threshold.high = 1011010;
+  c->cork_threshold.low = 32768;
+  c->cork_threshold.high = 98304;
   c->export_settle = (struct settle_config) {
     .min = 1 MS,
     .max = 100 MS,