From owner-freebsd-questions@FreeBSD.ORG Tue Jun 21 03:08:01 2005 Return-Path: X-Original-To: questions@freebsd.org 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 DDA4916A41C for ; Tue, 21 Jun 2005 03:08:01 +0000 (GMT) (envelope-from lists@natserv.com) Received: from mail1.acecape.com (mail1.acecape.com [66.114.74.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0AB943D48 for ; Tue, 21 Jun 2005 03:08:01 +0000 (GMT) (envelope-from lists@natserv.com) Received: from zoraida.natserv.net (p65-147.acedsl.com [66.114.65.147]) by mail1.acecape.com (8.12.11/8.12.11) with ESMTP id j5L37w1g016502; Mon, 20 Jun 2005 23:07:58 -0400 Date: Mon, 20 Jun 2005 23:07:58 -0400 (EDT) From: Francisco Reyes X-X-Sender: fran@zoraida.natserv.net To: Dan Nelson In-Reply-To: <20050621030141.GH8497@dan.emsphone.com> Message-ID: <20050620230435.H41158@zoraida.natserv.net> References: <20050620141439.S36309@zoraida.natserv.net> <20050620182430.GE8497@dan.emsphone.com> <20050620144631.F37558@zoraida.natserv.net> <20050620185545.GF8497@dan.emsphone.com> <20050620225204.F41158@zoraida.natserv.net> <20050621030141.GH8497@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Questions List Subject: Re: When does swap decreases 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, 21 Jun 2005 03:08:02 -0000 On Mon, 20 Jun 2005, Dan Nelson wrote: > In the last episode (Jun 20), Francisco Reyes said: >> How wonder how the current method affects performance. Basically if >> there is a surge of memory usage and processes start that use the >> swap and these processes are long lived.. I wonder if performance >> will be affected. > > There may even be a performance gain, since if the system comes under > memory pressure again, some of the in-memory pages of those long-lived > processes previously copied to swap may still be clean, and the system > won't even have to page them out; it can simply free the RAM. I can't > think of any way for there to be a performance hit, unless you actually > run out of swap. I must really be missing something here.. My case. 384MB of RAM For several days swap was 0. That to me means that everything was fitting nicely into memory. At one point in the last few days I must have opened too many windows/apps.. and the OS actually had to use swap. Once I closed programs (xpecially X, Opera, and other GUI apps) I expected the swap would go back to 0. Swap remained at 10MB.. Whatever processes are using the swap aren't they accessing the HD? Can there be swap usage, yet the OS doing all the work on memory?