[Yum-devel] yum on an olpc machine (slooooooooooow)

Paul Nasrat pnasrat at redhat.com
Sat Dec 16 09:50:53 UTC 2006


On Fri, 2006-12-15 at 23:07 -0500, seth vidal wrote:

> -bash-3.1# time rpm -qa  >> /dev/null
> 
> real    0m14.632s
> user    0m14.060s
> sys     0m0.220s
> 
> -bash-3.1# time yum list installed >>/dev/null
> 
> real    0m9.797s
> user    0m8.910s
> sys     0m0.630s

Did you clear /var/lib/rpm/__db* between these, otherwise the numbers
are misleading as bdb has cached.

> The only way I can think of would be a different format so we don't have
> to parse the xml or pre-parsing the metadata into a sqlite db. This
> would make downloads of the metadata larger but maybe it would be faster
> for operations.
> 
> For example - fedora extras:
> -rw-r--r--  1 root root 1.6M Dec 16 03:06 primary.xml.gz
> -rw-r--r--  1 root root 2.2M Dec 16 03:09 primary.xml.sqlite.bz2
> 
> bzipped the primary xml sqlite db is 2.2M vs 1.6M for the xml itself.

The reason I didn't go this route for  FC5 anaconda is that it's just
the same problem as having hdlist, etc.  Multiple versions of the same
metadata, the problem we were trying to avoid by moving to repodata.
I'd strongly argue this is the wrong approach.

Paul





More information about the Yum-devel mailing list