Performance is much slower than vmware fusion based docker machine

I run several container instances via docker-compose, including a mysql container. Which makes use of volume to persist data storage.

Expected behavior

The performance of the mysql container should be comparable when running in docker for mac and vmware fusion.

Actual behavior

The time spent on deleting several data rows in docker for mac is more than 10 times slower.

Information

  • the output of:
    pinata diagnose -u
    OS X: version 10.11.4 (build: 15E65)
    Docker.app: version v1.11.0-beta8.2
    Running diagnostic tests:
    [OK] docker-cli
    [OK] Moby booted
    [OK] driver.amd64-linux
    [OK] vmnetd
    [OK] osxfs
    [OK] db
    [OK] slirp
    [OK] menubar
    [OK] environment
    [OK] Docker
    [OK] VT-x
    Docker logs are being collected into /tmp/20160426-100107.tar.gz
    Most specific failure is: No error was detected
    Your unique id is: E6DE5C79-CAD5-4EBB-AB08-4016DCE242E0
    Please quote this in all correspondence.

  • OSX 10.11.4, memory for docker for mac is 2G. memory for vmware fusion is 1G.

Steps to reproduce the behavior

Are you using volumes?
If it’s the case, the docker beta version have some performance problem with it as you can see (and follow) here: File access in mounted volumes extremely slow, CPU bound

Yes. im using volume.
is there any way to ssh into the xhyve instance to check resource usage.

1 Like

Could you please share which mysql image you are using and any additional configuration of it? We’d like to make sure that your use case is well-supported and performant.

Thank you,

David

I’m using the latest official mysql image in docker hub. Its image id is
e13b20a4f248.