Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EBS vs EFS read and write latencies

I am storing users' code in file system, at present EBS in AWS. I am looking improving the availability and want to reduce the chances of outage due to EBS going down. EFS appears to be a reasonable option.

I understand EFS will be slower than EBS and EFS is more expensive than EBS. I want to know, if there is any performance benchmark done to measure the read and write latencies of EFS and comparison with EBS?

like image 255
JackDaniels Avatar asked Nov 03 '16 06:11

JackDaniels


People also ask

Which is better EFS or EBS?

Durability. EBS is similar to hard disks but the only difference is that EBS is connected to virtual EC2 instances and it offers 20 times more reliability than normal hard disks. EFS is highly durable storage.

Is EBS faster than EFS?

For performance, Amazon EBS is the fastest due to high IOPS, but when it comes to shared and scalable file systems Amazon EFS is the best option.

What is an advantage of using Amazon EFS over Amazon EBS?

EFS: scalable file storage for multiple EC2 instances Unlike EBS, EFS can be mounted by multiple EC2 instances, meaning many virtual machines may store files within an EFS instance.

What is the difference between EBS S3 and EFS?

Interface: S3 provides you a web interface while EBS provides a file system interface and EFS provides a web and file system interface. Storage Type: AWS S3 is object storage while Amazon EBS is block storage and Amazon EFS is file storage.


1 Answers

This AWS forums thread shows you some of the problems that some customers have had with eFS latency and AWS reaction. Some customers assert they have had 1+ second latency, to which AWS support say that's not normal, they'll investigate.

My current experience in EU-West appears to suggest that for a series of 150,000 small read operations of about 2.5KB each, my EC2<->EFS is maxing out at 200 read ops per second, so we might guess at no more than 1/200th of a second or 5ms for typical effective latency.

I say "effective latency" because that's really reporting a bandwidth, not a latency. I haven't written timing code to measure round-trip latency.

You can improve it by paying for a bigger drive (which includes bigger IOPS in the price) or for reserved IOPS.

like image 146
Chris F Carroll Avatar answered Sep 19 '22 13:09

Chris F Carroll