Package: apt
Version: 1.0.9.2
Severity: normal
Wondering why apt-cache show takes 3 seconds to run, I used strace
and found the following:
21497 12:30:35.549259 getrlimit(RLIMIT_NOFILE, {rlim_cur=64*1024, rlim_max=64*1024}) = 0
21497 12:30:35.549333 fcntl(3, F_SETFD, FD_CLOEXEC) = 0
[…]
21498 12:30:38.760534 fcntl(65535, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
21498 12:30:38.760545 getrlimit(RLIMIT_NOFILE, {rlim_cur=64*1024, rlim_max=64*1024}) = 0
Is it really necessary to close 64k file descriptors?
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2014.1
ii gnupg 1.4.18-4
ii libapt-pkg4.12 1.0.9.2
ii libc6 2.19-11
ii libgcc1 1:4.9.1-16
ii libstdc++6 4.9.1-16
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.6.11-1
ii dpkg-dev 1.17.13
pn python-apt <none>
-- debconf-show failed
--
.''`. martin f. krafft <madduck@d.o> @martinkrafft
: :' : proud Debian developer
`. `'` http://people.debian.org/~madduck
`- Debian - when you have better things to do than fixing systems
Attachment:
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)