Skip to content
Romain Tartière edited this page Jun 13, 2017 · 1 revision

2017-06-13

DATA: 32 MiB

SMALL_BLOCK_SIZE: 4 KiB

LARGE_BLOCK_SIZE: 16 MiB

romain@marvin ~/Projects/radjust % dd if=/dev/random of=DATA bs=1k count=32k
32768+0 records in
32768+0 records out
33554432 bytes transferred in 0.731734 secs (45856040 bytes/sec)

Initial transfert:

romain@marvin ~/Projects/radjust % time ./radjust/radjust DATA g4.isima.fr:DATA
synchronized 33554432 bytes
0 bytes in 0 chunks in 0 blocks where adjusted
33554432 bytes where send raw
sent 33554467 bytes, received 3 bytes
./radjust/radjust DATA g4.isima.fr:DATA  0,53s user 0,16s system 0% cpu 6:46,58 total

Transfert with up-to-date data:

romain@marvin ~/Projects/radjust % time ./radjust/radjust DATA g4.isima.fr:DATA
synchronized 33554432 bytes
0 bytes in 0 chunks in 0 blocks where adjusted
0 bytes where send raw
sent 35 bytes, received 10 bytes
./radjust/radjust DATA g4.isima.fr:DATA  0,02s user 0,00s system 2% cpu 1,204 total

Transfert after touching the file:

romain@marvin ~/Projects/radjust % touch DATA
romain@marvin ~/Projects/radjust % time ./radjust/radjust DATA g4.isima.fr:DATA
synchronized 33554432 bytes
0 bytes in 0 chunks in 0 blocks where adjusted
0 bytes where send raw
sent 99 bytes, received 12 bytes
./radjust/radjust DATA g4.isima.fr:DATA  0,28s user 0,00s system 17% cpu 1,584 total

Worst case (all content is different):

romain@marvin ~/Projects/radjust % dd if=/dev/random of=DATA bs=1k count=32k
32768+0 records in
32768+0 records out
33554432 bytes transferred in 0.734236 secs (45699779 bytes/sec)
romain@marvin ~/Projects/radjust % time ./radjust/radjust DATA g4.isima.fr:DATA
synchronized 33554432 bytes
33554432 bytes in 8192 chunks in 2 blocks where adjusted
0 bytes where send raw
sent 33562723 bytes, received 262156 bytes
./radjust/radjust DATA g4.isima.fr:DATA  1,33s user 0,42s system 0% cpu 14:42,37 total

Adding 16 MiB at end of file:

romain@marvin ~/Projects/radjust % dd if=/dev/random bs=1k count=16k >> DATA
romain@marvin ~/Projects/radjust % time ./radjust/radjust DATA g4.isima.fr:DATA
synchronized 50331648 bytes
0 bytes in 0 chunks in 0 blocks where adjusted
16777216 bytes where send raw
sent 16777315 bytes, received 12 bytes
./radjust/radjust DATA g4.isima.fr:DATA  0,51s user 0,12s system 0% cpu 3:28,57 total

Clone this wiki locally