Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 2010 22:01:06 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Is there a command to load all swap into the memory?
Message-ID:  <20100223220106.71af7f6f@gumby.homeunix.com>
In-Reply-To: <20100223145928.A67451@starfire.mn.org>
References:  <4B84396F.3030305@rawbw.com> <20100223145928.A67451@starfire.mn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 23 Feb 2010 14:59:28 -0600
John <john@starfire.mn.org> wrote:

> On Tue, Feb 23, 2010 at 12:24:15PM -0800, Yuri wrote:
> > I am asking out of curiosity.
> > 'top' describes the memory state on my machine like this:
> > Mem: 1085M Active, 196M Inact, 301M Wired, 36M Cache, 112M Buf,
> > 1366M Free Swap: 16G Total, 757M Used, 16G Free, 4% Inuse
> > 
> > There is enough space in memory to load back all swap. Is there a 
> > command to do that for all swap?
> > This will speed up immediate system response in the future.
> 
> Well, you have assumed that the furture demand on the system will
> involve the pages which are swapped out.  If that assumption is
> false, bringing them back into memory now will dramatically slow
> down system responsiveness in the future, because the scarce resoure
> will be free memory pages, which was the reason they were swapped
> out in the first place.  

And AFAIK pages that are read back into memory are retained in swap to
avoid haing to page them out again.



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