From owner-freebsd-questions@FreeBSD.ORG Tue Feb 23 20:33:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 417541065670 for ; Tue, 23 Feb 2010 20:33:16 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 152CC8FC1A for ; Tue, 23 Feb 2010 20:33:15 +0000 (UTC) Received: from localhost (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id CB4CBF7419; Tue, 23 Feb 2010 15:33:14 -0500 (EST) Date: Tue, 23 Feb 2010 15:33:11 -0500 From: Bill Moran To: yuri@rawbw.com Message-Id: <20100223153311.812f7571.wmoran@potentialtech.com> In-Reply-To: <4B84396F.3030305@rawbw.com> References: <4B84396F.3030305@rawbw.com> Organization: Bill Moran X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.5; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Is there a command to load all swap into the memory? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 20:33:16 -0000 In response to Yuri : > 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/