Changes we made:
- Added pm.h with PMDK to manage PM-related interfaces
- Modified encoding tasks in
raid/xor_exampleto ensure consistency with other libraries (originally only supported sequential encoding)- Use parameter
lto control LRC encoding
- Use parameter
Note: There are two open-source versions of Cerasure. We based our modifications on the ICCD version of the code. We were unable to successfully modify the TCAD version for unknown reasons, but we implemented similar LRC encoding support in the ICCD version, though it still lacks some optimization strategies introduced in the TCAD version. However, as we explained in our paper, the bottleneck is not in computation, so we believe this does not affect the core conclusions of our ICPP work.
- Make: GNU 'make'.
- Optional: Building with autotools requires autoconf/automake packages.
x86_64:
- Assembler: nasm v2.11.01 or later (nasm v2.13 or better suggested for building in AVX512 support) or yasm version 1.2.0 or later.
- Compiler: gcc, clang, icc or VC compiler.
aarch64:
- Assembler: gas v2.24 or later.
- Compiler: gcc v4.7 or later.
other:
- Compiler: Portable base functions are available that build with most C compilers.
- GF-Complete: https://github.com/ceph/gf-complete
To build and install the library with autotools it is usually sufficient to run:
./autogen.sh
./configure
make
sudo make install
To use a standard makefile run:
make -f Makefile.unx
Other targets include:
make ex: build examples
All are doing sequential 10MB encoding and decoding.
Cerasure
cd raid/
# k=4, p=2, w=8, s=512
./xor_example -k 4 -p 2 -w 8 -s 512
ISA-L
cd examples/ec
./ec_simple_example -k 8 -p 4