Re: Question on memory requirements

Tom Mitchell <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On Thu, Jan 03, 2008 at 05:22:23PM +0100, Bart van Kuik wrote:
> Delivered-To: [email protected]
> Date: Thu, 3 Jan 2008 17:22:23 +0100 (CET)
> Subject: [Yum] Question on memory requirements
> From: "Bart van Kuik" <[email protected]>
> To: [email protected]
> Reply-To: "Yellowdog Updater, Modified" <[email protected]>
> 
> >> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.