Dialga is the persistent-memory erasure-code encode implementation for the Dialga paper. This repository keeps only the source code, build entry points, and documentation required by the adaptive prefetch scheduler. Experiment outputs, plotting artifacts, and prebuilt binaries are not committed.
src/test_ec.cpp: main benchmark entry point covering fixed/adaptive encode paths.include/ec.hh: ISA-L based RS encode wrapper and the paper's prefetch paths.include/prefetch_scheduler.hh: startup adaptive prefetch policy selector.include/prefetch_manager.hh: hardware prefetcher state save, switch, and restore helpers.include/pm.hh,include/utils.hh: DAX mapping, persistent writeback, NUMA, and benchmark helpers.isa-l-pm: the ISA-L derived implementation used by the paper, included as vendored source.
The vendored isa-l-pm tree is based on Intel ISA-L 2.30 (2df39cf) with the encode and prefetch extensions used by this artifact. Unused post-2.30 update, decode, LRC, and AIO experiment paths are intentionally excluded.
Run on a Linux machine with Intel AVX512, NUMA, and PMem/DAX devices.
g++-11libpmem/libpmem2libnumapthreadautoconf,automake,libtool, andnasmfor building the vendoredisa-l-pmnumactl, required only when running experiments
make -jThe top-level build configures and builds isa-l-pm automatically, then links test_ec against the vendored static library instead of a system libisal.
Clean local artifacts:
make clean
make -C isa-l-pm cleanMain path example:
sudo numactl --cpubind=1 --membind=1 ./test_ec 1024 1 /dev/dax2.0 1 8 4 --adaptiveFixed prefetch policy example:
sudo numactl --cpubind=1 --membind=1 ./test_ec 1024 1 /dev/dax2.0 1 8 4 8 --fixedOptional PMU and hardware prefetcher search:
sudo numactl --cpubind=1 --membind=1 ./test_ec 1024 1 /dev/dax2.0 1 8 4 --adaptive --sample-pmu
sudo numactl --cpubind=1 --membind=1 ./test_ec 1024 1 /dev/dax2.0 1 8 4 --adaptive --search-hw-prefetch--search-hw-prefetch accesses MSRs and restores the original state before exit. Confirm that the target machine permits this operation.
The benchmark prints inside_result result lines to stdout. The repository no longer stores historical bench_result/, notebook, plot, or perf logs. Write reproduction outputs to a local temporary directory or external artifact storage.