A library that performs huge page merging based on fine-grained, real-time Intel PEBS memory access traces
Prerequiste:
libpfm4-dev
libtbb-dev
g++ >= 7
mkdir -p build
cd build
cmake ..
make
LD_PRELOAD="./libhugepagetune.so" any-app
HPT_DEBUG
: output debug logHPT_INTERVAL
: interval to scan new threads and perform mergingHPT_SAMPLE_PERIOD
: mem sample periodHPT_WAKEUP_EVENT
: after WAKEUP_EVENT the data is pulled into our monitorHPT_THRESHOLD
: only huge pages accessed > THRESHOLD times can be merged