jakelandis / fsync_compare

Simple little application to compare fsync time between mmap vs. channel io for sequential writes
1 stars 3 forks source link

Test results: Linux, Hetzner Xeon E5-1650, Ubuntu 16.04, ext4 #6

Open jordansissel opened 7 years ago

jordansissel commented 7 years ago

Test: 32kb write, fsync after every write.

Test code: https://github.com/jordansissel/fsync_compare/commit/cd0edbe9af43ee6427423c27d9ed95570ecdf69c

% 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
original-brownbear commented 7 years ago

@jordansissel did you test on this box https://www.hetzner.de/de/hosting/produkte_rootserver/px91ssd?