Small example application using kitsune-dsu.
Application has an array of 160 MB data (20971520 elements, each element contains two uint32_t values). v2 updates the uint32_t's to two uint64_t values instead.
-
Clone and compile kitsune-core.
-
Compile initial version:
KITSUNE_PATH=<path_to_kitsune-core/bin> make kitsune-example.so
- Compile v2:
KITSUNE_PATH=<path_to_kitsune-core/bin> make kitsune-v2.so
- Start initial version:
<path_to_kitsune-core/bin>/bin/driver kitsune-example.so
- Update:
<path_to_kitsune-core/bin>/bin/doupd $(pidof driver) kitsune-v2.so
The process id is (17032).
Initializing 20971520 elements, each 8 bytes
Initialized
Calculating checksum
Data checksum: 45037069120309576
0
1
2
<doupd in other terminal>
Updating, 20971520 elements, each 16 bytes
Calculating checksum
Data checksum: 45037069120309576
3
4
5