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

    High CPU (~60%) after changing/saving configs a few times

    General pfSense Questions
    3
    3
    318
    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
      Deas
      last edited by Deas

      Hello,

      I am quite new to pfSense, but basically I have it running after a few days with pfBlockerNG and it is doing what I want. I run 2.4.5-RELEASE on a ESXi 6.7 with latest Patches. My first try was a 1 vCPU, 1GB RAM machine, and after I had set up everything it started with 60% cpu usage and some time later it was running on 100%. I did a search on the internet and found nothing that match my problem.

      Then I did a backup of the config and created a new VM. 2 vCPU and 2GB RAM. I restored the backup immediately after the setup and the VM was running fine. About 6% CPU usage on average. Now, 20 hours later it was still running very well at about 6% CPU usage.

      But I had to change a few things now. I saved the config a few times and now I recognize again a high CPU usage at ~ 60% to 70%. top -aSH says this:

        PID USERNAME   PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
         11 root       155 ki31     0K    32K RUN     1  19.1H  37.71% [idle{idle: cpu1}]
         11 root       155 ki31     0K    32K RUN     0  18.8H  35.12% [idle{idle: cpu0}]
      90688 root        35    0 12536K  8364K kqread  1  35:24  23.55% /usr/local/sbin/lighttpd_pfb -f /var/unbound/pfb_dnsbl_lighty.conf
      82021 root        52    0   153M   132M piperd  1  10:03   6.09% /usr/local/bin/php -f /usr/local/pkg/pfblockerng/pfblockerng.inc dnsbl
      
      

      Does anyone have an idea why this is happening? If I can make a downtime tonight I can try to reset the VM again and restore the latest backup to see if this helps.

      Thanks a lot for your help!

      Brgds Andreas

      1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire
        last edited by

        Did you see https://forum.netgate.com/topic/151690/increased-memory-and-cpu-spikes-causing-latency-outage-with-2-4-5 and https://forum.netgate.com/topic/151819/2-4-5-high-latency-and-packet-loss-not-in-a-vm? There are a few similar threads for 2.4.5, and anecdotally it appears using 1 CPU in a VM, or lowering table usage (e.g. not using bogons and/or pfBlocker) help.

        Pre-2.7.2/23.09: 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 restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          https://forum.netgate.com/post/908806

          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

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