Skip to content
  • Maria Matejka's avatar
    84c29846
    Decoupling loops from threads to allow fixed thread count · 84c29846
    Maria Matejka authored
    On large configurations, too many threads would spawn with one thread
    per loop. Therefore, threads may now run multiple loops at once. The
    thread count is configurable and may be changed during run. All threads
    are spawned on startup.
    
    This change helps with memory bloating. BIRD filters need large
    temporary memory blocks to store their stack and also memory management
    keeps its hot page storage per-thread.
    
    Known bugs:
    * Thread autobalancing is not yet implemented.
    * Low latency loops are executed together with standard loops.
    84c29846
    Decoupling loops from threads to allow fixed thread count
    Maria Matejka authored
    On large configurations, too many threads would spawn with one thread
    per loop. Therefore, threads may now run multiple loops at once. The
    thread count is configurable and may be changed during run. All threads
    are spawned on startup.
    
    This change helps with memory bloating. BIRD filters need large
    temporary memory blocks to store their stack and also memory management
    keeps its hot page storage per-thread.
    
    Known bugs:
    * Thread autobalancing is not yet implemented.
    * Low latency loops are executed together with standard loops.
Loading