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

    10Gbps - pfSense 3,4Gbps / ubuntu 9,4Gbps ??

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 5 Posters 2.6k 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.
    • H Offline
      hege
      last edited by

      Hi,

      I only get arround 3,4Gbps with my setup, (only 4,4Gbps with pctl -d / pfSense 2.2.5)
      With Ubuntu 14.04 I get 9,4Gbps

      Setup: (both systems are 1:1)
      CPU: Intel i5-4590 @3.3Ghz
      Ram: 2x 8Gb
      HDD: 120 Gb SSD
      NIC: Intel  X520-DA2

      PC1 <- X520-DA2 -> PC2

      used commands:
      Server: iperf -s
      Client: iperf -c SERVER -t 10

      Changed settings:
      /boot/loader.conf
      kern.ipc.nmbclusters="1000000"
      kern.ipc.nmbjumbop="524288"

      sysctl hw.intr_storm_threshold=10000

      What did I do wrong, what have I forgotten?
      PC1_pfSense_iperf.png
      PC1_pfSense_iperf.png_thumb
      PC1_pfSense_TOP.png
      PC1_pfSense_TOP.png_thumb
      PC1_Ubuntu_iperf.png
      PC1_Ubuntu_iperf.png_thumb
      PC1_Ubuntu_TOP.png
      PC1_Ubuntu_TOP.png_thumb
      PC2_pfSense_iperf.png
      PC2_pfSense_iperf.png_thumb
      PC2_pfSense_TOP.png
      PC2_pfSense_TOP.png_thumb
      PC2_Ubuntu_iperf.png
      PC2_Ubuntu_iperf.png_thumb
      PC2_Ubuntu_TOP.png
      PC2_Ubuntu_TOP.png_thumb

      1 Reply Last reply Reply Quote 0
      • H Offline
        Harvy66
        last edited by

        Just making sure I got this. You've connected two systems directly together via Intel 520 10Gb NICs, and when you use Ubuntu, you get about 9Gb, and when you use PFSense, you get about 3Gb/s?

        What version of IPerf are you using on Linux? PFSense is only 2.x while 3.x now exists.

        I also noticed your Ubuntu boxes are defaulting with larger TCP windows.

        1 Reply Last reply Reply Quote 0
        • H Offline
          hege
          last edited by

          @Harvy66:

          You've connected two systems directly together via Intel 520 10Gb NICs, and when you use Ubuntu, you get about 9Gb, and when you use PFSense, you get about 3Gb/s?

          Exactly!

          @Harvy66:

          What version of IPerf are you using on Linux? PFSense is only 2.x while 3.x now exists.
          I also noticed your Ubuntu boxes are defaulting with larger TCP windows.

          Ubuntu 14.04 has iperf 2.0.5 (same as pfSense)
          I just tried it with same TCP Window but it makes no difference :(

          1 Reply Last reply Reply Quote 0
          • Q Offline
            q54e3w
            last edited by

            I found FreeBSD needs more tuning to get wire speeds through Intels 10gbe NIC's. Its beyond just TCP window size, its worth reading the Intel manual and some of the other manufacturers tuning guides (Mellanox etc) which will give you pointers. I''m not sure theres a one size fits all fix sadly and you may at some point run into physical hardware limits such as CPU performance to fill the pipe although I suspect your i5 will be fine in that regard. I also heard the Chelsio cards are more plug n play which if time is tight might be an easier route to go if you need the perf. Hang in there, the x520 can fly when correctly configured.

            1 Reply Last reply Reply Quote 0
            • C Offline
              cmb
              last edited by

              You probably don't have a firewall enabled on Ubuntu, and certainly not one that has scrub and a number of rules loaded. Disable the packet filter under System>Advanced and you'll get an equivalent test.

              Things aren't really tuned for traffic to/from the firewall itself, traffic through the system is a much better test for evaluating things that matter in a firewall scenario.

              1 Reply Last reply Reply Quote 0
              • H Offline
                hege
                last edited by

                As far as I know - "pctl -d" is exactly what the GUI checkbox does and I only got 4.4Gbps - still much lower than with Ubuntu
                It seems that I have to use two more PCs for a correct Test.

                My initial goal was to check how much throughput I can get with two C2558 as FW CPUs,
                but I only got 1.6Gbps single tcp connection with the Setup PC1 -> FW1 <-> FW2 -> PC2, so I changed to PC1 <-> PC2

                @irj972
                Thank you, I will check that.

                1 Reply Last reply Reply Quote 0
                • savagoS Offline
                  savago
                  last edited by

                  If you want to use full 10Gb/s link capacity,you must use clear freebsd and ipfw/netmap :)

                  Sys 2.0-RC1: Intel Atom N330 Dual Core @1.6 2048M Ram 40GHD

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