This node type (t2.small) has only 2gb of memory. No swap. Disk is backed by EBS.
4096-ish byte writes
practically never fsync'ing (sync interval 100,000)
mmap
[ec2-user@ip-10-0-3-144 fsync_compare]$ java -jar target/fsync_compare-0.1-SNAPSHOT.jar mmap 4096 100000
Running mmap test (write size: 4096, sync interval: 100000)
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 23890ms
Iteration 1 took 25025ms
Iteration 2 took 25017ms
channel
[ec2-user@ip-10-0-3-144 fsync_compare]$ java -jar target/fsync_compare-0.1-SNAHOT.jar channel 4096 100000
Running channel test (write size: 4096, sync interval: 100000)
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 23893ms
Iteration 1 took 25020ms
Iteration 2 took 25012ms
Writing 1.5gb files:
This node type (t2.small) has only 2gb of memory. No swap. Disk is backed by EBS.
mmap
channel