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

    High CPU USAGE IN 2.7.0-RELEASE

    Scheduled Pinned Locked Moved General pfSense Questions
    41 Posts 4 Posters 2.2k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Are you load-balancing traffic between those WANs?

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

        @stephenw10

        No, We are not doing a load balancer as secondary WAN has less bandwidth.

        FYI - We have updated now the version to 2.7.2

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

          What does vmstat -i show is creating the interrupt load?

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

            @stephenw10

            This is taken before issue.

            7be22a64-b947-4b05-ab46-9bc25277c1b6-image.png

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

              Ok nothing too huge there. What does it show when the issue happens?

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

                @stephenw10

                Our Network has IPsec VPN, and OpenVPN. I can access the firewall via web GUI and SSH, IPsec network, and Open VPN Client.

                Once issue has arrived, I can't able to firewall via SSH, web GUI, IPsec Network, and OpenVPN client but all existing devices can connect to the internet continuously without any issue..

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

                  Can you connect to the console to check that? You captured the top output above.

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

                    @stephenw10

                    I couldn't access the console, it froze just like SSH. After rebooting, I was able to access the console.

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

                      How did you get the output from top then?

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

                        @stephenw10

                        After a few seconds of the above output, I noticed that the console froze.

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

                          Hmm, you might try entering 'ctl+t' at the console. That can respond when nothing else does. It should show what process is using the CPU cycles.

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

                            @stephenw10

                            I attempted everything, but I was unable to receive any output from the console.

                            I noticed bandwidth usage, Below Image is when there was no issue.

                            7caf4aef-2574-4f81-8733-9895b040f01c-image.png

                            "The images below (bandwidth and CPU load interruption screenshot) were taken before the issue occurred. When issue is arriving,"Lan in Bandwidth " will be reaching a maximum 300M consistently as the image has 170 MB.

                            c5fe1281-0c1c-40ad-ae3c-fd6f33d2b360-image.png

                            836babd2-5676-4383-b180-9bf06cb6128a-image.png

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

                              Ah, maybe it really is just slamming the firewall with traffic from LAN then. If you disconnect the LAN when that's happening does the console become responsive again?

                              Is LAN igb0?

                              G 1 Reply Last reply Reply Quote 1
                              • G
                                Gokulapandi @stephenw10
                                last edited by

                                @stephenw10

                                Yes LAN is igb0.

                                I didn't disconnect the LAN and check the console. I will check next time.

                                How can I monitor LAN traffic for each host? Which log should be checked for this issue? Please let me know

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

                                  I would expect the system log so show something after you reboot.

                                  The igb0 NIC is multithreaded so it can try to use all available CPU cycles on all cores. em0 is single so could not. You might switch those assignments so you can still connect and investigate when this hgappens.

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

                                    @stephenw10 said in High CPU USAGE IN 2.7.0-RELEASE:

                                    em0

                                    can you explain little bit

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

                                      em NICs are single queue. Only one CPU core can service the incoming and outgoing traffic queues. That means that on a 4 core CPU like you have it can never load all the cores.

                                      igb NICs are multiqueue and here are attaching with 4 queues. Enough to load all the CPU cores sufficiently to prevent other services running.

                                      You could override that by setting:

                                      dev.igb.0.iflib.override_nrxqs=1
                                      dev.igb.0.iflib.override_ntxqs=1
                                      

                                      Or you could try to set a lower max interrupt rate like maybe:
                                      hw.em.max_interrupt_rate=2000

                                      But just swapping the WAN and LAN NIC assignments so LAN in em0 is probably easier. Unless you're not local to the box.

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