Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      darkred
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • D
          darkred
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.