Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 2010 15:33:11 -0500
From:      Bill Moran <wmoran@potentialtech.com>
To:        yuri@rawbw.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Is there a command to load all swap into the memory?
Message-ID:  <20100223153311.812f7571.wmoran@potentialtech.com>
In-Reply-To: <4B84396F.3030305@rawbw.com>
References:  <4B84396F.3030305@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to Yuri <yuri@rawbw.com>:

> 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.

You could use swapoff, then swapon to readd the device.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/



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