]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Moved the cork thresholds massively up
authorMaria Matejka <mq@ucw.cz>
Wed, 19 Jun 2024 14:19:04 +0000 (16:19 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 26 Jun 2024 09:29:12 +0000 (11:29 +0200)
This allows for more efficient import and export bundling, including
best route export and next hop resolution.

doc/bird.sgml
nest/rt-table.c

index b513605304d642b118cf73e890369688a48e59bb..5e48e34252ff4d54f754f31e1cf8c299b5e987d0 100644 (file)
@@ -784,7 +784,8 @@ to set options.
         thresholds; first value is the low threshold (when to resume), the
         second one is the high threshold (when to pause). The higher is the
         threshold, the more memory can get used. In most cases, the defaults
-       should work for you. Default: 1024 8192.
+       should work for you but if you experience memory bloating on import
+       surges, this knob is the first to turn down. Default: 333300 1011010.
 
        <tag><label id="rtable-export-settle-time">export settle time <m/time/ <m/time/</tag>
        Minimum and maximum settle times, respectively, for export announcements.
index 7a6546c67c1852fd0cb1110873442713e4f0bb9a..276f7b4705ba11a92690da4db1385dc488612b78 100644 (file)
@@ -4252,8 +4252,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 = 1024;
-  c->cork_threshold.high = 8192;
+  c->cork_threshold.low = 333300;
+  c->cork_threshold.high = 1011010;
   c->export_settle = (struct settle_config) {
     .min = 1 MS,
     .max = 100 MS,