From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 06:29:42 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DE6716A4C0 for ; Wed, 20 Aug 2003 06:29:42 -0700 (PDT) Received: from www.bluecirclesoft.com (cvg-65-26-145-190.cinci.rr.com [65.26.145.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2DD443FB1 for ; Wed, 20 Aug 2003 06:29:38 -0700 (PDT) (envelope-from marc.ramirez@bluecirclesoft.com) Received: from www.bluecirclesoft.com (localhost [127.0.0.1]) h7KDT5ax039846; Wed, 20 Aug 2003 09:29:05 -0400 (EDT) (envelope-from mrami@bluecirclesoft.com) Received: from localhost (mrami@localhost)h7KDT4lL039843; Wed, 20 Aug 2003 09:29:04 -0400 (EDT) X-Authentication-Warning: www.bluecirclesoft.com: mrami owned process doing -bs Date: Wed, 20 Aug 2003 09:29:03 -0400 (EDT) From: Marc Ramirez To: Mark In-Reply-To: <200308200104.H7K14TSL055500@asarian-host.net> Message-ID: <20030820091659.D39787@www.bluecirclesoft.com> References: <200308200104.H7K14TSL055500@asarian-host.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: Swappng in? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 13:29:42 -0000 On Wed, 20 Aug 2003, Mark wrote: > Is there a way to swap a program back in, after it has been swapped out? > (FreeBSD 4.7R). > > I had a rather huge task, and now my ps shows entries like: > > ... 948 0 v2 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv2 > > I'd like to have it swapped back in, please. :) I read somewhere that if the > memory strain has subsided, it would automatically be swapped in again. I do > not see that happen automagically, though. To note: 1) Swapped out does not mean inoperative. For every executable, there usually some portion that does not reside in memory (paged out). Swapped out just means that *everything* is paged out. "Swapped out" is an old term, back in the days before virtual memory. Back then, when there were two processes going, when it was time to run a different one, the running program would be *entirely* written to disk, and the second one would be loaded. That's "swapping". 2) The process will remain swapped out until it has something to do. When it does have something to do, it will swap back in again. If the process has nothing to do, there's not much point in wasting the RAM, when you might run that huge task again. Marc. -- Marc Ramirez Blue Circle Software Corporation 513-688-1070 (main) 513-382-1270 (direct) http://www.bluecirclesoft.com http://www.mrami.com (personal)