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

24.03 causes sustained rise in processes count and memory usage.

Scheduled Pinned Locked Moved General pfSense Questions
42 Posts 5 Posters 2.5k 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
    dennypage @keyser
    last edited by May 9, 2024, 5:57 PM

    @keyser net-snmp doesn't support pf data, which of course means that you could not trigger the bug. 😊

    FWIW, even though net-snmp doesn't handle pf data it does have some advantages. In particular SNMPv3 and extensions. Extensions allow other things like dpinger, ntp, nut, unbound and temperatures to be monitored via SNMP.

    K 1 Reply Last reply May 9, 2024, 6:47 PM Reply Quote 0
    • K
      keyser Rebel Alliance @dennypage
      last edited by May 9, 2024, 6:47 PM

      @dennypage Yeah I know there are more options with net-snmp, but all I'm really looking for is availability, performance and performance trends over time. That is pretty well covered with bsnmpd.

      I do latency statistics, link availability and ups/nut monitoring from a raspberry pi2 zabbix client behind pfsense. I need that pi for other purposes as well, so this gives me a "clients" perspective instead of 1. hand data out of the firewall.
      It also saves me the need to have netsnmp or a zabbix client installed on pfsense.

      Love the no fuss of using the official appliances :-)

      1 Reply Last reply Reply Quote 0
      • K
        kprovost @keyser
        last edited by May 10, 2024, 7:30 AM

        @keyser said in 24.03 causes sustained rise in processes count and memory usage.:

        Since it is a bug in a library that needs fixing regardless, I guess it makes no further sense to track down what data requests actually triggers the problem?

        Yeah, I'm not going to dig further. The fix has been merged to the relevant branches and will be in the next release.

        Just out of curiosity - did this error sneak in with the update to FreeBSD 15 as base? My zabbix/snmp setup didn't change, so the error wasn't in 23.09.1's bsnmpd and dependant library modules.

        We've been on FreeBSD main since 23.01. Talking about 14 vs. 15 is not meaningful.
        The bug was introduced as part of ongoing maintenance work. I'm in the process of migrating the configuration interface over to netlink, and that work produced some fallout.

        1 Reply Last reply Reply Quote 1
        • R
          randommen
          last edited by May 22, 2024, 8:27 PM

          Hmm, on my SG-1100 this is actually a rather critical problem, it only has 1GB of RAM and runs out within 2-4 days... Every time bsnmpd gets killed:
          pid 84330 (bsnmpd), jid 0, uid 0, was killed: failed to reclaim memory

          Which puts a stop to my monitoring untill I start it again, which kind of breaks the purpose.

          My SG-4860 still eats it up like a champ lol.

          Gotta live with this one I think untill the next release.

          K 2 Replies Last reply May 22, 2024, 8:59 PM Reply Quote 0
          • K
            keyser Rebel Alliance @randommen
            last edited by May 22, 2024, 8:59 PM

            @randommen Yeah, I agree. It’s pretty hard on my SG-2100 that will get to the chokepoint in about 14 days. So I’m starting to contemplate a scripted service restart on a weekly basis to prevent this from happening.

            eec0b562-7697-4b91-9098-855ff51fe87f-image.png

            So I’m hoping there will be a 24.03.1 release which includes the fix for this issue along with other fixes/patches for discovered issues.

            Love the no fuss of using the official appliances :-)

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by May 22, 2024, 10:10 PM

              Mmm, the fix looks like it would need a new build. Not possible to use a patch or pkg.

              A cronjob to restart it should be easy enough though.

              K 1 Reply Last reply May 23, 2024, 6:31 AM Reply Quote 0
              • K
                keyser Rebel Alliance @stephenw10
                last edited by May 23, 2024, 6:31 AM

                @stephenw10 Is it possible to download/install the fixed binary manually, or are there dependencies that makes it a very difficult undertaking?

                Love the no fuss of using the official appliances :-)

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by May 23, 2024, 12:03 PM

                  It's not just the bsnmpd binary. There are also changes to pfctl. I'm not sure if that would be possible.

                  1 Reply Last reply Reply Quote 0
                  • K
                    keyser Rebel Alliance @randommen
                    last edited by May 28, 2024, 8:13 PM

                    @randommen 26 days - then my SG-2100 goes belly up and becomes borderline unresponsive because memory consumption kills it.

                    Love the no fuss of using the official appliances :-)

                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by May 28, 2024, 8:26 PM

                      Restarting bsnmpd before that doesn't free it?

                      K 1 Reply Last reply May 28, 2024, 8:32 PM Reply Quote 0
                      • K
                        keyser Rebel Alliance @stephenw10
                        last edited by May 28, 2024, 8:32 PM

                        @stephenw10 It does, so it’s only a annoying inconvinence. I was just trying to gauge how lt would react if I didn’t, and how long it would take.

                        Love the no fuss of using the official appliances :-)

                        1 Reply Last reply Reply Quote 1
                        • K keyser referenced this topic on Sep 30, 2024, 12:47 PM
                        • K keyser referenced this topic on Jan 20, 2025, 9:52 PM
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received