Constantly running out of swap space - solved more or less

Bernard Higonnet bthcom at higonnet.net
Sat Sep 19 06:56:05 UTC 2015


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



More information about the freebsd-questions mailing list