Re: [Hampshire] Tuning yum on Fedora 8

Top Page
Author: Jon Fautley
Date:  
To: hampshire
Subject: Re: [Hampshire] Tuning yum on Fedora 8

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x5799a100.hantslug.org.uk.478': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Thu Feb 21 13:21:08 2008 GMT
gpg: using DSA key 9111B5743CA26D44
gpg: Can't check signature: No public key
On Thu, 21 Feb 2008 10:21:12 +0000
The Holy ettlz <theholyettlz@???> wrote:

> > > Any Fedora users out there who know how to tune down yum's memory
> > > requirements? Just updated 14 packages and it the process
> > > allocated over 200 MiB virutal, with about 170 MiB resident...
> >
> > Not sure there's a specific way of tuning memory usage. Is it yum,
> > or RPM, allocating the memory?
>
> Most of it seems to be allocated by yum since the memory usage goes
> skyward even before any transactions have taken place. It even takes
> yum 87/107 res/virt MiB peak to decide that there are no updates
> available on my system.


As Vic mentioned, --disablerepo is your friend. Yum sucks in LOTS of
data when it works with repos. Much more than apt does (before anyone
starts with the "But Debian doesn't do that..." argument ;p), and thus
memory usage is pretty high. It's also written in Python, which isn't
known for its memory leanness... :)

The reason for the yum vs. RPM question is because RPM can go
a bit haywire with huge RPM packages ;)

Cheers,

/j
-- 
Jon Fautley RHCE, RHCX               email: jfautley@???
Senior Consultant                    cell :     +44 7841 558683
Global Professional Services
Red Hat UK, 200 Fowler Avenue, Farnborough, Hampshire, GU14 7JP