Skip to main content

Module worker_pool

Module worker_pool 

Source
Expand description

NUMA worker pool for memory allocation with first-touch policy.

This module provides dedicated worker threads that are pinned to specific NUMA nodes.

§Architecture

  • One worker thread per NUMA node (spawned lazily)
  • Workers pin themselves on startup (immune to application thread management)
  • Channel-based communication for allocation requests
  • First-touch page allocation ensures correct NUMA placement

Structs§

NumaWorkerPool
Pool of NUMA workers, one per node.