{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-mac/issues/668","repository_url":"https://api.github.com/repos/docker/for-mac","labels_url":"https://api.github.com/repos/docker/for-mac/issues/668/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-mac/issues/668/comments","events_url":"https://api.github.com/repos/docker/for-mac/issues/668/events","html_url":"https://github.com/docker/for-mac/issues/668","id":177762912,"number":668,"title":"Severe Docker 1.12.1 performance regression with DB2 images (~10x slower)","user":{"login":"malduarte","id":2080029,"avatar_url":"https://avatars0.githubusercontent.com/u/2080029?v=4","gravatar_id":"","url":"https://api.github.com/users/malduarte","html_url":"https://github.com/malduarte","followers_url":"https://api.github.com/users/malduarte/followers","following_url":"https://api.github.com/users/malduarte/following{/other_user}","gists_url":"https://api.github.com/users/malduarte/gists{/gist_id}","starred_url":"https://api.github.com/users/malduarte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malduarte/subscriptions","organizations_url":"https://api.github.com/users/malduarte/orgs","repos_url":"https://api.github.com/users/malduarte/repos","events_url":"https://api.github.com/users/malduarte/events{/privacy}","received_events_url":"https://api.github.com/users/malduarte/received_events","type":"User","site_admin":false},"labels":[{"id":415727199,"url":"https://api.github.com/repos/docker/for-mac/labels/area/storage","name":"area/storage","color":"fbca04","default":false},{"id":415702584,"url":"https://api.github.com/repos/docker/for-mac/labels/kind/bug","name":"kind/bug","color":"FF8C94","default":false},{"id":415726217,"url":"https://api.github.com/repos/docker/for-mac/labels/kind/performance","name":"kind/performance","color":"006b75","default":false},{"id":438331087,"url":"https://api.github.com/repos/docker/for-mac/labels/status/3-fixed","name":"status/3-fixed","color":"0e8a16","default":false},{"id":443825489,"url":"https://api.github.com/repos/docker/for-mac/labels/version/1.12.1","name":"version/1.12.1","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":93,"created_at":"2016-09-19T11:40:32Z","updated_at":"2017-11-14T16:04:19Z","closed_at":null,"author_association":"NONE","body":"### Expected behavior\n\nPerformance equal or better than 1.12.0\n### Actual behavior\n\nDocker 1.12.1 is much slower on pretty much all DB2 activity. Not sure if it is DB2 only, but I'm only experiencing it on DB2. For example empty database creation takes ~24 seconds on 1.12.0 but on 1.12.1 it takes 10 times more, around ~253 seconds\n\ndocker stats seems to indicate lower cpu usage and lower I/O activity on 1.12.1\n### Information\n- Di276C02C2-7AEC-4A1B-9F2C-9E6DAD3241CB\n- Create a Dockerfile with the following content\n\n```\nFROM ibmcom/db2express-c:latest\n\nENV DB2INST1_PASSWORD=password\nENV LICENSE=accept\nUSER root\nRUN /bin/bash -c 'su - db2inst1 -c \"db2start && db2 create database test\"'\n```\n### Steps to reproduce the behavior\n1. Install 1.12.0\n2.  Pull official db2 image `docker pull ibmcom/db2express-c`  \n3. Make sure you're running 1.12.0 `docker --version` should output `Docker version 1.12.0, build 8eab29e`\n4. Create an image with the docker file above with the time command `time docker build -t test .` Consider running docker stats while it is running\n5. Record the output\n6. Remove the recently created image `docker rmi <imageid>`\n7. Install 1.12.1\n8.  Make sure you're running 1.12.1 `docker --version` should output `Docker version 1.12.1, build 6f9534c`\n9. Create an image with the attached docker file  with the time command `time docker build -t test .`.  Consider running docker stats while it is running\n10. Compare the times. \n\n```\n12:05 $ docker --version\nDocker version 1.12.0, build 8eab29e\n✔ ~/docker_bench\n12:05 $ time docker build -t test .\nSending build context to Docker daemon 66.56 kB\nStep 1 : FROM ibmcom/db2express-c:latest\n ---> 7aa154d9b73c\nStep 2 : ENV DB2INST1_PASSWORD password\n ---> Using cache\n ---> 8abd69a10768\nStep 3 : ENV LICENSE accept\n ---> Using cache\n ---> 271672f5dc75\nStep 4 : USER root\n ---> Using cache\n ---> 3f3ab0f72686\nStep 5 : RUN /bin/bash -c 'su - db2inst1 -c \"db2start && db2 create database test\"'\n ---> Running in bd1c14701b68\nlibnuma: Warning: /sys not mounted or invalid. Assuming one node: No such file or directory\nSQL1063N  DB2START processing was successful.\nDB20000I  The CREATE DATABASE command completed successfully.\n ---> 6bb79e3c1592\nRemoving intermediate container bd1c14701b68\nSuccessfully built 6bb79e3c1592\n\nreal    0m23.646s\nuser    0m0.011s\nsys 0m0.014s\n\n\n12:10 $ docker --version\nDocker version 1.12.1, build 6f9534c\n✔ ~/docker_bench\n12:11 $ time docker build -t test .\nSending build context to Docker daemon 66.56 kB\nStep 1 : FROM ibmcom/db2express-c:latest\n ---> 7aa154d9b73c\nStep 2 : ENV DB2INST1_PASSWORD password\n ---> Using cache\n ---> 8abd69a10768\nStep 3 : ENV LICENSE accept\n ---> Using cache\n ---> 271672f5dc75\nStep 4 : USER root\n ---> Using cache\n ---> 3f3ab0f72686\nStep 5 : RUN /bin/bash -c 'su - db2inst1 -c \"db2start && db2 create database test\"'\n ---> Running in ebbf3069fb53\nlibnuma: Warning: /sys not mounted or invalid. Assuming one node: No such file or directory\nSQL1063N  DB2START processing was successful.\nDB20000I  The CREATE DATABASE command completed successfully.\n ---> 032da4506157\nRemoving intermediate container ebbf3069fb53\nSuccessfully built 032da4506157\n\nreal    4m23.451s\nuser    0m0.010s\nsys 0m0.015s\n\n```\n"},"comment":{"url":"https://api.github.com/repos/docker/for-mac/issues/comments/344306807","html_url":"https://github.com/docker/for-mac/issues/668#issuecomment-344306807","issue_url":"https://api.github.com/repos/docker/for-mac/issues/668","id":344306807,"user":{"login":"leepowellcouk","id":602052,"avatar_url":"https://avatars2.githubusercontent.com/u/602052?v=4","gravatar_id":"","url":"https://api.github.com/users/leepowellcouk","html_url":"https://github.com/leepowellcouk","followers_url":"https://api.github.com/users/leepowellcouk/followers","following_url":"https://api.github.com/users/leepowellcouk/following{/other_user}","gists_url":"https://api.github.com/users/leepowellcouk/gists{/gist_id}","starred_url":"https://api.github.com/users/leepowellcouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leepowellcouk/subscriptions","organizations_url":"https://api.github.com/users/leepowellcouk/orgs","repos_url":"https://api.github.com/users/leepowellcouk/repos","events_url":"https://api.github.com/users/leepowellcouk/events{/privacy}","received_events_url":"https://api.github.com/users/leepowellcouk/received_events","type":"User","site_admin":false},"created_at":"2017-11-14T16:04:19Z","updated_at":"2017-11-14T16:04:19Z","author_association":"NONE","body":"Not sure if I'm suffering from this problem - very new to docker. But I am composing a simple apache/php container with a mysql container volume mapped to a local directory for data storage. When I run my application through the containers I get intermittent connection problems to the MySQL container. Could this be down to the I/O speeds?"}}
{"actor":{"display_login":"leepowellcouk"}}