https://github.com/htfy96/libhugepagetune
A toy library that performs huge page merging based on fine-grained, real-time Intel PEBS memory access traces
https://github.com/htfy96/libhugepagetune
Last synced: 3 months ago
JSON representation
A toy library that performs huge page merging based on fine-grained, real-time Intel PEBS memory access traces
- Host: GitHub
- URL: https://github.com/htfy96/libhugepagetune
- Owner: htfy96
- License: apache-2.0
- Created: 2019-06-04T18:02:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-07T08:47:26.000Z (about 7 years ago)
- Last Synced: 2025-03-03T07:41:36.330Z (over 1 year ago)
- Language: CMake
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libhugepagetune
A library that performs huge page merging based on fine-grained, real-time Intel PEBS memory access traces
## Usage
### Build
Prerequiste:
- `libpfm4-dev`
- `libtbb-dev`
- `g++ >= 7`
```sh
mkdir -p build
cd build
cmake ..
make
```
### Usage
```sh
LD_PRELOAD="./libhugepagetune.so" any-app
```
#### Environment variables
- `HPT_DEBUG`: output debug log
- `HPT_INTERVAL`: interval to scan new threads and perform merging
- `HPT_SAMPLE_PERIOD`: mem sample period
- `HPT_WAKEUP_EVENT`: after WAKEUP_EVENT the data is pulled into our monitor
- `HPT_THRESHOLD`: only huge pages accessed > THRESHOLD times can be merged