summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-02-27 22:03:41 +0100
committerMaria Matejka <mq@ucw.cz>2023-04-04 17:00:58 +0200
commit9073eda854ecee61f723894e66036de266e63606 (patch)
treeb227907e2d0a96be3cfcb7ea2862ae0e4ae338f1 /nest/rt-table.c
parente565e045b6be0deae5c55bd3ae64fc1909a0a873 (diff)
Reducing initial channel bitmap sizes to help extreme cases
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index bd7cb259..a737e1b3 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -2215,7 +2215,7 @@ rt_init_export(struct rt_exporter *re UNUSED, struct rt_export_hook *hook)
{
hook->event.data = hook;
- bmap_init(&hook->seq_map, hook->pool, 1024);
+ bmap_init(&hook->seq_map, hook->pool, 16);
/* Regular export */
rt_set_export_state(hook, TES_FEEDING);
@@ -3206,7 +3206,7 @@ rt_export_cleanup(struct rtable_private *tab)
continue;
ASSERT_DIE(atomic_load_explicit(&eh->last_export, memory_order_acquire) == NULL);
- bmap_reset(&eh->h.seq_map, 1024);
+ bmap_reset(&eh->h.seq_map, 16);
}
tab->exporter.next_seq = 1;