[Yum] Question on memory requirements

Tom Mitchell mitch48 at sbcglobal.net
Fri Jan 18 05:08:51 UTC 2008


On Thu, Jan 03, 2008 at 05:22:23PM +0100, Bart van Kuik wrote:
> Delivered-To: yum at lists.dulug.duke.edu
> Date: Thu, 3 Jan 2008 17:22:23 +0100 (CET)
> Subject: [Yum] Question on memory requirements
> From: "Bart van Kuik" <bart at vankuik.nl>
> To: yum at lists.dulug.duke.edu
> Reply-To: "Yellowdog Updater, Modified" <yum at lists.dulug.duke.edu>
> 
> >> My questions:
> >> What are yum's memory requirements?
> >> Any tips on how I can best run yum with tight memory limits?
> >It really depends on the size of your repos - but a good minimum given
> >the repos available is about 128M
> 
> Are there any workarounds for this memory requirement?
>

Something to try... 

With smaller and smaller values, try reducing the
virtual memory limit.  Something like:

    ulimit -v 100000 ; yum -y update
    ulimit -v  90000 ; yum -y update
    ulimit -v  50000 ; yum -y update
    ulimit -v  30000 ; yum -y update
	.... Values are in 1024-byte increments -- you can do the math.

The idea is to have the kernel return an error to malloc() requests
larger than your physical memory limit.   This can keep yum from swapping...
If the limit is too small it should (?) error out with grace....  I do
not know what the lower bound is...   ;-)

Of interest, at one time "ulimit -v 100000 ; yum -y update"
often improved the speed of yum on systems with GOBS of memory.

Later,
mitch



-- 
	T o m  M i t c h e l l 
	Found me a new place to hang my hat :-)
	Now it got bought.




More information about the Yum mailing list