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, EC2, Amazon Linux, t2.small, 4096 byte writes, sync every 1024 events, 1.5gb files #8

Open jordansissel opened 7 years ago

jordansissel commented 7 years ago

Writing 1.5gb files.

This node type (t2.small) has only 2gb of memory. No swap. Disk is backed by EBS.

mmap

ec2-user@ip-10-0-3-144 fsync_compare]$ java -jar target/fsync_compare-0.1-SNAHOT.jar  mmap  4096 1024
Running mmap test (write size: 4096, sync interval: 1024)
buffer contains 26 events and has byte size is 4004
buffer java.nio.DirectByteBuffer[pos=0 lim=4004 cap=4096]
Did 399108 writes. Wrote 1598028432 bytes total
Iteration 0 took 44491ms
Iteration 1 took 47319ms
Iteration 2 took 45219ms

channel

[ec2-user@ip-10-0-3-144 fsync_compare]$ java -jar target/fsync_compare-0.1-SNAPSHOT.jar  channel 4096 1024
Running channel test (write size: 4096, sync interval: 1024)
buffer contains 26 events and has byte size is 4004
buffer java.nio.DirectByteBuffer[pos=0 lim=4004 cap=4096]
Did 399108 writes. Wrote 1598028432 bytes total
Iteration 0 took 44889ms
Iteration 1 took 45728ms
Iteration 2 took 46550ms