From owner-freebsd-pf@FreeBSD.ORG Thu Nov 27 13:42:18 2014 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7C7F8E2C for ; Thu, 27 Nov 2014 13:42:18 +0000 (UTC) Received: from mail1.arrishq.net (static.215.103.63.178.clients.your-server.de [178.63.103.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 390F0690 for ; Thu, 27 Nov 2014 13:42:17 +0000 (UTC) Received: from mail.arrishq.net (mail.arrishq.net [127.0.0.1]) (Authenticated sender: local) by mail1.arrishq.net (qmail) with ESMTPSA id ED963CB ; Thu, 27 Nov 2014 14:33:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arrishq.net; s=default; t=1417095212; bh=kj9FMZqhO2FHYo4PRYPC/5dInrD0sKIF9HJIyT+FuXY=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=iV5GQBbtYUpNcBaTC6xlNnbRxTEdT8Hyw03c8uRtCvTD1VxIO9dGj91+yoM0H/64C pg1Mot1JCcEClvrwIChiGO/JTAOSXw5uTDafCCw6LdcAWwKwadb9m4rT+xyOC7heHi FopifUusfK8wLmOYkXd0227P6L2uCY+NYBxTNWjE= Date: Thu, 27 Nov 2014 14:33:40 +0100 (CET) From: Tommy Scheunemann To: Doug Hardie Subject: Re: Swap Issue In-Reply-To: <4009E30B-FC0C-4BE0-A318-CD2ED5E28281@lafn.org> Message-ID: References: <4009E30B-FC0C-4BE0-A318-CD2ED5E28281@lafn.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-pf@freebsd.org" X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 13:42:18 -0000 Hi, was running into a similar issue after an upgrade from 9.1-RELEASE to 10.0 and the system was swapping out for no obvious reason (enough free memory, same software installed etc.). Maybe using Monit or a similar monitoring tool helps here - I used Monit. Basically let it keep an eye (or two) on swap usage and once the system freaks out swapping dumping the process table. A monit job like: check system knockmobile if swap usage > 10% then exec "/some/thing/some/where/dump_processes.sh" should help to find what the problem might be. Additionally SNMP and graphing in Cricket / Cacti might help to collect the number of processes and general memory usage to see if the system has some strange load problems. Kind regards On Thu, 27 Nov 2014, Doug Hardie wrote: > I have a most interesting situation that just manifested itself this morning in a way I could begin to diagnose. The system runs 8.2-P3 and has no users, just one process that runs 24x7. Its been running since 8.2 was first released. Every now and then the process becomes non-responsive. Today it managed to spit out an error that the system had run out of swap space before it hung. > > This is quite interesting in that there are 5.5GB of free memory. The only time that changes is at 3 am when the various periodic processes run. However, I don’t suspect those as I have numerous other systems that have considerably less memory and higher usage that do not experience this issue. I have increased the swap space to prevent this issue, but something must be going bonkers to cause the swap space to get used. Usually there are only 15MB used. Every time the system notifies me that it has the problem, by the time I can look at it, swap is back to normal. I have never been able to catch the system with more than 15 MB used. Is there any way after the fact to figure out what was using the swap? I suspect not, but thought I’d ask just in case I have overlooked something. > > > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org"