% mount
/dev/mapper/vg00-root on / type ext4 (rw,relatime,stripe=256,data=ordered)
mmap
% java -Djava.io.tmpdir=$HOME/tmp -jar target/fsync_compare-0.1-SNAPSHOT.jar mmap $((32<<10)) 1
Running mmap test (write size: 32768, sync interval: 1)
buffer contains 212 events and has byte size is 32768
Did 32768 writes. Wrote 1073741824 bytes total
Iteration 0 took 10226ms
Iteration 1 took 10081ms
Iteration 2 took 9918ms
channel
% java -Djava.io.tmpdir=$HOME/tmp -jar target/fsync_compare-0.1-SNAPSHOT.jar channel $((32<<10)) 1
Running channel test (write size: 32768, sync interval: 1)
buffer contains 212 events and has byte size is 32768
Did 32768 writes. Wrote 1073741824 bytes total
Iteration 0 took 9839ms
Iteration 1 took 10153ms
Iteration 2 took 10154ms
Test: 32kb write, fsync after every write.
Test code: https://github.com/jordansissel/fsync_compare/commit/cd0edbe9af43ee6427423c27d9ed95570ecdf69c
mmap
channel