EFS slow read on clean Ubuntu 22.04 image

0

I have Ubuntu 22.04 image, running on EC2 using g4dn.2xlarge instance type. EFS Throughput mode - Bursting or Provisioned (200 MiB/s). And it took ~30 seconds to copy a 300MB file from EFS to EBS. I didn't experience such issues in any other distro (Ubuntu 18.04 or Amazon Linux 2). If I try to copy the file using Amazon Linux 2 - it will take less than 5 seconds to do it. Both servers use the same network flow, same subnet, and VPC. I attached some benchmark tests below.

Ubuntu 22.04 EFS write test

time dd if=/dev/zero of=/mnt/projects/testfile bs=16k count=128k
131072+0 records in
131072+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 21.7108 s, 98.9 MB/s

real    0m23.195s
user    0m0.086s
sys     0m1.687s

Ubuntu 22.04 EFS read test

time dd if=/mnt/projects/testfile of=/dev/null bs=16k
131072+0 records in
131072+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 274.559 s, 7.8 MB/s

real    4m34.562s
user    0m0.124s
sys     0m1.620s

Amazon Linux 2 EFS write test

time dd if=/dev/zero of=/mnt/projects/testfile_az2 bs=16k count=128k
131072+0 records in
131072+0 records out
2147483648 bytes (2.1 GB) copied, 20.5676 s, 104 MB/s

real    0m20.573s
user    0m0.010s
sys     0m0.863s

Amazon Linux 2 EFS read test

time dd if=/mnt/projects/testfile_az2 of=/dev/null bs=16k
131072+0 records in
131072+0 records out
2147483648 bytes (2.1 GB) copied, 6.92037 s, 310 MB/s

real    0m6.925s
user    0m0.012s
sys     0m0.642s
질문됨 7달 전346회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠