Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

Performance #3

Open
sloba88 opened this issue Oct 29, 2015 · 2 comments
Open

Performance #3

sloba88 opened this issue Oct 29, 2015 · 2 comments

Comments

@sloba88
Copy link

sloba88 commented Oct 29, 2015

Hi,

I just started using Docker few days ago and I am still trying to make best setup for my needs.

I am interested on what performance do you get with this setup and are there way to improve it further?

For example my app is about 5 or more times slower than on "native" setup I used before and I am not sure where the bottleneck is.

Symfony developer toolbar is not detecting this so from the app perspective the timings are normal but the page just renders very slowly.

I guess it could be either nginx setup or symfony cache setup or some other docker <-> host machine config.

I am using OSx as host currently.

Thanks for the insights!

@advancingu
Copy link
Owner

I assume you're using VirtualBox on OS X. File access through a shared folder is notoriously slow with it, meaning that if you have your application code on OS X, mounted into a shared folder in the guest VM that is in turn mounted into the Docker container, performance will suffer greatly.

The best results I've heard of (besides running everything under Linux) can be achieved by having the entire application code base reside with Linux inside the VM (guest) and then sharing that folder from the guest onto the OS X host for editing.

Overall this is more of a VM issue than one of Docker.

@scottynomad
Copy link

I've had great success recently using the dinghy project which wraps
boot2docker and docker-machine but uses NFS rather than file system
emulation to share files between host and vm.

On Thu, Oct 29, 2015 at 9:19 AM Markus Weiland [email protected]
wrote:

I assume you're using VirtualBox on OS X. File access through a shared
folder is notoriously slow with it, meaning that if you have your
application code on OS X, mounted into a shared folder in the guest VM that
is in turn mounted into the Docker container, performance will suffer
greatly.

The best results I've heard of (besides running everything under Linux)
can be achieved by having the entire application code base reside with
Linux inside the VM (guest) and then sharing that folder from the guest
onto the OS X host for editing.

Overall this is more of a VM issue than one of Docker.


Reply to this email directly or view it on GitHub
#3 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants