]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Flock lower memory settings
authorMaria Matejka <mq@ucw.cz>
Tue, 1 Oct 2024 08:59:07 +0000 (10:59 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 23 Feb 2025 18:07:35 +0000 (19:07 +0100)
flock/flock.c

index 5fd6f53b65e40216b040347a5561a2b2a5466154..5c062642703a9df72998c1e7c2dd39a666643a31 100644 (file)
@@ -165,6 +165,10 @@ main(int argc, char **argv, char **argh UNUSED)
   birdloop_init();
 
   struct global_runtime gr = *atomic_load_explicit(&global_runtime, memory_order_relaxed);
+  gr.alloc.keep_mem_max_global = BIRD_ALIGN(65536, page_size);
+  gr.alloc.keep_mem_max_local = BIRD_ALIGN(16384, page_size);
+  gr.alloc.at_once = BIRD_ALIGN(4096, page_size);
+
 //  gr.latency_debug = ~0;
   switch_runtime(&gr);