On 09/15/2014 07:56 AM, Carlos E. R. wrote:
On 2014-09-15 11:04, 1xx wrote:
Hi all:
How many seconds does "time rpm -qa | wc" cost it in your OS?
About a minute and a half. Not "seconds".
Telcontar:~ # time rpm -qa | wc 6154 6154 240152
real 1m20.028s user 0m2.875s sys 0m1.735s Telcontar:~ # Telcontar:~ # time rpm -qa | wc -l 6154
real 0m2.877s user 0m2.665s sys 0m0.213s Telcontar:~ #
This is on 13.1 on real hardware, with 8 GiB RAM, and a quad core2 cpu (Q9550 @ 2.83GHz), and reasonably good rotating disks, almost idling.
Notice the huge difference between the first and second runs, which proves that the slag in on the disk and database, as Jan Engelhardt says.
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: # time rpm -qa | wc 1806 1806 61731 real 0m0.613s user 0m0.504s sys 0m0.050s This is on a quad core with hyperthreading & 16 GB. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org