Configuring the Memory Allocator
- thescalable_allocation_commandfunction instructs the allocator to perform a certain action, such as cleaning up its internal memory buffers.
- thescalable_allocation_modefunction allows an application to set certain parameters for the memory allocator, such as an option to map memory in huge pages or define a recommended heap size. These settings take effect until modified by another call toscalable_allocation_mode.
- TBB_MALLOC_USE_HUGE_PAGEScontrols usage of huge pages for memory mapping.
- TBB_MALLOC_SET_HUGE_OBJECT_THRESHOLDdefines the lower bound for the size (bytes), that is interpreted as huge and not released during regular cleanup operations.