Developer Guide and Reference

Contents

Intel's Memory Allocator Library

Intel's
libqkmalloc
library for fast memory allocation provides a C-level interface for memory allocation that is optimized for performance.
You can link the
libqkmalloc
library as a shared library only on Linux* platforms for Intel® 64 architecture. This library provides optimized implementation of standard allocation routines
malloc
,
calloc
,
realloc
, and
free
, and is C99 standard compliant.
This library is limited to work only on Intel® processors and will redirect to standard C routines at runtime if used on non-Intel® processors.

Using Intel's Custom Memory Allocator Library

You can use the libqkmalloc library by linking directly to it or by using the
LD_PRELOAD
environment variable.
To ensure the application will override the standard library allocation routines with
libqkmalloc
, set the environment variable LD_PRELOAD in the command line before the application execution. This environment variable allows you to set the path of the library that will be loaded before any other library (including the C runtime library), and the application will use symbols from this specified library instead of the symbols from the standard library.

Restrictions

This library does not support threaded code
such as OpenMP*
and is not thread-safe. It should not be used simultaneously from multiple threads. For the best results this library should be used with large throughput workloads.
Product and Performance Information
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.
Notice revision #20201201

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.