https://bugzilla.redhat.com/show_bug.cgi?id=1103595
Bug ID: 1103595
Summary: Docker daemon uses 100 % CPU
Product: Fedora
Version: 20
Component: docker-io
Assignee: lsm5(a)redhat.com
Reporter: jpazdziora(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: admiller(a)redhat.com, golang(a)lists.fedoraproject.org,
lsm5(a)redhat.com, mattdm(a)redhat.com,
mgoldman(a)redhat.com, s(a)shk.io, vbatts(a)redhat.com
Description of problem:
I run docker build which downloads images. While this happens, the docker
daemon is using up-to 100 % CPU when it probably does not have that much work
to do, given the speed of my network.
Version-Release number of selected component (if applicable):
# rpm -qf /usr/bin/docker
docker-io-0.11.1-7.fc20.x86_64
How reproducible:
Seen once.
Steps to Reproduce:
1. ( echo FROM fedora:20 ; ADD testfile /bin/testfile ) > Dockerfile
2. docker build -t test-1 .
3. In other terminal, observe top while the images are being downloaded.
Actual results:
# docker build -t test-1 .
Uploading context 3.584 kB
Uploading context
Step 0 : FROM fedora:20
Pulling repository fedora
4f4eba4c47b8: Downloading [===========================================> ]
101.4 MB/115.9 MB 5s
511136ea3c5a: Download complete
8c982ec5ea99: Download complete
and while the download is running
# top
top - 03:26:45 up 6 days, 36 min, 2 users, load average: 0.58, 0.30, 0.17
Tasks: 153 total, 2 running, 151 sleeping, 0 stopped, 0 zombie
%Cpu(s): 14.8 us, 11.3 sy, 0.0 ni, 43.9 id, 27.1 wa, 1.8 hi, 1.1 si, 0.0 st
KiB Mem: 8160392 total, 4357084 used, 3803308 free, 176932 buffers
KiB Swap: 8273916 total, 0 used, 8273916 free, 3490916 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16112 root 20 0 588820 35144 7144 S 97.3 0.4 1:31.79 docker
16119 root 0 -20 0 0 0 S 3.6 0.0 0:04.29 loop0
and
# ps axuw | grep docker
root 16112 7.6 0.4 588820 36176 ? Ssl 03:05 1:37
/usr/bin/docker -d --selinux-enabled
root 16287 0.3 0.0 284764 5308 pts/0 Sl+ 03:26 0:00 docker build
-t test-1 .
root 16341 0.0 0.0 112668 964 pts/1 S+ 03:26 0:00 grep
--color=auto docker
Expected results:
I'd expect the daemon not consuming 100 % CPU when the only action happening is
download of images on fairly slow line.
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.