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

    pfsense bandwidth issue

    General pfSense Questions
    2
    14
    1.1k
    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.
    • W
      William 0
      last edited by

      Hey all, new to pfsense, but I have a few questions. I setup my NIC's and everything works. DHCP is assigned, but I notice that my bandwidth is reduced from the getgo. Using the same hardware and running untangled I get 1.4gbps, with pfsense (no pfblocker, no suricata) I get 1.1gbps. Is this a freebsd driver thing?

      I did an iperf and it reports back 2.4gbps of bandwidth. Pretty much the same when I do it from a client to the untangled appliance.

      For reference my hardware:
      J4125
      8GB RAM
      128 SSD
      Intel I225 4 ports
      1 wan
      1 lan
      1 for WIFI AP
      1 for IOT devices

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

        Howe are you testing when you see the reduced throughput?

        Is the WAN DHCP?

        Steve

        W 1 Reply Last reply Reply Quote 0
        • W
          William 0 @stephenw10
          last edited by

          @stephenw10

          ookla speed test for external. Same server on both pfsense and untangled. I run 3 test for each. The speeds are consistent across each test and I did test multiple times throughout the day.

          for internal it's PC (client) to appliance (pfsense) using iperf3
          I used the following command: iperf –c x.x.x.x –w 2m –t 30s –i 1s

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

            It's a dhcp WAN though, not PPPoE?

            pfSense 2.6?

            W 1 Reply Last reply Reply Quote 0
            • W
              William 0 @stephenw10
              last edited by William 0

              @stephenw10

              geez, sorry I thought I answered that already. My apologies... yes DHCP WAN

              yes 2.6 and even tried 23.1RC

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

                Ok, next thing I'd try is running at the command line: top -HaSP

                Then checking what loading there is whilst testing. Is any one CPU core hitting 100%.

                Steve

                W 1 Reply Last reply Reply Quote 0
                • W
                  William 0 @stephenw10
                  last edited by

                  @stephenw10

                  last pid: 43585; load averages: 0.19, 0.14, 0.06 up 0+00:06:02 18:57:30
                  535 threads: 6 running, 510 sleeping, 19 waiting
                  CPU 0: 1.1% user, 0.1% nice, 2.6% system, 0.2% interrupt, 96.1% idle
                  CPU 1: 1.1% user, 0.1% nice, 2.4% system, 0.0% interrupt, 96.5% idle
                  CPU 2: 1.1% user, 0.1% nice, 2.5% system, 0.0% interrupt, 96.3% idle
                  CPU 3: 1.2% user, 0.0% nice, 2.4% system, 0.1% interrupt, 96.3% idle
                  Mem: 88M Active, 64M Inact, 482M Wired, 7073M Free
                  ARC: 206M Total, 32M MFU, 170M MRU, 292K Anon, 713K Header, 3509K Other
                  63M Compressed, 141M Uncompressed, 2.23:1 Ratio
                  Swap: 1024M Total, 1024M Free

                  that is mid-way through the test

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

                    Hmm, that seems surprisingly low if it's passing 1.1Gbps at the time. Clearly not a CPU limit though if that is the case.
                    Is the load that is present in the NIC interrupts?

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      William 0 @stephenw10
                      last edited by

                      @stephenw10

                      this is with only one client and a fresh install. Nothing loaded. 2.png 1.png

                      I am wondering if this is a driver issue with intel 225 cards? they work perfectly in linux and windows. The issue only comes up with pfsense. I even tried it in opnsense and the speed matches pfsense to a T, but all other instances are higher. (untangle, linux, windows)

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

                        Are both NICs actually linked at 2.5G?

                        W 2 Replies Last reply Reply Quote 0
                        • W
                          William 0 @stephenw10
                          last edited by

                          @stephenw10

                          Yes, even the WAN

                          1 Reply Last reply Reply Quote 0
                          • W
                            William 0 @stephenw10
                            last edited by

                            @stephenw10

                            After being driven almost insane by this issue I finally figured out what the cause is. I'm posting it in the event someone else comes across it.

                            It seems that FreeBSD has issues with Intel 225v cards that are not rev3. The two clients machines I tested this on, that worked at full speed in untangle (linux based), are running a rev1 and rev2 card. The issue appears on both. It took me a while to discover this as those are the two machines that exist in my home with 2.5 connectors. The rest are wifi AP's.
                            I discovered the issue when testing on wifi and saw my laptop and my ipad get 1.3 -1.4gbps on those. Which led me to believe it was some setting on the clients. Long story short it wasn't. I swapped out one of the NICs for a realtek 2.5g card and tested again on the clients with issues... problem solved. Now all of them had the full bandwidth.

                            I'm not sure what the issue could be with FreeBSD and these card, but it almost seems like it drops the connection and it tries to reconnect which is what causes the massive dips and spikes in speed. This is just me spitballing though. Rev3 cards work without issue though.

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

                              Hmm, the i225V NICs before rev3 are known to have issues. In any OS. As I understand it it's a hardware problem. I'm surprised it behaves any differently in Linux though.

                              W 1 Reply Last reply Reply Quote 0
                              • W
                                William 0 @stephenw10
                                last edited by

                                @stephenw10

                                Yeah 100%, which is why I thought it might have been a driver thing in FreeBSD. zero issues in linux and also using a netgear router with a 2.5g port. Though I think the netgear stuff might be linux based so that would explain it and no issues in windows either, but prior to this they weren't running in 2.5g

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