From owner-freebsd-questions@freebsd.org Sat Sep 19 06:56:05 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 49C56A05C4E for ; Sat, 19 Sep 2015 06:56:05 +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 12E3D1776 for ; Sat, 19 Sep 2015 06:56:04 +0000 (UTC) (envelope-from bthcom@higonnet.net) Received: from [192.168.1.101] (ARouen-151-1-13-224.w90-22.abo.wanadoo.fr [90.22.76.224]) by freebsd.higonnet.net (Postfix) with ESMTPA id 046FC2F6B9 for ; Sat, 19 Sep 2015 06:55:56 +0000 (UTC) Subject: Re: Constantly running out of swap space - solved more or less To: freebsd-questions@freebsd.org References: <55FAFEE4.5080701@higonnet.net> From: Bernard Higonnet Message-ID: <55FD06F8.2090705@higonnet.net> Date: Sat, 19 Sep 2015 08:55:52 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55FAFEE4.5080701@higonnet.net> 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: Sat, 19 Sep 2015 06:56:05 -0000 As suggested by several people, I tweaked clam and amavis configuration parameters by reducing various maxima (message sizes, threads, queues, etc.). It seemed to me my traffic was so low that these did not apply, but I have been running for a day with 2GB swap (for 768MB (not 768KB) RAM) with no apparent problem... This is the more surprising to me that I added Wordpress which implies MySQL which it seems also needs swap space. Sorry I can't provide more definitive info as to what reallymade the difference. Thanks to all Bernard Higonnet On 2015-09-17 19:56, Bernard Higonnet wrote: > 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