-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker's large default NFS rsize/wsize hanging container when accessing >~200kb files in Ventura #6544
Comments
Facing the same issue with a Ruby on Rails project. Moving away from NFS mount removes the problem but we would need NFS for the project to work efficiently. |
FYI:
|
Following @noud-github's suggestion, adding Although I went with |
I think |
@karlshea using |
@noud-github You're right, I didn't! I still believe this is covering up a deeper issue (why are smaller values breaking?), but at least it's fixing the immediate problem. |
@karlshea I think you are right in assuming this is just covering up a deeper issue. |
macOS defaultsmacOS defaults (from Additional notes from
General mount flags: 0x4000018 nodev,nosuid,multilabel Docker defaultsI tried to find defaults by mounting with no options other than
Then got into the Docker VM using /Users/karl/Sites/nfs-test on /var/lib/docker/volumes/nfs-test_nfsmount-repo/_data type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.65.2,mountvers=3,mountproto=tcp,local_lock=none,addr=192.168.65.2 Which is pretty strange, since our fixes actually seem to be setting the values lower.
This seems to possibly point to the root cause. |
looks like docker is trying to use a pretty high default package size, that in combination with:
that makes a solid case for using a lower package size, as we found ventura's "local interface" doing just that. |
Those sizes are supposed to be powers of 2 according to the man page. I tested up to 262144 ( |
Oh I forgot - I had tested this problem with Colima in ddev/ddev#4122 (comment) - So this is not strictly a Docker Desktop issue I don't think. |
i am using ranger desktop so I can concur on that. |
The |
Fuck this! I spent the whole day trying to find a solution to this problem. Could you explain how you came up with the solution and how you investigated the problem? Thank you. |
All of the investigation is in this issue and ddev/ddev#4122. I believe all of us looking into it thought we were raising the Docker defaults to fix the problem, but it turns out we were lowering them. |
FWIW: I'm seeing
|
Exactly what @Carpenter0100 says ;). |
The recently released Ventura 13.1 now has issues with
Error code 22 is EINVAL. Bumping the the NFS socket buffer to |
Same issue with a Magento 2 project using huge amount of Composer dependencies.
|
actually, it was down to experience in DevOps for more than 2 decades , [edit]the working cross mac came from this tread: |
@Carpenter0100 see above |
There hasn't been any activity on this issue for a long time. Prevent issues from auto-closing with a /lifecycle stale |
/remove-lifecycle stale There are workarounds, but with out of the box defaults it's broken. If anyone from the Docker org bothered replying to shed any light on this situation maybe it could move more towards "fixed". |
Has anybody encountered a drastic decrease in performance (both r/w) of nfs mounts in 13.4? Installing our CI takes over ~40 minutes instead of ~5 (both M1 and M1 Pro) I was debugging if the docker version caused this, however with another Mac with 13.3.1 no performance issues were noticeable. To all of you, do NOT update to 13.4! The VirtIO FS does not have any performance issues but this problem #6820 seems to be present. |
Expected behavior
Everything works normally.
Actual behavior
Container will hang. If caught within a second or two, ^C can quit the container if it's running in the foreground (
docker compose up
). Otherwise Docker itself can hang to the point where the process needs to be killed.nfsd send error 40
also appears in the MacOS Console.Information
Output of
/Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
(Pi-hole is blocking api.segment.io)
Steps to reproduce the behavior
cat
/md5sum
: macOS Ventura + nfs_mount_enabled: 504 Error on laravel and bedrock sites ddev/ddev#4122 (comment)_Plain NFS access from another Mac seems to work normally.
Related issue: ddev/ddev#4122
The text was updated successfully, but these errors were encountered: