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

    Increased Memory and CPU Spikes (causing latency/outage) with 2.4.5

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    141 Posts 40 Posters 44.9k 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.
    • ?
      A Former User
      last edited by

      Interesting. Must be something to do with virtualisation then. Mine settles down after a while, does yours not? I take it a simple reboot doesn't fix the CPU problem?

      X 1 Reply Last reply Reply Quote 0
      • X
        xpxp2002 @A Former User
        last edited by

        I rebooted it twice so far. It hangs booting up from the point that it initializes the queues onward. Every step of the bootup after that takes far longer than it used to with 2.4.4-p3. The entire bootup process is over 2 minutes. With 2.4.4-p3, it’s about 40 seconds.

        And nope, it never settles down. I let it sit untouched for over 30 minutes at one point and pfctl was still churning away at 99%.

        swinnS 1 Reply Last reply Reply Quote 1
        • swinnS
          swinn @xpxp2002
          last edited by

          @xpxp2002 I'm tried upgrading this afternoon and saw the same thing. pfctl - 100%. I'm also using Hyper-V on Server 2019 and had to revert back to a snapshot. Been using pfSense under Hyper-V for years and this is the first time I've had to revert an upgrade.

          X 1 Reply Last reply Reply Quote 0
          • X
            xpxp2002 @swinn
            last edited by

            @swinn Perhaps there is something about these virtualized instances that is a problem, as @muppet suggested. Looking through the release notes, I don’t see anything specifically calling out virtualization that seems like it would cause this. Unless simply going to FreeBSD 11 is the issue.

            I’ve also run pfSense on Server 2016 for years without issues prior to this. Ran into an issue with Server 2019 and receive segment coalescing causing weird packet drop issues when I first went to 2019, but once I disabled RSC the issue went away. But this is the first time a pfSense upgrade didn’t go smoothly for me either.

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User
              last edited by

              We haven't had a big FreeBSD jump though, 11.2p10 to 11.3

              I can't find any release notes either that say something major/odd has changed with Virtualization in 11.3

              X 1 Reply Last reply Reply Quote 0
              • X
                xpxp2002 @A Former User
                last edited by

                I’ve been using the snapshot to test individual settings and packages that seem like possible culprits. As I mentioned before, the bootup hangs on the first “configuring firewall...” so I’ve tried removing settings and packages that I expect would be initialized when the filter rule load is occurring, then performed the upgrade.

                So far, I’ve ruled out queues/limiters, pfBlocker-NG-devel, and Service Watchdog.

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by A Former User

                  The only packages I have installed are:

                  • Avahi
                  • OpenVPN-Export

                  Oh and I have fq_codel configured.

                  X 1 Reply Last reply Reply Quote 0
                  • X
                    xpxp2002 @A Former User
                    last edited by

                    @muppet I also have both of those. I’m out of time for testing but either one of those could be the culprit.

                    My first thought goes to Avahi trying to come up on an interface where it isn’t supported, but it could also be the OVPN export package struggling with the new version of OVPN.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      Maybe avahi could cause problems, that I could understand.
                      OpenVPN export isn't even called until you visit that page.

                      1 Reply Last reply Reply Quote 0
                      • G
                        gusfersa
                        last edited by gusfersa

                        I upgrade six (6) pfsense production server at the same time from 2.4.4_p3, and I had problem with the conectivity. The ping time is very high above 7.000ms.

                        I tried upgrade my pfsense server at home from 2.4.4_p3, but in this case I did a snapshot on vmware, and the problem is same. The ping time is very high and the navigation have a lot of problems.

                        I restored the snapshot, and all return to normally

                        At all server I have installed this packages:

                        Open-VM-Tools
                        openvpn-client-export
                        squid
                        snort
                        zabbix-agent4

                        I tried reinstall all packages, but the problem persist

                        1 Reply Last reply Reply Quote 0
                        • G
                          Gektor
                          last edited by Gektor

                          Same troubles after upgrade from 2.4.4 to 2.4.5 on Hyper-V Windows Server 2019, 100% CPU usage (by pfctl process), long boot, and pfSense works with spikes and hangs.
                          It seems that 2.4.5 not compatible with Hyper-V Windows Server 2019.
                          Maybe it related:
                          https://forum.netgate.com/topic/149595/2-4-5-a-20200110-1421-and-earlier-high-cpu-usage-from-pfctl/8

                          1 Reply Last reply Reply Quote 0
                          • T
                            talaverde
                            last edited by

                            I'm having the same problem. I'm running 2.4.4.-p3 on Server 2016 with Hyper-V. I tried upgrading my 2nd CARP node to 2.4.5 yesterday, but it pegged the CPU and never became stable. I reverted that snapshot, shut it down and tried to upgrade my 1st CARP node, but the same problem. I've reverted both nodes to the snapshots.

                            pfSense on Hyper-V has been rock solid up until now and all previous upgrades have been flawless.

                            If I have time, I'll try installing a 2.4.5 VM from scratch to see if the problem occurs there too.

                            1 Reply Last reply Reply Quote 0
                            • G
                              Gektor
                              last edited by

                              I have made clean reinstall system with catching config from updated system, first time boot was fast, then all packagers was restored (installed), after that system stuck at boot and lags after.
                              Then i have found a source of problem — pfBlockerNG! When it's disabled, all works good, after enabling pfBlockerNG system lags totally.

                              X 1 Reply Last reply Reply Quote 0
                              • X
                                xpxp2002 @Gektor
                                last edited by

                                @Gektor This is interesting. I had pfBlockerNG-devel installed on 2.4.4-p3. One of my earlier tests was to roll back to 2.4.4-p3, uninstall that package, then upgrade; and my system was still slow. Did you simply disable it, or uninstall the package?

                                I will try this later today when I have an outage window.

                                1 Reply Last reply Reply Quote 0
                                • G
                                  Gektor
                                  last edited by Gektor

                                  Mine is pfBlockerNG version 2.1.4_21, with this setting all works good:
                                  7574e7a6-a678-4ee0-b6d6-5da00e69d698-изображение.png
                                  Then i have disable all GeoIP lists, but enable DNSBL, and enable pfBlockerNG, and for now there is no problems with pfSense 2.4.5 on Hyper-V. System makes "crazy" when GeoIP lists is enabled in pfBlockerNG.
                                  Have make post, maybe it will be helpful:
                                  https://forum.netgate.com/topic/151726/pfblockerng-2-1-4_21-totally-lag-system-after-pfsense-upgrade-from-2-4-4-to-2-4-5

                                  G 1 Reply Last reply Reply Quote 0
                                  • G
                                    gusfersa @Gektor
                                    last edited by gusfersa

                                    @Gektor I deleted all the installed packages:

                                    Open-VM-Tools
                                    openvpn-client-export
                                    squid
                                    snort
                                    zabbix-agent4

                                    and I disabled OpenVPN links unpriority; and the system conectivity was restored

                                    G 1 Reply Last reply Reply Quote 0
                                    • G
                                      gusfersa @gusfersa
                                      last edited by gusfersa

                                      @gusfersa On another production server with the same installed packages, only I disabled OpenVPN link to an another pfsense server 2.4.5, and the system conectivity restored

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

                                        I've noticed something similar in terms of memory usage, but in my case cpu nice dropped in half and otherwise everything else seems status quo.

                                        I'm not however noticing any latency outages or anything of that nature, but i've got plenty of free RAM so maybe that's the difference.

                                        memory usage

                                        T 1 Reply Last reply Reply Quote 0
                                        • T
                                          t41k2m3 @digitalgimpus
                                          last edited by

                                          @digitalgimpus said in Increased Memory and CPU Spikes (causing latency/outage) with 2.4.5:

                                          I've noticed something similar in terms of memory usage, but in my case cpu nice dropped in half and otherwise everything else seems status quo.

                                          I'm not however noticing any latency outages or anything of that nature, but i've got plenty of free RAM so maybe that's the difference.

                                          memory usage

                                          Same here, memory utilization spikes up from <20% before upgrade to 2.4.5 (w/all the same settings and packages) to 65-80% after upgrade.

                                          Miscreant isolated to pfBlockerNG-devel (when uninstalled, memory use goes back to <20%) - running on netgate amd64 hardware, 8gb ram.

                                          @BBcan177 any ideas on this, did this come up in the extensive testing done for 2.4.5? Any setting that could be tweaked (memory, feeds) or is this something that will require some coding/patching?

                                          BBcan177B 1 Reply Last reply Reply Quote 0
                                          • T
                                            taz3146
                                            last edited by

                                            in quick testing here, it appears related to the pfblocker "maxmind GeoIP settings", either deleting the key or checking the box "disable maxmind csv database updates" makes the pfblocker pages respond near instantly again and gets rid of the long boot hang-time, which I'm assuming is breaking everything else and causing flapping in a loop as it keeps trying to reload it for high latency and other things!
                                            I haven't tested further than that and cannot guarantee that's the only issue at hand, tested on minimal configured vm with nearly no traffic, but it slows it way down in many functions.

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