From owner-freebsd-questions@FreeBSD.ORG Fri Dec 19 17:32:43 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 B77751065670 for ; Fri, 19 Dec 2008 17:32:43 +0000 (UTC) (envelope-from fsb@thefsb.org) Received: from smtp204.iad.emailsrvr.com (smtp204.iad.emailsrvr.com [207.97.245.204]) by mx1.freebsd.org (Postfix) with ESMTP id 926BD8FC2C for ; Fri, 19 Dec 2008 17:32:43 +0000 (UTC) (envelope-from fsb@thefsb.org) Received: from relay10.relay.iad.mlsrvr.com (localhost [127.0.0.1]) by relay10.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id C133E1ED359; Fri, 19 Dec 2008 12:32:42 -0500 (EST) Received: by relay10.relay.iad.mlsrvr.com (Authenticated sender: fsb-AT-thefsb.org) with ESMTPSA id B65BE1ED364; Fri, 19 Dec 2008 12:32:40 -0500 (EST) User-Agent: Microsoft-Entourage/12.10.0.080409 Date: Fri, 19 Dec 2008 12:32:37 -0500 From: Tom Worster To: FreeBSD Message-ID: Thread-Topic: SOLVED: Simple swap question Thread-Index: Aclh/8jJDI/kGUbaDU6IhGHriBOCEA== In-Reply-To: <494BBFCA.5060305@optiksecurite.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Cc: 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 17:32:43 -0000 On 12/19/08 10:37 AM, "FreeBSD" wrote: > 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). if a swap space is available and swapping not turned off, it seems reasonable to expect the OS to use it as it sees fit. rather than trying to tinker with the kernel's swapping policy on the fly every time you get a warning, perhaps think about either telling nagios not to worry about it or don't use swapping. i'd go with the former. but you say you want to ensure that swap doesn't get used -- so maybe get rid of the swap slice?