Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2008 12:32:37 -0500
From:      Tom Worster <fsb@thefsb.org>
To:        FreeBSD <freebsd@optiksecurite.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: SOLVED: Simple swap question
Message-ID:  <C57144E5.6CE8%fsb@thefsb.org>
In-Reply-To: <494BBFCA.5060305@optiksecurite.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/19/08 10:37 AM, "FreeBSD" <freebsd@optiksecurite.com> 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?





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C57144E5.6CE8%fsb>