-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-09-16 01:08, Carlos E. R. wrote:
On 2014-09-15 23:10, Bernhard Voelker wrote:
Or force the system to cache it by copying it to null...
Look, it is as simple as this:
cer@Telcontar:~> time cp /var/lib/rpm/Packages /dev/null
Oh. I see now that Christian Boltz hit on the same idea, but I read his post after reading mine. Unfortunately someone sent the thread to the wrong mail list. If I do as he does: echo 3 > /proc/sys/vm/drop_caches cp /var/lib/rpm/Packages /dev/null -- 0m3.747s rpm -qa | wc -l -- 0m3.426s echo 3 > /proc/sys/vm/drop_caches rpm -qa | wc -l -- 1m22.089s So it is obvious! We simply run the cp to null thing ahead of the query on the script, and done. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlQXdWoACgkQtTMYHG2NR9XoUQCgjw6cH+KyErpSevqhd1xJHBBH TkYAoIV4Xn76wVlELuehqdYYESoG9MDh =l1px -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org