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

    Unbound is using more than 50% of the CPU after connecting to the LAN.

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 285 Views 3 Watching
    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.
    • 0 Offline
      0x44
      last edited by 0x44

      Hi all, Sorry for my crappy English.
      I am observing an anomaly after updating to version 2.8.0. I'm confused why this is happening.

      After running pfSense for about a week, sometimes two days, when I plug my laptop into LAN, it seems like LAN goes down.
      I am unable to access any websites, the internet connection is not working. I can't access the admin console by domain, just by ip address. However, this is what I see in the monitoring: system utilization increases by 25%, screenshot below.
      System-proc.png

      The PCH chipset temperature is skyrocketing, screenshot below.
      Thermal.png

      If check the system activity: Unbound is using more than 50% of the WCPU.
      System-Activity.png

      Logs:

      Aug 12 12:04:40 pfsense php-fpm[42210]: /status_services.php: The command '/usr/local/sbin/unbound -c /var/unbound/unbound.conf' returned exit code '1', the output was '[1754993080] unbound[68976:0] error: bind: address already in use [1754993080] unbound[68976:0] fatal error: could not open ports'
      Aug 12 12:11:21 pfsense php-fpm[33437]: /status_services.php: The command '/usr/local/sbin/unbound -c /var/unbound/unbound.conf' returned exit code '1', the output was '[1754993481] unbound[90442:0] error: bind: address already in use [1754993481] unbound[90442:0] fatal error: could not open ports'
      Aug 12 12:13:00 pfsense kernel: module_register_init: MOD_LOAD (ipw_bss_fw, 0xffffffff80758a00, 0) error 1
      Aug 12 12:13:00 pfsense kernel: module_register_init: MOD_LOAD (ipw_ibss_fw, 0xffffffff80758ab0, 0) error 1
      Aug 12 12:13:00 pfsense kernel: module_register_init: MOD_LOAD (ipw_monitor_fw, 0xffffffff80758b60, 0) error 1
      Aug 12 12:13:00 pfsense kernel: module_register_init: MOD_LOAD (iwi_bss_fw, 0xffffffff807781d0, 0) error 1
      Aug 12 12:13:00 pfsense kernel: module_register_init: MOD_LOAD (iwi_ibss_fw, 0xffffffff80778280, 0) error 1
      Aug 12 12:13:00 pfsense kernel: module_register_init: MOD_LOAD (iwi_monitor_fw, 0xffffffff80778330, 0) error 1
      

      sockstat -4 | grep ':53'

      unbound  unbound    78696 3   udp4   *:53                  *:*
      unbound  unbound    78696 4   tcp4   *:53                  *:*
      

      I think the old socket is not properly closed when I plug the laptop into the LAN, causing Unbound to consume more CPU resources, and a new socket is not opened.
      Helps to resolve the issue by rebooting pfSense or restarting Unbound.

      Can anyone help me resolve this issue?
      Thanks.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        SteveITS Rebel Alliance @0x44
        last edited by

        @0x44 If you are actually plugging a cable into the pfSense LAN port (or turning a PC on etc) that will trigger restarting services because of the “new” interface. Can you put a switch between the PC and pfSense?

        Your English is just fine. :)

        Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 1
        • 0 Offline
          0x44
          last edited by

          Yes, I can, but that would mean adding one more device to the setup :). I'm afraid the same issue might happen over Wi-Fi as well. I'm looking for standard ways to fix this.

          tinfoilmattT 1 Reply Last reply Reply Quote 0
          • 0 Offline
            0x44
            last edited by

            Any idean? :)

            1 Reply Last reply Reply Quote 0
            • tinfoilmattT Offline
              tinfoilmatt @0x44
              last edited by

              @0x44 Router interfaces don't typically 'change' (i.e., unplug/replug, link up/down) that regularly. In order to have Wi-Fi even, you'd need to somehow get an AP on at least the same management broadcast domain as the LAN interface without directly connecting it... because how else would you expect to be able to connect to and manage it?

              Directly connecting a network host like a PC or a server to a router interface is a somewhat unsual setup. @SteveITS's advice to connect a switch to the LAN interface—and then properly test connectivity of any/all devices that will connect to the switch, plus assess overall network stability with that topology—is the right advice.

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