Out of swap space kills some services on NanoBSD (including dhcp)



  • Hi all
    since a few weeks I have the problem, that my dhcp service (mostly also the ntp and the openvpn services) were killed by the system with the following entries in the system log:

    kernel: pid 45799 (dhcpd), uid 1002, was killed: out of swap space
    kernel: pid 38076 (ntpd), uid 0, was killed: out of swap space
    kernel: pid 68591 (php), uid 0, was killed: out of swap space
    kernel: pid 63559 (php), uid 0, was killed: out of swap space
    and many more with other pid's
    

    I can't say that I have this issue since a special version upgrade but I update very fast to new versions and had it the first time about 4 weeks ago.
    The installation is a nanobsd 2G installation on a alix board with 256mb. I am running on 2.1.4-RELEASE (i386). What can I do to prevent the system from killing my services or to solve the out of swap issue?

    It is a basic home firewall with 2 active interfaces (WAN/LAN), 3 OpenVPN server, NTP service and DNS forwarder. I have installed the OpenVPN Export Package and the pfBlocker.

    Thank you for your support in advance,
    regards


  • Netgate Administrator

    You are seeing that error because the box is running out of RAM and trying to swap to disk to free some up but Nano doesn't have any swap.
    256MB is now the minimum requirement. It's almost certainly pfblocker that's causing the problem. Try to reduce the list sizes you're using or remove pfblocker all together.

    Steve



  • Hi Steve,
    thank you, I uninstalled pfBlocker and now it runs better. But there are also some killed services from time to time. I now ordered a new APU board with 2GB RAM, a faster CPU and a 16 GB SSD. Then I should have enough memory and the possibility to swap on the disk.
    Thank you for your support,
    Regards


Log in to reply