Mailinglist Archive: opensuse (982 mails)

< Previous Next >
Re: [opensuse] Re: [opensuse-factory] How many seconds does "time rpm -qa | wc" cost it?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2014-09-15 14:00, James Knott wrote:
On 09/15/2014 07:56 AM, Carlos E. R. wrote:


Telcontar:~ # l -h /var/lib/rpm/Packages -rw-r--r-- 1 root root
348M Sep 15 13:49 /var/lib/rpm/Packages




Why does it take so long? Here are my results:

Because the database is 348M on rotating disk. Again, notice the huge
difference on the second run, while the files are still cached: 3 seconds.

If you run the query after a yast/zypper run, it runs fast, too.

- --
Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlQW2CMACgkQtTMYHG2NR9UxIACfTrUTyoU4PipdHuhvf8j1nF6Z
+/sAoI3fB+NLCxaIxlatBriOa4JYE2di
=Xxj5
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References