Hi, * Loïc Minier <[EMAIL PROTECTED]> [2007-03-30 20:29]: > On Fri, Mar 30, 2007, Christoph Haas wrote: > > It appears like apt-get/aptitude/dpkg dealing with the list/database of > > installed packages is terribly slow at times. > > I think dpkg spends a lot of time reading all /var/lib/dpkg/info/*.list > files. These are not big and this is typically in cache between dpkg > runs, and I think this is the reason that cold dpkg runs are very very > slow. > > I tested by stracing dpkg -i on a small .deb after sync && echo 3 > > /proc/sys/vm/drop_caches, and from a 24 seconds run, 22 seconds were > spent reading *.list files.
Yes I experienced the same while doing a bit of stracing on dpkg. I wondered that it reads the whole info list even if you just remove a single package. Kind regards Nico -- Nico Golde - http://www.ngolde.de JAB: [EMAIL PROTECTED] - GPG: 0x73647CFF Forget about that mouse with 3/4/5 buttons, gimme a keyboard with 103/104/105 keys!
pgpxZM21H0bvo.pgp
Description: PGP signature