Activity log for bug #1004947

Date Who What changed Old value New value Message
2012-05-26 17:50:58 Daniel Hahler bug added bug
2012-05-26 17:50:58 Daniel Hahler attachment added strace output https://bugs.launchpad.net/bugs/1004947/+attachment/3164510/+files/apt-cache-search-strace.txt
2012-05-27 16:36:22 Daniel Hahler bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674690
2012-05-27 16:36:22 Daniel Hahler bug task added apt (Debian)
2012-05-27 16:42:27 Daniel Hahler description I've recognized that "apt-cache search" has become quite slow on my system, and when stracing it it shows that it lists the contents of /var/lib/apt/lists a lot (45227 times!): openat(AT_FDCWD, "/var/lib/apt/lists/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3 getdents64(3, /* 156 entries */, 32768) = 13920 getdents64(3, /* 0 entries */, 32768) = 0 close(3) = 0 % grep -c 'openat(AT_FDCWD, "/var/lib/apt/lists/"' apt-cache-search-strace.txt 45227 (this count is reproducible with a second run) % time apt-cache search tomahawk apt-cache search tomahawk 3.84s user 4.54s system 99% cpu 8.427 total I am attaching the full output of strace. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: apt 0.8.16~exp12ubuntu10 ProcVersionSignature: Ubuntu 3.2.0-24.39-generic-pae 3.2.16 Uname: Linux 3.2.0-24-generic-pae i686 ApportVersion: 2.0.1-0ubuntu8 Architecture: i386 Date: Sat May 26 19:39:11 2012 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1) SourcePackage: apt UpgradeStatus: Upgraded to precise on 2011-12-16 (162 days ago) I've recognized that "apt-cache search" has become quite slow on my system, and when stracing it it shows that it lists the contents of /var/lib/apt/lists a lot (45227 times!):     openat(AT_FDCWD, "/var/lib/apt/lists/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3     getdents64(3, /* 156 entries */, 32768) = 13920     getdents64(3, /* 0 entries */, 32768) = 0     close(3) = 0 % grep -c 'openat(AT_FDCWD, "/var/lib/apt/lists/"' apt-cache-search-strace.txt 45227 (this count is reproducible with a second run) % time apt-cache search tomahawk apt-cache search tomahawk 3.84s user 4.54s system 99% cpu 8.427 total I am attaching the full output of strace. TEST CASE: % strace apt-cache search tomahawk 2>&1 | grep -c 'openat(AT_FDCWD, "/var/lib/apt/lists/"' 45227 ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: apt 0.8.16~exp12ubuntu10 ProcVersionSignature: Ubuntu 3.2.0-24.39-generic-pae 3.2.16 Uname: Linux 3.2.0-24-generic-pae i686 ApportVersion: 2.0.1-0ubuntu8 Architecture: i386 Date: Sat May 26 19:39:11 2012 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1) SourcePackage: apt UpgradeStatus: Upgraded to precise on 2011-12-16 (162 days ago)
2012-05-27 17:32:56 Bug Watch Updater apt (Debian): status Unknown New
2012-05-27 17:54:43 Launchpad Janitor apt (Ubuntu): status New Confirmed
2012-05-27 17:57:48 Marcos Magalhães apt (Ubuntu): status Confirmed New
2012-05-28 11:06:55 Daniel Hahler summary "apt-cache search" is slow because of listing /var/lib/apt/lists 45227 times "apt-cache search" is slow because of listing /var/lib/apt/lists 45227 times (triggered by 'Acquire::Languages "none";')
2012-06-11 09:24:28 Launchpad Janitor branch linked lp:~donkult/apt/sid
2012-06-12 04:27:19 Launchpad Janitor branch linked lp:debian/apt
2012-06-12 15:09:22 Bug Watch Updater apt (Debian): status New Fix Released
2012-06-12 19:16:09 Launchpad Janitor apt (Ubuntu): status New Fix Released
2012-06-12 19:16:09 Launchpad Janitor bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666772
2012-06-12 19:16:09 Launchpad Janitor cve linked 2012-0214
2013-01-16 21:35:33 Ștefănescu Cristian bug added subscriber Ștefănescu Cristian