Rate This Document
Findability
Accuracy
Completeness
Readability

Usage Description

Enable transparent huge pages:

1
2
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:

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

KQMalloc can also be dynamically loaded to applications. However, this method is not recommended because KQMalloc may not take effect after being loaded.