Created
July 10, 2014 17:47
-
-
Save bobrik/aab5db84559fb795fb67 to your computer and use it in GitHub Desktop.
slow apt-get on docker in virtualbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~] % DOCKER_HOST=tcp://127.0.0.1:2375 docker version | |
Client version: 1.0.0 | |
Client API version: 1.12 | |
Go version (client): go1.2.1 | |
Git commit (client): 63fe64c | |
Server version: 1.1.1 | |
Server API version: 1.13 | |
Go version (server): go1.2.1 | |
Git commit (server): bd609d2 | |
[~] % DOCKER_HOST=tcp://127.0.0.1:2375 time docker run -i -t ubuntu:14.04 apt-get update | |
Ign http://archive.ubuntu.com trusty InRelease | |
Ign http://archive.ubuntu.com trusty-updates InRelease | |
Ign http://archive.ubuntu.com trusty-security InRelease | |
Hit http://archive.ubuntu.com trusty Release.gpg | |
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B] | |
Get:2 http://archive.ubuntu.com trusty-security Release.gpg [933 B] | |
Hit http://archive.ubuntu.com trusty Release | |
Get:3 http://archive.ubuntu.com trusty-updates Release [58.5 kB] | |
Get:4 http://archive.ubuntu.com trusty-security Release [58.5 kB] | |
Hit http://archive.ubuntu.com trusty/main Sources | |
Hit http://archive.ubuntu.com trusty/restricted Sources | |
Hit http://archive.ubuntu.com trusty/universe Sources | |
Hit http://archive.ubuntu.com trusty/main amd64 Packages | |
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages | |
Hit http://archive.ubuntu.com trusty/universe amd64 Packages | |
Get:5 http://archive.ubuntu.com trusty-updates/main Sources [83.1 kB] | |
Get:6 http://archive.ubuntu.com trusty-updates/restricted Sources [14 B] | |
Get:7 http://archive.ubuntu.com trusty-updates/universe Sources [60.1 kB] | |
Get:8 http://archive.ubuntu.com trusty-updates/main amd64 Packages [218 kB] | |
Get:9 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [14 B] | |
Get:10 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [154 kB] | |
Get:11 http://archive.ubuntu.com trusty-security/main Sources [31.8 kB] | |
Get:12 http://archive.ubuntu.com trusty-security/restricted Sources [14 B] | |
Get:13 http://archive.ubuntu.com trusty-security/universe Sources [6808 B] | |
Get:14 http://archive.ubuntu.com trusty-security/main amd64 Packages [106 kB] | |
Get:15 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14 B] | |
Get:16 http://archive.ubuntu.com trusty-security/universe amd64 Packages [37.0 kB] | |
Fetched 816 kB in 5s (150 kB/s) | |
Reading package lists... Done | |
13.93 real 0.00 user 0.00 sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) bt | |
#0 0x00007fba4ca1fbe7 in getrlimit64 () at ../sysdeps/unix/syscall-template.S:81 | |
#1 0x00007fba4ca20a81 in __getdtablesize () at ../sysdeps/posix/getdtsz.c:32 | |
#2 0x00007fba4c9f1ea4 in posix_sysconf (name=4) at ../sysdeps/posix/sysconf.c:85 | |
#3 linux_sysconf (name=4) at ../sysdeps/unix/sysv/linux/x86_64/../sysconf.c:145 | |
#4 __GI___sysconf (name=4) at ../sysdeps/unix/sysv/linux/x86_64/sysconf.c:36 | |
#5 0x00007fba4d46975d in ExecFork(std::set<int, std::less<int>, std::allocator<int> >) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 | |
#6 0x00007fba4d46bc4b in ExecFork() () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 | |
#7 0x00007fba4d2132f3 in ExtractTar::StartGzip() () from /usr/lib/x86_64-linux-gnu/libapt-inst.so.1.5 | |
#8 0x00007fba4d213686 in ExtractTar::Go(pkgDirStream&) () from /usr/lib/x86_64-linux-gnu/libapt-inst.so.1.5 | |
#9 0x00007fba4d218796 in debDebFile::ExtractTarMember(pkgDirStream&, char const*) () from /usr/lib/x86_64-linux-gnu/libapt-inst.so.1.5 | |
#10 0x00000000004033b8 in ?? () | |
#11 0x00000000004026ff in ?? () | |
#12 0x00007fba4c94fec5 in __libc_start_main (main=0x402270, argc=31, argv=0x7fffa9e745c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, | |
stack_end=0x7fffa9e745b8) at libc-start.c:287 | |
#13 0x0000000000402a0f in ?? () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512391, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512392, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512393, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512394, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512395, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512396, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512397, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512398, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512399, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512400, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512401, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512402, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512403, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512404, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512405, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512406, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512407, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512408, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=1024*1024}) = 0 | |
fcntl(512409, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor) | |
getrlimit(RLIMIT_NOFILE, ^C{rlim_cur=512*1024, rlim_max=1024*1024}) = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~] % DOCKER_HOST=tcp://192.168.0.8:2375 docker version | |
Client version: 1.0.0 | |
Client API version: 1.12 | |
Go version (client): go1.2.1 | |
Git commit (client): 63fe64c | |
Server version: 1.1.1 | |
Server API version: 1.13 | |
Go version (server): go1.2.1 | |
Git commit (server): bd609d2 | |
[~] % DOCKER_HOST=tcp://192.168.0.8:2375 time docker run -i -t ubuntu:14.04 apt-get update | |
Ign http://archive.ubuntu.com trusty InRelease | |
Ign http://archive.ubuntu.com trusty-updates InRelease | |
Ign http://archive.ubuntu.com trusty-security InRelease | |
Hit http://archive.ubuntu.com trusty Release.gpg | |
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B] | |
Get:2 http://archive.ubuntu.com trusty-security Release.gpg [933 B] | |
Hit http://archive.ubuntu.com trusty Release | |
Get:3 http://archive.ubuntu.com trusty-updates Release [58.5 kB] | |
Get:4 http://archive.ubuntu.com trusty-security Release [58.5 kB] | |
Hit http://archive.ubuntu.com trusty/main Sources | |
Hit http://archive.ubuntu.com trusty/restricted Sources | |
Hit http://archive.ubuntu.com trusty/universe Sources | |
Hit http://archive.ubuntu.com trusty/main amd64 Packages | |
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages | |
Hit http://archive.ubuntu.com trusty/universe amd64 Packages | |
Get:5 http://archive.ubuntu.com trusty-updates/main Sources [83.1 kB] | |
Get:6 http://archive.ubuntu.com trusty-updates/restricted Sources [14 B] | |
Get:7 http://archive.ubuntu.com trusty-updates/universe Sources [60.1 kB] | |
Get:8 http://archive.ubuntu.com trusty-updates/main amd64 Packages [218 kB] | |
Get:9 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [14 B] | |
Get:10 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [154 kB] | |
Get:11 http://archive.ubuntu.com trusty-security/main Sources [31.8 kB] | |
Get:12 http://archive.ubuntu.com trusty-security/restricted Sources [14 B] | |
Get:13 http://archive.ubuntu.com trusty-security/universe Sources [6808 B] | |
Get:14 http://archive.ubuntu.com trusty-security/main amd64 Packages [106 kB] | |
Get:15 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14 B] | |
Get:16 http://archive.ubuntu.com trusty-security/universe amd64 Packages [37.0 kB] | |
Fetched 816 kB in 25s (31.5 kB/s) | |
Reading package lists... Done | |
54.33 real 0.00 user 0.00 sys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment