Expand description
Cache-conscious memory management
This module provides cache-aligned allocations and NUMA-aware memory management to optimize performance on modern multi-core systems.
Structs§
- Cache
Aligned Vec - Cache-aligned vector that ensures data starts at cache line boundaries
- Numa
Pool Stats - Statistics for a NUMA memory pool
- Numa
Stats - Get NUMA statistics
Constants§
- CACHE_
LINE_ SIZE - Cache line size on most modern processors (64 bytes)
Functions§
- clear_
numa_ pools - Clear all NUMA pools and reset statistics
- get_
numa_ stats - Get current NUMA statistics
- get_
optimal_ numa_ node - Get the optimal NUMA node for the current thread
- init_
numa_ pools - Initialize NUMA pools for all detected nodes
- numa_
alloc_ aligned - Allocate memory on a specific NUMA node with cache alignment
- numa_
dealloc - Deallocate NUMA memory
- set_
current_ numa_ node - Set the preferred NUMA node for the current thread
Type Aliases§
- Numa
Node - NUMA node identifier