Skip to content
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 becomes even slower is Parallels Desktop is started #894

Closed
ilg-ul opened this issue Nov 3, 2016 · 8 comments
Closed

Docker becomes even slower is Parallels Desktop is started #894

ilg-ul opened this issue Nov 3, 2016 · 8 comments

Comments

@ilg-ul
Copy link

ilg-ul commented Nov 3, 2016

Expected behaviour

If enough memory is available, starting Parallels Desktop should not impact Docker performances

Actual behaviour

Starting Parallels Desktop while Docker is running seems to make Docker even much slower than it is usually.

Information

  • Full output of the diagnostics from "Diagnose & Feedback" in the menu

Docker 1.12.3-beta29.2

OS X: version 10.12.1 (build: 16B2555)
logs: /tmp/D71F5326-0D23-4376-8A06-67DBD61AF38C/20161103-185130.tar.gz
[OK]     vmnetd
[OK]     dns
[OK]     driver.amd64-linux
[OK]     virtualization VT-X
[OK]     app
[OK]     moby
[OK]     system
[OK]     moby-syslog
[OK]     db
[OK]     env
[OK]     virtualization kern.hv_support
[OK]     slirp
[OK]     osxfs
[OK]     moby-console
[OK]     logs
[OK]     docker-cli
[OK]     menubar
[OK]     disk
Failure: Could not upload diagnostic data to remote server (docker-diagnose exit code is 1)

Attached manually:
20161103-185130.tar.gz

Steps to reproduce the behavior

  1. start a very long build (for example GNU ARM Eclipse QEMU is notably long)
  2. start a Parallels virtual machine
  3. stop the Parallels VM

The curious thing is that even if Parallels is closed, the Docker speed remains low.

@ijc
Copy link
Contributor

ijc commented Nov 18, 2016

I expect that Parallels likely installs kernel modules which interfere somehow with OSX's native Hypervisor.framework (much like older virtual box 4.x modules did). Even shutting down Parallels probably doesn't unload those modules, maybe it is possible to do it manually though?

Unfortunately I think it is unlikely we can address that within Docker for mac. Have you reported this to one or both of Parallels or Apple?

@ilg-ul
Copy link
Author

ilg-ul commented Nov 18, 2016

Have you reported this to Parallels or Apple

nope.

given past experience with Apple, I guess that, since Docker is affected, they'll ask me to report the problem to... Docker :-(

@dsheets
Copy link
Contributor

dsheets commented Jan 17, 2017

@ilg-ul do you still experience this behavior? Have you tried unloading the Parallels kernel modules?

@ilg-ul
Copy link
Author

ilg-ul commented Jan 17, 2017

I planned to upgrade Parallels to the latest version and time some builds, but I've been quite busy.

I'll come with more data, when available.

@ilg-ul
Copy link
Author

ilg-ul commented Jan 25, 2017

these days I did some tests with the OpenOCD build and the results are not conclusive. :-(

the build with the Parallels Desktop not started, took:

Script "/Users/ilg/Downloads/build-scripts.git/scripts/build-openocd.sh" completed at Tue Jan 24 21:39:35 EET 2017.
Duration: 58 minutes.

real	58m28.223s
user	2m40.798s
sys	0m53.390s

Exactly the same script, with Parallels running a Windows 8 x64 VM, took only slightly more:

Script "/Users/ilg/Downloads/build-scripts.git/scripts/build-openocd.sh" completed at Wed Jan 25 14:58:11 EET 2017.
Duration: 59 minutes.

real	59m2.521s
user	3m14.665s
sys	0m55.462s

I did not have time to test the QEMU builds, which, last time I ran, took several hours to complete.

on the other side, now I'm using Version 1.13.0-beta38 (15084), not 1.12 stable, as I did for the QEMU build. it is perfectly possible for the latest releases to have fixed some performance issues.

I suggest we close this issue for now. when I'll run the QEMU builds I'll check again, and, if necessary, I'll report again.

@ilg-ul ilg-ul closed this as completed Jan 25, 2017
@dsheets
Copy link
Contributor

dsheets commented Jan 26, 2017

Thanks for checking! It may also depend on your OS X version so please keep us updated with that if you re-test. Thanks for using Docker for Mac!

@ilg-ul
Copy link
Author

ilg-ul commented Jan 26, 2017

For the records, the current version is macOS Sierra 10.12.2 (16C67), running on a MacBook Pro, with 16 GB RAM and 1TB of SSD.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants