[Yum-devel] [PATCH][RFC] Optimizing SqliteSack
seth vidal
skvidal at fedoraproject.org
Fri Dec 14 14:28:05 UTC 2007
On Fri, 2007-12-14 at 11:52 +0100, Florian Festi wrote:
> Hi!
>
> I started moving the sqlite sack to operate on pkgKey (table index) instead
> of pkgId (rpm hash value) quite a while ago - in fact this was one of the
> first things I've done in yum. While some changes are already upstream some
> of these changes are still pending.
>
> The first patch changes a lot of SQL statements and adds a per pkgKey
> package cache that makes sure we load every pkg only once and per pkgKey
> excludes.
>
> The second patch adds an Least Recently Used list library and uses it to
> keep only a limited amount of PRCOs in memory at a time.
>
> The overall memory saving is 85MB (33%) for an F8 full install and 19MB
> (20%) for a 1000 pkg install. Runtime is reduced by 10-20%.
>
What savings have you seen w/o the lru library and patch?
-sv
More information about the Yum-devel
mailing list