From owner-freebsd-questions@FreeBSD.ORG Fri Dec 19 16:00:54 2008 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 A80DC106567D for ; Fri, 19 Dec 2008 16:00:54 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4EDE28FC18 for ; Fri, 19 Dec 2008 16:00:52 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBJG0iru002210; Fri, 19 Dec 2008 17:00:44 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBJG0i14002207; Fri, 19 Dec 2008 17:00:44 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 19 Dec 2008 17:00:43 +0100 (CET) From: Wojciech Puchar To: FreeBSD In-Reply-To: <494BBFCA.5060305@optiksecurite.com> Message-ID: <20081219165910.O2189@wojtek.tensor.gdynia.pl> References: <494A693A.5050204@optiksecurite.com> <200812181028.18306.kirk@strauser.com> <20081218163632.GE5150@torus.slightlystrange.org> <494A820E.2030907@optiksecurite.com> <20081219040719.GA83557@gizmo.acns.msu.edu> <494BBFCA.5060305@optiksecurite.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Jerry McAllister , freebsd-questions@freebsd.org Subject: Re: SOLVED: Simple swap question 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: Fri, 19 Dec 2008 16:00:54 -0000 >> ////jerry >> >> > Because this server is monitored by Nagios and it emails me every hour a > warning because the swap is not 100% free (I know it's pretty extreme, but I > want to know if the system is swapping). > > I just tried > > swapoff -a ; swapon -a > > and it worked great. > under completely normal operation when programs fit in real memory swapping CAN occur because of file caching. while programs have priority over file cache in memory, long-unused parts of system can be swapped out. i don't know what's nagios, but configure it to warn you not because there are swap used, but if there is more than a little swapping activity.