Hanging Apache requests using Ubuntu AMI on EFS volume

Solution 1:

I finally found the solution.

The problem happens only in kernels "5.4.0-1029-aws" and "5.4.0-1032-aws". The issue seems solved in "5.4.0-1034-aws" and "5.4.0-1035-aws" kernel versions.

So, you just need to upgrade the kernel:

sudo apt-get-update
sudo apt-get install linux-image-5.4.0-1035-aws

Then, after reboot you should have the new kernel in place. Check it with the following command:

uname -r

You should see this result:

5.4.0-1035-aws

Then you should not have latency anymore.