On Mon, Sep 15, 2014 at 8:25 PM, Carlos E. R.
-----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.
Yes, it's a nice band-aid if the system has enough memory. Not so much if it doesn't. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org