Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Paul de Vrieze <pauldv@g.o>
Subject: Re: Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite
Date: Thu, 9 Feb 2006 09:55:25 +0100
On Thursday 09 February 2006 01:17, Duncan wrote:
> Simon Stelling posted <43EA568D.6020307@g.o>, excerpted below,  on
> My thinking, which is possibly incorrect (your input appreciated), is that
> file-based scripts get pulled into cache the first time they are executed,
> and will remain there (with a gig of memory) pretty much until I'm done
> doing my upgrades.  At the same time, they are simply in cache, not
> something in bash's memory, so if the memory is needed, it will be
> reclaimed.  As well, after I'm done and on to other tasks, the cached
> commands will eventually be replaced by other data, if need be.
>
> Aliases (and bash-functions) are held in memory.  That's not as flexible
> as cache in terms of being knocked out of memory if the memory is needed
> by other things.  Sure, that memory may be flushed to disk-based swap, but
> that's disk based the same as the actual script files  I'm using, so
> reading it back into main memory if it's faulted out will take something
> comparable to the time it'd take to read in the script file again anyway.
> That's little gain, with the additional overhead and therefore loss of
> having to manage the temp-copy in swapped memory, if it comes to that.

Besides the fact that memory use is negligeable, you should keep into account 
that scripts (even oneliners) use one memory page per script. Aliasses 
however are stored by bash in a way that multiple aliases fit into one block 
of memory. And when the memory is needed, bash will be bumped out of memory 
too. But the idea is that those small aliasses will not actually need more 
memory.

Paul

-- 
Paul de Vrieze
Gentoo Developer
Mail: pauldv@g.o
Homepage: http://www.devrieze.net
Attachment:
pgpuRbhaGd5yN.pgp (PGP signature)
Replies:
Re: Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite
-- Duncan
References:
Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite
-- Duncan
Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite
-- Simon Stelling
Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite
-- Duncan
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite
Next by thread:
Re: Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite
Previous by date:
Re: Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite
Next by date:
Re: Re: Fragmentation (Was: Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite)


Updated Jun 17, 2009

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.