-
Notifications
You must be signed in to change notification settings - Fork 118
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
Bind mounts are really slow #3677
Comments
I'm also experiencing similar issue with the 2.0.0.3 version on Docker for mac, same configuration as user ahead. My web projects based on Drupal are now so slow I can not even load a page.
|
I also experience this with 2.0.0.3. (macOS version 10.14.3)
Restarting the Docker daemon does help somewhat, albeit temporarily.
Diagnostics: 7536A828-0956-4629-9EB0-47BB753EA663/20190604034728 |
slow to fast: consistent (default), cached, delegated https://docs.docker.com/docker-for-mac/osxfs-caching/ docker/for-mac#1592 docker/for-mac#3677 https://forums.docker.com/t/file-access-in-mounted-volumes-extremely-slow-cpu-bound/8076 still super slow...
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Not fixed |
Just my experience: The only "workaround" is to restart Docker Desktop entirely. Also my colleagues experience the same behaviour, they have grunt that reload the project for every change. |
It is still happening. Docker is a great tool if you are on Linux, not so much on Windows or Mac, but it could be if annoying performance errors/bugs like this would be fixed quick, as otherwise it is way more easier to use Docker on Linux natively which is more productive. I have tried to use the docker-sync project, but I think it is not yet workable it was working for 1 week, than all of a sudden not and I did not even updated my Mac nor changed anything in the docker-compose file. Why do we need an project like docker-sync when this should be a priority to fix quickly to natively work properly? It seems because some project manager/leader in Google/Docker just seems not care enough to push the issue through to be fixed FAST!!!! I hope it will be fixed, otherwise it is just a crap thing on the Mac which is used for marketing or false sense of quality. |
+1 UP. |
+1 |
8sec on a RaspberryPi Dump your macbooks and start carrying a RPi. |
How do you think, downgrading to boot2docker (CLI for virtualbox with guest linux system) solve this problem? |
Any news? |
Now this is where one can see how much interest there is from the docker Team!!!!! Sad but true! Action talks, bullsh*t walks!! 30USD RPi vs even my 3000USD MBP touchbar mac with fast 3000MB/s storage speed!!! Go RPi!!!! |
It is terrible to have such slow performance on bind mount. I've read some articles about NFS and helper tools. My working solution
sudo nano /etc/exports
# Add following line
/System/Volumes/Data -alldirs -mapall=501:20 localhost Where sudo nano /etc/nfs.conf
# Add following line
nfs.server.mount.require_resv_port = 0 Restart NFS daemon: sudo nfsd restart To mount version: '2.4'
services:
httpd:
volumes:
- html:/var/www/html
volumes:
html:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr
device: ":${PWD}/html" LimitationAll files and folders under mount are writable but |
It seems to be fixed in the recent version of Docker Desktop Edge Here is the video presentation from the official Docker youtube channel. |
@GarryOne just read your comment and I feel the need to tell you this information made my day. I watched the video, switched to edge, started using the sync feature and WOW. Thank you! |
Tried Docker Desktop Edge 2.3.4.0 without any performance improvement over the stable one. |
@AidasK did you set up file syncing for the directories in question? It's under preferences. |
@krancour I have deleted my volume and changed :cached to :delegated and my problem was gone. It's now as fast as it should be |
I guess it is back to square one with this issue. Quote from Edge 2.3.5.0 release notes
|
Looking for an update or possible work around here: For the Mac developers, it is abysmally slow to use the bind mount. It's taking
For high IO workloads, this is the difference between a build taking 15mins vs. 1hr + Is there any workaround for this? |
Been going on for years now. Mutagen gave hope, then that was pulled (don't understand why). Today:
Bind mount (cached or delegated makes no difference):
Native:
~300 times slower. |
On a Macbook Air M1 processor with Docker Tech Preview still the same:
Bind mount:
Native:
|
Hello, I wonder if anyone can point me to current workarounds that you use to deal with this problem? Do you use VSCode feature to mount inside container and use git tools inside containers when develop? Do you ssh into container and sync it with your favorite editor? Do you use linux vm? Do you use mutagen still? Any ideas are very much appreciated. If you think there is a better place to ask this question, please let me know. Thank you |
If I'm on a Mac, I'm using a Linux VM for all development.
…On Wed, Mar 31, 2021, 11:49 Sergey Zarovskiy ***@***.***> wrote:
Hello, I wonder if anyone can point me to current workarounds that you use
to deal with this problem? Do you use VSCode feature to mount inside
container and use git tools inside containers when develop? Do you ssh into
container and sync it with your favorite editor? Do you use linux vm? Do
you use mutagen still? Any ideas are very much appreciated. If you think
there is a better place to ask this question, please let me know. Thank you
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3677 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH4QDA3GHURWKFYGZHU4OPLTGNHBBANCNFSM4HN7HQ6Q>
.
|
Thank you @adrubesh , since you use VM, you avoid this performance problem. I wonder where you run your development tools - IDE, network monitoring tools, browser? Do they run on your Mac still and you somehow connect to Linux VM via ssh or you do all development inside VM and these tools are installed in Linux? I hope these questions don't annoy people from this thread too much. I feel it is a relevant conversation, but maybe not exactly relevant to the open issue. |
All tools are installed in the VM. |
I don't know how that solves our issue. That's a workaround. Let's try to
keep them focus on mac OS
…On Fri, Apr 2, 2021, 22:46 Aaron Rubesh ***@***.***> wrote:
Thank you @adrubesh <https://github.com/adrubesh> , since you use VM, you
avoid this performance problem. I wonder where you run your development
tools - IDE, network monitoring tools, browser? Do they run on your Mac
still and you somehow connect to Linux VM via ssh or you do all development
inside VM and these tools are installed in Linux?
I hope these questions don't annoy people from this thread too much. I
feel it is a relevant conversation, but maybe not exactly relevant to the
open issue.
All tools are installed in the VM.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3677 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGJ6R3LKKU6C5NG62WI333TGYULJANCNFSM4HN7HQ6Q>
.
|
I use docker-sync. It creates a folder-sync between your fs-folder and a docker-volume. docker-volumes have great performance. Sure you use up double the space, but I still prefere this approach instead of having a VM. I'm currently working on a huge (ugly) Django/Python Project with 90+ custom packages which sourcecode has to be mounted because it's part of the the project. Just running ./manage.py w/o any command takes nearly a minute with bind mounts. Completely unusable. With docker-sync it takes about 2 seconds. I really hope bind mounts can reach this lvl of performance someday.. but we are waiting since the first release and the improvements so far had been very little.. I'm on 3.3.0 Apple Silicon Preview. |
Why is this such a low priority... are we ever going to see improvement here? It's been years 😞 |
docker-sync requires ruby, I'd prefer our devs not having to deal with ruby. I simply do not understand why this cannot be addressed on Mac - as the last comment states, its been years. The performance is unacceptable. M1 will make virtually no difference. |
@justindoody, @kevinquillen, and so on, please do not pollute this thread. Thanks. The docker team already has explained why, and already knows how much a pity it is. They do not need fathering anymore. |
@keywinf well they need to figure out something if they expect people to start paying for it now |
Any updates? As slow as it is now it is virtually unusable .. |
My build process is very slow in a docker container, but it is 5-7 times faster on a native platform.. gRPC fuse is very slow! |
I have the same issue: Macos 12.0.1, docke for macos is very slow. I'm trying this on a basic springbot starter application |
Have you tried the the VirtioFS experimental build? It does have a notable bug (opcode 40 doesn't work), but it should help tremendously in any situation where you don't run into that specific bug. Others have seen really good improvements. |
Has anyone solved this problem, it's really bad to mount with docker on mac. |
@hongliang5316 you should have a look at docker/roadmap#7 |
@mrvisser |
Disk IO from/to container to/from host is really slow. I am running some IO heavy unit/integration/end-to-end test workloads that take ages to complete. My co-workers using Linux don't have that problem
I know this has been discussed in several issues already (such as #2707, #1592) and buried inside them may have suggestions for configurations that should improve performance or comments that docker-sync should be used etc.
But it would be nice to have the following from the Docker team:
Expected behavior
File reads/writes between container and host are ~same as inside container.
Actual behavior
Information
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: