On Monday 20 of January 2014 16:57:11 Stephan Kulow wrote:
Am 20.01.2014 16:52, schrieb Sid Boyce:
Installed on 3 boxes but only one is slow using zypper ref and zypper dup.
With "strace -s 256 -f rpmdb2solv" it spends around 4 minutes in pread(3,
Here it takes 0.4s.
What filesystem do you use for /var/lib ? What does filefrag /var/lib/rpm/* look like?
After defragmenting /var/lib/Packages from ~100 to ~40 extents, rpmdb2solv takes 6 s rather than 10 min on an old PC on ext4, oS 13.1. Since the Packages file is ~400 MB and the disks read at ~80MB/s, this is reasonable. So the cause for the delay apparent when running zypper must be the combination of fragmentation (slowness of rpmdb2solv) and the fact that the solv file is always deleted and rebuilt, fixed by Michael Andres.
Greetings, Stephan
Thanks, Peter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org