The kswish engine is a pluggable network payload dedupe engine which takes 4K blocks in the order of 256 blocks and transfers only blocks that are only unique
##Source Code
git clone https://github.com/krchug/kswish.git
cd kswish
sudo ./scripts/pkgdep.sh
scons -c
scons
If you have a huge file and want to check if it has dedupe blocks and the engine can be used in your usecase, update the file in poc.c and the size and run it
sudo ./poc
Total chunks 207
Total unique blocks 50436 which amounts to 197MB of data
Total dedupe blocks 2555 which amounts to 9MB of data
sudo ./source
sudo ./target
The source program generates 256 blocks with one unique block. IT then adds it to the process queue, when it is handed to the network queue, it is handed over as one master block and one unique block instead of 256 blocks.