Configuring the Memory Allocator

The TBB memory allocator provides the following API functions and environment variables to configure its behavior:

Some of the memory allocator parameters can also be set via system environment variables. It can be useful to adjust the behavior without modifying application source code, to ensure that a setting takes effect as early as possible, or to avoid explicit dependency on the TBB allocator binaries. The following environment variables are recognized:

These variables only take effect at the time the memory manager is initialized; later environment changes are ignored. A call to scalable_allocation_mode overrides the effect of the corresponding environment variable.

Refer to the "C Interface to Scalable Allocator" in Developer Reference section for more details.