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

    Site-to-Site Wireguard: Very high CPU usages

    Scheduled Pinned Locked Moved General pfSense Questions
    wireguardcpu statsvpn tunnel
    15 Posts 4 Posters 833 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.
    • M
      MacUsers
      last edited by

      Dear all,

      I have a site-to-site Wireguard setup between a SG1100 and 8200 and since I have the tunnel up, the CPU usage on SG1100 is very high - 70% to 100% pretty much all the time.

      09f23c33-c168-4245-a94e-e6acabd07f80-image.png

      Is it expected? Is there any tuning that can be done?

      8200 stays around 8% to 12%, with occasional spike of about 56%
      83e3c334-4a42-4355-9788-970974d4c066-image.png

      Any guiding form anyone?

      -S

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @MacUsers
        last edited by

        @MacUsers What is causing the usage (DiagnosticsSystem Activity)?

        M 1 Reply Last reply Reply Quote 0
        • M
          MacUsers @Bob.Dig
          last edited by MacUsers

          @Bob-Dig

          I just restarted the box and frist few lines after that:

          9435a3c6-67a5-4bb2-900b-eabaea240fd5-image.png

          doesn't look like matching with the reported CPU usages?

          -S

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @MacUsers
            last edited by Bob.Dig

            @MacUsers I have seen something like that, with the newest beta though.

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

              The openssl line is from the cert check which runs when it looks for pkg updates and should complete after some time.

              A lot of what you see on the dashboard can be from the dashboard widgets themselves. To get a better idea try running top -HaSP at the command line without the webgui open at all.

              See what's actually using CPU cycles.

              M 1 Reply Last reply Reply Quote 1
              • M
                MacUsers @stephenw10
                last edited by

                @stephenw10, sorry for the late reply.

                This is without GUI running and first two lines a re constantly 97%-99%

                73ee2d86-daf4-4d9f-a664-b4abed15c5af-image.png

                -S

                S stephenw10S 2 Replies Last reply Reply Quote 0
                • M
                  MacUsers
                  last edited by

                  Looks like the very same/similar issue?
                  https://forum.netgate.com/topic/190824/cpu-load-on-1100/2

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

                    @MacUsers 99% idle is good.

                    See thread https://forum.netgate.com/topic/190824/cpu-load-on-1100/22

                    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 1
                    • stephenw10S
                      stephenw10 Netgate Administrator @MacUsers
                      last edited by

                      @MacUsers said in Site-to-Site Wireguard: Very high CPU usages:

                      first two lines a re constantly 97%-99%

                      Yes, but that's the idle usage. If those are at 100% the CPUs are doing nothing. That screenshot of the top output shows the expected low use, that 1100 is barely doing anything!

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        MacUsers @stephenw10
                        last edited by MacUsers

                        @stephenw10
                        yeah, the graph on the status page is constantly showing near 100% CPU usages.
                        Also, isn't a high CPU usage in Idle state normally indicates some sort of software issue; probably some background process is excessevely using the resources?? Not saying it's necessarily a bad thing. I never noticed that until upgraded to 24.11, if I think slowly.

                        The moment I took the WG out of Interface widget, the graph on admin page, went down to 56% (still high for a machine, pretty much not doing anything)

                        -S

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

                          @MacUsers By "status page" do you mean the dashboard? If so did you try the patch in the above thread?

                          "Idle" as in "it's not doing anything so falls into this bucket."

                          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
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            Yup the idle process simply indicates otherwise unused CPU cycles. It's expected in normal running.

                            You're adding the WG interface just to the Interfaces widget?

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              MacUsers @stephenw10
                              last edited by MacUsers

                              @stephenw10 said in Site-to-Site Wireguard: Very high CPU usages:

                              You're adding the WG interface just to the Interfaces widget?

                              yes, that's true

                              1 Reply Last reply Reply Quote 0
                              • M
                                MacUsers
                                last edited by MacUsers

                                Okay, looks like the issue is particularly on 1100. My other 8200 shows CPU usages just fine with or without any sorts of Wireguard widget. Whatever I do, on 8200, it always stays below 12% if not loaded.

                                -S

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

                                  The CPU in the 8200 is a lot more powerful so you see the widget usage in the 1100 far more. That is especially so because the refresh rate can start to hit the time taken to pull the data.

                                  Did you try the patch linked above to revert to the previous widget behaviour?

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