openSUSE / libsolv

Library for solving packages and reading repositories
http://en.opensuse.org/openSUSE:Libzypp_satsolver
Other
525 stars 153 forks source link

Performance issues when parsing XML data on ARM #185

Open aruiz opened 7 years ago

aruiz commented 7 years ago

I've been doing some profiling as building up the libsolv metadata takes a huge amount of time on ARMv7 (RPi2/3, Banana Pi, Cubieboard...):

[root@scw-733e10 libsolv-master]# dnf clean dbcache 2 files removed [root@scw-733e10 libsolv-master]# time dnf makecache Metadata cache created.

real 3m48.124s user 3m45.250s sys 0m2.800s

I've run valgrind both using libexpat and libxml2, I'm attaching both output files.

callgrind-expat.txt callgrind-libxml2.txt

aruiz commented 7 years ago

As an additional comment, I'm pretty sure this is not I/O bound, CPU is at 100% during the operation and this is run on from an SSD nbd volume at scaleway.com's datacenter.