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 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南