Killed: out of swap space



  • This was posted in reddit but I've not had any responses…

    I've seen some old posts for this but the way to check for things (RDD graphs) doesn't seem to be in the menus. I was running 2.4.0 and returned home from a day away to find the logs full of 'Killed: out of swap space' and the router non-functional. Reset it and all is OK. The system is running virtualised, 512mb ram. 3 VLANs, DNSBL, Avahi and nothing else really.

    I've upgraded to 2.4.1 incase there was a memory leak bug in the previous release but I'm none-the wise in understanding what happened. Any thoughts?
    ![Screen Shot 2017-11-05 at 14.52.21.png](/public/imported_attachments/1/Screen Shot 2017-11-05 at 14.52.21.png)
    ![Screen Shot 2017-11-05 at 14.52.21.png_thumb](/public/imported_attachments/1/Screen Shot 2017-11-05 at 14.52.21.png_thumb)



  • Bump. Happened again last night….



  • Are you running packages that even for a split second might require more memory + swap than you have?  You have to keep on top of that.



  • 512 MB of RAM seems a bit light.  Try 1 or 2 GB if you can.

    How much disk did you give the VM?



  • The disk is 8gb. I can try upping the ram but it never really seems to go above 70% usage as it is…

    The packages are pretty light. Nothing too interesting:

    Avahi
    OpenVM Tools
    Cron
    Open VPN client export
    pfBlockerNG
    Service Watchdog


  • LAYER 8 Netgate

    Your problem isn't disk, it is RAM. If you have enough RAM you don't swap.

    The culprit is probably pfBlockerNG.



  • Ok I’m going to bump it to 1G and see. Thanks for the help!



  • 1.5gb?  sounds perfect.



  • Yep I can do that.. plenty of spare.


Log in to reply