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

    Cannot Achieve 10g pfsense bottleneck

    Scheduled Pinned Locked Moved General pfSense Questions
    64 Posts 8 Posters 2.6k Views 9 Watching
    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.
    • w0wW Offline
      w0w @Laxarus
      last edited by

      @Laxarus
      152d9ae8-3d7b-4379-83ce-30dd47ad22f5-image.png
      And never getting closer with your settings.

      This is what I am using on a Windows machine

      iperf3 -c 192.168.40.40 -P 8 -t 30 -O 3 -w 2M -N -R
      

      As @stephenw10 already said, this is not a CPU frequency issue, this is just maximum reported by pfSense.

      @Laxarus said in Cannot Achieve 10g pfsense bottleneck:

      I cannot afford testing this hardware in a virtual environment. This is currently in production and there is no backup for it.

      Are you using UEFI mode and SATA drive or this is NVME installation?

      LaxarusL 2 Replies Last reply Reply Quote 0
      • LaxarusL Offline
        Laxarus @w0w
        last edited by

        @w0w ı was using legacy but switched to uefi later thinking this will improve things but it did not change anything. Installation is on a m.2 nvme.

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

          Mmm, drive speed and boot type really shouldn't make any difference to throughput.

          You could be hitting some bus limit perhaps. Some hardware off-loading not playing nicely?

          w0wW 1 Reply Last reply Reply Quote 1
          • w0wW Offline
            w0w @stephenw10
            last edited by

            @stephenw10 said in Cannot Achieve 10g pfsense bottleneck:

            about 2 hours ago

            Mmm, drive speed and boot type really shouldn't make any difference to throughput.

            This makes a difference if we want to migrate to a Proxmox VM. When a SATA drive is used, you can prepare a new drive with Proxmox and a pfSense VM on another system, then just move it over and reassign the interfaces in Proxmox. Just use a USB Ethernet adapter as the management interface on both PCs. With NVMe it can be more complicated and may require more downtime.

            @Laxarus try the iperf command provided in my previous message and post back the results.

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

              Right but no difference to the the throughput of the resulting install.

              w0wW 1 Reply Last reply Reply Quote 0
              • w0wW Offline
                w0w @stephenw10
                last edited by

                @stephenw10 said in Cannot Achieve 10g pfsense bottleneck:

                about 2 hours ago

                Right but no difference to the the throughput of the resulting install.

                Definitely yes. 😁

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pwood999 @Averlon
                  last edited by

                  @Averlon The reason I suggest testing each server to & from PfSense was just to verify that part of the E2E path - especially as the 25G link is used for all VLAN's to the Microtik.

                  Server1 --> Microtik --> PfSense (DS & US)
                  Server2 --> Microtik --> PfSense (DS & US)

                  It would at least verify the firewall rules on the VLAN's & the VLAN's through the Microtik can pass the full bandwidth.

                  1 Reply Last reply Reply Quote 0
                  • LaxarusL Offline
                    Laxarus @w0w
                    last edited by

                    @w0w said in Cannot Achieve 10g pfsense bottleneck:

                    @Laxarus try the iperf command provided in my previous message and post back the results.

                    still 5G and occasional 6G

                    @Averlon said in Cannot Achieve 10g pfsense bottleneck:

                    My suggestion is to disable HT / SMT, scale queues down to 4 and there might be another improvement. The Intel SpeedShift may work better on packed level rather than core level.

                    disabled HT but this did not make any difference

                    w0wW A 2 Replies Last reply Reply Quote 0
                    • w0wW Offline
                      w0w @Laxarus
                      last edited by

                      @Laxarus said in Cannot Achieve 10g pfsense bottleneck:

                      still 5G and occasional 6G

                      OK, so how exactly is the Intel XXV710 dual 25G connected to the Ubiquiti switch, and what is the exact switch model, ports, cables, and transceivers you’re using if any?

                      LaxarusL 1 Reply Last reply Reply Quote 0
                      • LaxarusL Offline
                        Laxarus @w0w
                        last edited by Laxarus

                        @w0w
                        Switch: USW-EnterpriseXG-24
                        Connection: Unifi SFP28 DAC cable (UC-DAC-SFP28)

                        24e328d6-c156-4512-b704-358648d223b3-image.png

                        I disabled the LAGG so there is only a single cable now.

                        Do you think these cables dont play nice with pfsense?

                        But I also tested the 10g rj-45 built-in port but still no difference so I've ruled this out.

                        At this point, I am entertaining the idea of putting all 10G devices in same vlan/switch and stick with L2.

                        w0wW 1 Reply Last reply Reply Quote 0
                        • w0wW Offline
                          w0w @Laxarus
                          last edited by

                          @Laxarus said in Cannot Achieve 10g pfsense bottleneck:

                          Do you think these cables dont play nice with pfsense?

                          I don’t think so. The more I look at it, the more I think it’s some software glitch — but where exactly is the bottleneck? It looks just like some queues/limiters. This CPU should do 30-40 Gbit with fw filtering and 60 Gbit just for routing. I don’t know — something is broken.

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pwood999
                            last edited by pwood999

                            Maybe share your PfSense config, with any public IP's, Certs, etc. obfuscated ?

                            Or just screenshots of the VLAN firewall rules & any Limiter/Shaper queue settings ?

                            Check this post or an XML Redactor that might be helpful.
                            link redactor

                            LaxarusL 1 Reply Last reply Reply Quote 0
                            • A Offline
                              Averlon @Laxarus
                              last edited by Averlon

                              @Laxarus said in Cannot Achieve 10g pfsense bottleneck:

                              disabled HT but this did not make any difference

                              Did you configure the NIC queues down to 4 as well and tested SpeedShift at Package Level? The hwpstate_intel driver works quite well with Broadwell CPUs and does shown improvements (according to your post) towards 6Gbps on your Skylake CPUs. Compared to your previous posted results, this is an improvement of almost 1Gbps.

                              How is the throughput if you disable the firewall (pfctl -d) and use pfsense as router only. NAT won't be available once you disable the firewall. You can re-enable by running pfctl -e and it will load your last ruleset. If you don't see any significant difference with firewall disabled, you can be at least sure, it's not the firewall ruleset slowing things down.

                              What about the interface counter on that Ubiquiti switch, especially the ones for the 25gbps Uplinks - are there any error counter / drops shown?

                              L 1 Reply Last reply Reply Quote 0
                              • L Offline
                                louis2 @Averlon
                                last edited by louis2

                                @Averlon

                                Just for info.

                                When transferring large files between my TrueNas system and my Windows11 Pro PC, both using NVME SSD. I have transfer speeds above 5Gbit.

                                Situation is as follows:

                                • NAS <> 10G-switch <> pfSense <(lagg)> 10G-switch <> PC.
                                • NAS, pfSense and PC all equipped with ConnectX4 cards used at a speed of 10G.
                                • using jumbo frames (9000) on the connection
                                • transferring data between two NVME SSD's
                                • PC to NAS 5Gbit
                                • NAS to PC almost 9Gbit
                                • my fpSense system is build arround a older PC-mainbord having an Intel i5 6600K systeem (kaby lake Q1 2017). 4 core CPU

                                I am almost sure the PC is the speed limiting factor. The PC performance when transferring small files is 'dramatic'Intel i5 6600K systeem (kaby lake Q1 2017). 4 core

                                1 Reply Last reply Reply Quote 2
                                • LaxarusL Offline
                                  Laxarus @pwood999
                                  last edited by Laxarus

                                  @pwood999 said in Cannot Achieve 10g pfsense bottleneck:

                                  Maybe share your PfSense config, with any public IP's, Certs, etc. obfuscated ?

                                  Or just screenshots of the VLAN firewall rules & any Limiter/Shaper queue settings ?

                                  Check this post or an XML Redactor that might be helpful.
                                  link redactor

                                  I will check what I can do about sharing the config. I think I saw some github repo for anonymizing the config.
                                  Edit: Yep found it
                                  Github pfsense-redactor

                                  @Averlon said in Cannot Achieve 10g pfsense bottleneck:

                                  Did you configure the NIC queues down to 4 as well and tested SpeedShift at Package Level? The hwpstate_intel driver works quite well with Broadwell CPUs and does shown improvements (according to your post) towards 6Gbps on your Skylake CPUs. Compared to your previous posted results, this is an improvement of almost 1Gbps.

                                  Yeah, I did all that. But 6G is not consistent, I am still getting mostly 5G.

                                  I still think some configuration issue on the pfsense side of things. I am considering making a fresh install and testing things out then reloading my config.

                                  @Averlon said in Cannot Achieve 10g pfsense bottleneck:

                                  What about the interface counter on that Ubiquiti switch, especially the ones for the 25gbps Uplinks - are there any error counter / drops shown?

                                  I see no errors.

                                  @louis2 said in Cannot Achieve 10g pfsense bottleneck:

                                  I am almost sure the PC is the speed limiting factor. The PC performance when transferring small files is 'dramatic'Intel i5 6600K systeem (kaby lake Q1 2017). 4 core

                                  not similar to my case since I can achieve 10g on L2 with the same devices I test so I've ruled out the clients as the limiting factor.

                                  I will try to adjust my settings as close to defaults as possible to see if it makes any difference.

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TomTheOne
                                    last edited by

                                    Hi all

                                    Very interesting topic: I'm experiencing the same issues with similar limitations on 10Gbit/s link.
                                    I'm experimenting since a year with possible settings and test-scenarios. No success so far.

                                    One session limited to ~600 Mbit/s.
                                    10 sessions limited to ~5 Gbit/s

                                    T 1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TomTheOne @TomTheOne
                                      last edited by TomTheOne

                                      I was able to increase the throughput per session from 600 Mbit/s to 1.2 Gbit/s by adding this config

                                      hw.pci.honor_msi_blacklist=0
                                      

                                      to /boot/loader.conf

                                      Then a reboot is required.

                                      Source: https://lists.freebsd.org/pipermail/freebsd-bugs/2015-October/064355.html

                                      LaxarusL 1 Reply Last reply Reply Quote 0
                                      • LaxarusL Offline
                                        Laxarus @TomTheOne
                                        last edited by

                                        @TomTheOne Are you on VMware?

                                        T 1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          TomTheOne @Laxarus
                                          last edited by TomTheOne

                                          @Laxarus
                                          No, it's a Intel based hardware. But I experienced the same 5 Gbit/s limitation when the firewall was vm-based back in the days.

                                          LaxarusL 1 Reply Last reply Reply Quote 0
                                          • LaxarusL Offline
                                            Laxarus @TomTheOne
                                            last edited by

                                            @TomTheOne this is interesting. I will try this too but you still cannot saturate the 10g link right?

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