Rate This Document
Findability
Accuracy
Completeness
Readability

Usage Description

Enable transparent huge pages:

echo always > /sys/kernel/mm/transparent_hugepage/enabled
echo madvise > /sys/kernel/mm/transparent_hugepage/defrag

Because KQMalloc optimizes functions in standard libraries, you only need to preload it for acceleration. The following uses the version for multi-threaded applications as an example:

LD_PRELOAD=/usr/local/ksl/lib/libkqmallocmt.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 maximize KQMalloc performance, you can set the system page size to 4 KB. After the setting, you are advised to reinstall KSL.

For single-threaded scenarios, you can change the default number of huge pages by setting related environment variables, for example, export KQMALLOC_HUGE_PAGE_NUM=800.