From owner-freebsd-questions@freebsd.org Thu Sep 17 17:56:54 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA2109CE14D for ; Thu, 17 Sep 2015 17:56:54 +0000 (UTC) (envelope-from bthcom@higonnet.net) Received: from freebsd.higonnet.net (higonnet.net [45.32.236.176]) by mx1.freebsd.org (Postfix) with ESMTP id B5D4C17A9 for ; Thu, 17 Sep 2015 17:56:54 +0000 (UTC) (envelope-from bthcom@higonnet.net) Received: from [192.168.1.102] (ARouen-151-1-94-177.w90-22.abo.wanadoo.fr [90.22.225.177]) by freebsd.higonnet.net (Postfix) with ESMTPA id 2DBE92F190 for ; Thu, 17 Sep 2015 17:56:53 +0000 (UTC) To: freebsd-questions@freebsd.org From: Bernard Higonnet Subject: Constantly running out of swap space Message-ID: <55FAFEE4.5080701@higonnet.net> Date: Thu, 17 Sep 2015 19:56:52 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2015 17:56:55 -0000 Using FreeBSD 10.2 I'm using a swap file set up as described at https://www.freebsd.org/doc/handbook/adding-swap-space.html No matter what size I make it (last time 4GB) I run out of swap space on a VPS with 768KB RAM. Space is being used by amavisd/clamd which is apparently notorious space hungry, but it's clear to me there's a problem somewhere. Everything works OK for a while (a few hours? on a system with very little traffic (100 emails a day...)) and then runs out of space. I assume amavisd/clamd are not using swap space explicitly and the OS decides on is own that swap space is needed. Any suggestions? TIA Bernard Higonnet