Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 1997 00:15:33 -0500 (EST)
From:      "John S. Dyson" <toor@dyson.iquest.net>
To:        cmott@snake.srv.net (Charles Mott)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Slowly declining memory
Message-ID:  <199708260515.AAA26372@dyson.iquest.net>
In-Reply-To: <Pine.BSF.3.96.970825184900.8991A-100000@darkstar.home> from Charles Mott at "Aug 25, 97 06:51:13 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Charles Mott said:
> On Mon, 25 Aug 1997, John S. Dyson wrote:
> >
> > The system is aggressive about caching the filedata and .text+.data, and
> > if there isn't other, more important competing need, the system will just
> > keep on remembering more and more data.  It is not a problem, but simply
> > using all of available memory if it can.
> > 
> 
> Is there any preference for caching in real memory versus the swap file?
> Would there still be an advantage to cache that is shifted to swap?  Just
> curious how things work.
> 
If memory is very stale, it will be replaced quickly -- and that can
entail a pageout.  You always want memory that is more likely to be
used immediately accessible.  Imagine this:  There is code in sendmail
that is normally executed only once.  It is better to page that code
out (or free it in the case of clean pages) and use that memory as
a cache of somesort for more relevent info.

-- 
John
dyson@freebsd.org
jdyson@nc.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708260515.AAA26372>