Multi-threading
This Lab will demonstrate how multithreaded access improves throughput and IOPS.
- In CLI, run the following command to write 2GB of data to EFS using 1MB block size and 4 threads. Record the time to complete.
time seq 0 3 | parallel --will-cite -j 4 dd if=/dev/zero of=/efs/tutorial/dd/2G-dd-$(date +%Y%m%d%H%M%S.%3N)- {} bs=1M count=512 oflag=sync

- Run the following command to write 2GB of data to EFS using 1MB block size and 16 threads. Record the time to complete.
time seq 0 15 | parallel --will-cite -j 16 dd if=/dev/zero of=/efs/tutorial/dd/2G-dd-$(date +%Y%m%d%H%M%S.%3N)- {} bs=1M count=128 oflag=sync

- EFS’s distributed data storage design means that multithreaded applications can leverage significant aggregate throughput and IOPS levels. By parallelizing your writes to EFS by increasing the number of threads, you can increase your overall throughput and IOPS for EFS.
