This node type (t2.small) has only 2gb of memory. No swap. Disk is backed by EBS.
4096-ish byte writes (154 byte event size, fills 4096 to be 4004 bytes @ 26 whole events)
fsync every 1024 events (approximately every 40 writes @ 26 events per write)
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
Writing 1.5gb files.
This node type (t2.small) has only 2gb of memory. No swap. Disk is backed by EBS.
mmap
channel