From 571c4f69bfbcf437d848b332bb2f4995fea2347d Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Fri, 24 Feb 2023 09:13:35 +0100 Subject: More efficient IO loop event execution to avoid long loops If there are lots of loops in a single thread and only some of the loops are actually active, the other loops are now kept aside and not checked until they actually get some timers, events or active sockets. This should help with extreme loads like 100k tables and protocols. Also ping and loop pickup mechanism was allowing subtle race conditions. Now properly handling collisions between loop ping and pickup. --- nest/rt-table.c | 1 + 1 file changed, 1 insertion(+) (limited to 'nest/rt-table.c') diff --git a/nest/rt-table.c b/nest/rt-table.c index 6be47470..54aa90a6 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -4073,6 +4073,7 @@ rt_delete(void *tab_) RT_UNLOCK(RT_PUB(tab)); + birdloop_free(tab->loop); rfree(tab->rp); config_del_obstacle(conf); -- cgit v1.2.3