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

    ntopng eats half of my gigabit network

    Scheduled Pinned Locked Moved General pfSense Questions
    22 Posts 3 Posters 3.1k 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
      bluepr0 @stephenw10
      last edited by

      @stephenw10 cool, will try that reddit thread as well!

      Will also try with the passthrough mode disabled on the NICs! Thanks :)

      1 Reply Last reply Reply Quote 0
      • B
        bluepr0 @stephenw10
        last edited by

        @stephenw10 alright! I've been trying lots of things but no luck so far :/.

        Enabling bandwidthd (with ntopng disabled) is even worse as I would get around 200mb and around 75% CPU usage. On the reddit thread doesn't specify if he's using passthrough so I would assume he's on virtio.

        Now I've tried without the NICs in passthrough mode and I'm getting a bit better performance ~650mb with 30% CPU usage (I've also enabled the option to disable hardware checksum as these are virtual NICs).

        I've also read that some other virtualization systems like Proxmox which also uses KVM needed to get the flow control disabled (tx off). Also tried with NIC Offload off and increased Rx and Tx Buffer to 2048 (all this on unRAID). Really weird that I'm getting better performance with virtual NICs vs using passthrough NICs.

        The best I can get is 650mb using iperf3 with plenty of CPU power still available. I'm really stuck.

        I even tried installing an OPNSense VM just to try to see if it is a pfSense thing but I'm unable to get past installation, always get an error.

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

          Mmm, something odd happening there at some low level.

          I assume you can see the full throughput in all cases without ntopng still?

          Steve

          B 1 Reply Last reply Reply Quote 0
          • B
            bluepr0 @stephenw10
            last edited by

            @stephenw10 yes, I also think there's something on low level not working correctly. That's why I was trying to play with the TX, RX buffer, offload, flow control, etc.

            In the case of using passthrough this shouldn't be an issue but still something else is like slowing down things when enabling ntopng.

            I do always get full gigabit if ntopng is not running.

            Thanks a lot for your help, really appreciate your time and effort Stephen.

            1 Reply Last reply Reply Quote 0
            • B
              bluepr0
              last edited by

              Another thing I noticed when using iperf3 is that when I create the server in the pfSense VM, as I said I get ~500 megabits but if I use the -R option (on client) I get quite a few more ~800 megabits

              Screenshot 2019-03-19 at 16.43.36.png Screenshot 2019-03-19 at 16.44.04.png

              GrimsonG 1 Reply Last reply Reply Quote 0
              • GrimsonG
                Grimson Banned @bluepr0
                last edited by

                @bluepr0 said in ntopng eats half of my gigabit network:

                Another thing I noticed when using iperf3 is that when I create the server in the pfSense VM

                And again, do not run iperf on pfSense if you want to test routing throughput. Put the iperf server on a device connected to wan and run the client on a device connected LAN, or vice versa. Iperf itself needs a fair amount of resources, and those are then not available for pfSense if it runs on the same device.

                B 1 Reply Last reply Reply Quote 0
                • B
                  bluepr0 @Grimson
                  last edited by

                  @Grimson even if I have plenty of resources available? I'm getting around 70% of the CPU on idle. Thanks!

                  GrimsonG 1 Reply Last reply Reply Quote 0
                  • GrimsonG
                    Grimson Banned @bluepr0
                    last edited by

                    @bluepr0 said in ntopng eats half of my gigabit network:

                    @Grimson even if I have plenty of resources available? I'm getting around 70% of the CPU on idle. Thanks!

                    A PC is more than just the CPU. To explain it very basic there are communication lines between CPU and RAM, between CPU and the chipset on the mainboard and between all of them and the add-on cards. Each of these communication lines has it limits.

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      bluepr0 @Grimson
                      last edited by bluepr0

                      @Grimson I followed your advice and setup another subnet with the empty physical port I had on my 4 NIC card. Currently pfSense is on a VM but with passthrough this 4 port NIC card

                      Test was between TEST ----- pfSense ----- LAN and iperf3 running in different hosts

                      Results are a bit better but still not full gigabit. Here's an screenshot with ntopng enabled
                      Screenshot 2019-03-19 at 17.23.59.png

                      Here's the same but with ntopng disabled (it seems to get some drops to ~770 megabits from time to time)
                      Screenshot 2019-03-19 at 17.25.54.png

                      1 Reply Last reply Reply Quote 0
                      • GrimsonG
                        Grimson Banned
                        last edited by

                        Then you are probably hitting the limits there, you can't expect to run two I/O and memory heavy systems (a raid and a firewall) with bare metal performance when they have to share a host.

                        Like I said, the CPU (or it's cores) is only one part of a system.

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          bluepr0 @Grimson
                          last edited by

                          @Grimson the rest of the server is pretty much idle, I stopped and closed everything for the tests. Basically it was just this pfSense VM running on a 20 cores CPU +16GB Ram on Supermicro X10SRL-F (Intel 612 chipset). Don't you think it should get the full gigabit? The VM has the NIC on passthrough and on RAID1 SSD

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