Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2008 17:00:43 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        FreeBSD <freebsd@optiksecurite.com>
Cc:        Jerry McAllister <jerrymc@msu.edu>, freebsd-questions@freebsd.org
Subject:   Re: SOLVED: Simple swap question
Message-ID:  <20081219165910.O2189@wojtek.tensor.gdynia.pl>
In-Reply-To: <494BBFCA.5060305@optiksecurite.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
>> ////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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081219165910.O2189>