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

Pfsense high cpu usage KVM (Unraid)

Scheduled Pinned Locked Moved Virtualization
unraidhigh cpuvirtual nic
45 Posts 4 Posters 10.7k 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.
  • B
    BjornStevens @tinysnake
    last edited by Nov 28, 2019, 9:26 AM

    @tinysnake Have u tried completely disconnecting the NIC from unraid and bound the PCI(E) card to your VM?
    See this video for configuration: https://www.youtube.com/watch?v=58tNUx7A3lM

    T 1 Reply Last reply Nov 28, 2019, 9:47 AM Reply Quote 0
    • T
      tinysnake @BjornStevens
      last edited by tinysnake Nov 28, 2019, 9:49 AM Nov 28, 2019, 9:47 AM

      @BjornStevens yes, I followed his tutorial to passthrough the nics to pfsense.
      And I tried using just 1 port for wan and lan with no performance issue, but I don't quite like this setup, will try tweak the igb settings after work.

      1 Reply Last reply Reply Quote 0
      • T
        tinysnake
        last edited by Nov 29, 2019, 3:07 AM

        Nope, I tried every possible tweak that I can found and with no luck what so ever.
        I found a weird thing: the intr process of igb0 and igb1 is ehci and uhci? as far as I know, these are usb thing not a pcie thing?
        d18b6a20-cd06-4c50-a066-d0a4c13b68ee-image.png

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Nov 29, 2019, 3:20 PM

          They are sharing the irq with those USB controllers, which is unusual but probably not an issue.

          They don't appear to be using MSI/X, did you disable that? They would normally be on their own, much higher, IRQs.

          Steve

          T 1 Reply Last reply Dec 3, 2019, 3:06 AM Reply Quote 0
          • T
            tinysnake @stephenw10
            last edited by Dec 3, 2019, 3:06 AM

            @stephenw10 Yes I disabled MSI/X, like I said, I tried every possible combination of fine tuning and the problem still there. I even bought an other card, and more problem pops up. I think it's time for me to give up trying pfSense, :(

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Dec 3, 2019, 11:37 AM

              You shouldn't need any tweaks to igb really, I would removed all that and recheck.

              Just how high a CPU usage are you seeing? Under what traffic conditions?

              Steve

              T 1 Reply Last reply Dec 3, 2019, 2:00 PM Reply Quote 0
              • T
                tinysnake @stephenw10
                last edited by Dec 3, 2019, 2:00 PM

                @stephenw10 I have a i5 9500T, it's base clock is 2200MHz, and I just gave 1 single core to it.
                Network wise, I have a 4 port intel 85276 nic, and simply passthrough 2 ports to it, 1 for wan and 1 for lan, without any "tweaks", wan-to-lan cpu usage is 90% at about 100Mbps.
                My most successful result is only 1 port for wan and lan, that way 100Mbps traffic don't even take any cpu usage. But I don't like this topology.
                I ordered a i350-T4 after 2 days, and I found the pfSense hardly pick them up, either show no port or just a single one.
                I even tried OPNSense, and no nic were found either.
                Looks like something just don't play along with FreeBSD.
                It took me a lot of sleep time to try pfSense, but sadly non of them worked..

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Dec 3, 2019, 9:26 PM

                  Hmm, well that's certainly very high. Does it show that CPU usage in pfSense?

                  Does it make any difference what two NICs you have? Like one pass though and one internal? Or both internal?

                  T 1 Reply Last reply Dec 4, 2019, 3:08 AM Reply Quote 0
                  • T
                    tinysnake @stephenw10
                    last edited by Dec 4, 2019, 3:08 AM

                    @stephenw10 weirdly enough, if I add any virtual NIC to pfSense, then I get spam message says "interrupt storm detected", and cpu usage goes to 30% when idling.
                    By the way I have other routers in the same network for easy access without changing network ip address.
                    I'm done fiddling around pfSense and break my home network every night, for now.
                    If I encounter something weird the next time I'll post full detail and ask you for help. Thanks so much for replying over and over!

                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Dec 4, 2019, 3:28 PM

                      No problem. There's certainly something odd happening there. Many of us here run pfSense in Proxmox in all sorts of exotic configurations and see no significant issues, that's also KVM.

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • T
                        tinysnake
                        last edited by Dec 4, 2019, 3:43 PM

                        I should mention a thing:
                        because I have problem, so I upgrade unraid to 6.8.0rc, which qemu version is Q35-4.1, not the usual Q35-3.1 that unraid 6.7.2 has.
                        It's either Q35-4.1 or unraid 6.8.0rc could not pick up the NICs, too bad that I just send the i350-T4 back to the shop, no way to try the better NIC out.

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Dec 4, 2019, 4:12 PM

                          That's odd. i350 is very widely used. Unless it was one of the many fake Intel cards that are about...

                          1 Reply Last reply Reply Quote 0
                          45 out of 45
                          • First post
                            45/45
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received