Rate This Document
Findability
Accuracy
Completeness
Readability

Usage Description

Because KQMalloc optimizes functions in standard libraries, you only need to preload it for acceleration.

LD_PRELOAD=/usr/local/ksl/lib/libkqmalloc.so ./run_your_application

It can also be dynamically loaded into an application, but this method is not recommended because there are several restrictions on sharing the virtual address space with another allocator used by the application.

To use KQMALLOC with the maximum performance, enable transparent huge page in the system and set the huge page size to 2 MB.

You can change the default number of huge pages by setting related environment variables, for example, export HUAWEI_SERIAL_GREAT_MALLOC_2MB_HUGE_PAGE_NUM=800.