Bug#830617: apt: "apt-get clean" makes apt-cache slow

2016-07-10 Thread Jakub Wilk

* Julian Andres Klode , 2016-07-09, 23:51:

(or we could regenerate the cache during  clean...)


Yes, please regenerate it.

--
Jakub Wilk



Bug#830617: apt: "apt-get clean" makes apt-cache slow

2016-07-09 Thread Julian Andres Klode
On Sat, Jul 09, 2016 at 09:26:11PM +0200, Jakub Wilk wrote:
> Package: apt
> Version: 1.3~pre2
> Usertags: serious
> 
> "apt-get clean" makes apt-cache slooow:
> 
> $ time apt-cache show apt > /dev/null
> 
> real0m0.270s
> user0m0.232s
> sys 0m0.028s
> 
> $ sudo apt-get clean
> 
> $ time apt-cache show apt > /dev/null
> 
> real0m4.118s
> user0m3.072s
> sys 0m0.312s
> 
> 
> The manpage says that this command "clean clears out the local repository of
> retrieved package files" so I wouldn't expect it to have any effect on
> apt-cache.
> 

That was the case, but we made clean clean the cache files too to catch
broken caches. So it's a documentation issue (or we could regenerate the
cache during  clean...)

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.



Bug#830617: apt: "apt-get clean" makes apt-cache slow

2016-07-09 Thread Jakub Wilk

Package: apt
Version: 1.3~pre2
Usertags: serious

"apt-get clean" makes apt-cache slooow:

$ time apt-cache show apt > /dev/null

real0m0.270s
user0m0.232s
sys 0m0.028s

$ sudo apt-get clean

$ time apt-cache show apt > /dev/null

real0m4.118s
user0m3.072s
sys 0m0.312s


The manpage says that this command "clean clears out the local 
repository of retrieved package files" so I wouldn't expect it to have 
any effect on apt-cache.



-- System Information:
Debian Release: stretch/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages apt depends on:
ii  adduser 3.115
ii  debian-archive-keyring  2014.3
ii  gpgv1.4.20-6
ii  init-system-helpers 1.37
ii  libapt-pkg5.0   1.3~pre2
ii  libc6   2.23-1
ii  libgcc1 1:6.1.1-9
ii  libstdc++6  6.1.1-9

Versions of packages apt recommends:
ii  gnupg   1.4.20-6
ii  gnupg2  2.1.11-7

--
Jakub Wilk