I/O Size and Sync Frequency

Optimize EFS performance based on I/O Size and Sync Frequency

This Lab will demonstrate how different I/O sizes and synchronization frequencies affect throughput to EFS.

  1. In the CLI, run the following command to write a 2GB file to EFS using a 1MB block size and sync once after each file. Record the time to complete.
time dd if=/dev/zero of=/efs/tutorial/dd/2G-dd-$(date +%Y%m%d%H%M%S.%3N) bs=1M count=2048 status=progress conv=fsync

CloudFormation Template

  1. Run the following command to write 2 GB file to EFS using 16MB block size and sync once after each file. Record the time to complete.
time dd if=/dev/zero of=/efs/tutorial/dd/2G-dd-$(date +%Y%m%d%H%M%S.%3N) bs=16M count=128 status=progress conv=fsync

CloudFormation Template

  1. Run the following command to write 2GB file to EFS using 1MB block size and sync after each block. Record the time to complete.
time dd if=/dev/zero of=/efs/tutorial/dd/2G-dd-$(date +%Y%m%d%H%M%S.%3N) bs=1M count=2048 status=progress oflag=sync

CloudFormation Template

  1. Run the following command to write 2 GB file to EFS using 16MB block size and sync after each block. Record the time to complete.
time dd if=/dev/zero of=/efs/tutorial/dd/2G-dd-$(date +%Y%m%d%H%M%S.%3N) bs=16M count=128 status=progress oflag=sync

CloudFormation Template

Synchronization after each block significantly reduces the performance of the file system. Optimal performance is achieved by synchronizing after each file.