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

    10Gbe Tuning?

    Scheduled Pinned Locked Moved Hardware
    83 Posts 19 Posters 40.9k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Even though your NICs are on-board they will still be connected via either a PCI or PCIe bus to the chipset. It seems  unlikely that it would be PCI but you never know. The exact NIC chip code will tell you. Clearly the CPU is not the restriction here, all the cores are still running idle processes.

      Steve

      1 Reply Last reply Reply Quote 0
      • R
        razzfazz
        last edited by

        @dmitripr:

        12 root    -68    -    0K  336K CPU0    0  10:10 60.89% intr{irq18: bge1

        The interrupt load seems pretty high for <1Gbps throughput.

        1 Reply Last reply Reply Quote 0
        • D
          dmitripr
          last edited by

          @razzfazz:

          @dmitripr:

          12 root    -68    -    0K  336K CPU0    0  10:10 60.89% intr{irq18: bge1

          The interrupt load seems pretty high for <1Gbps throughput.

          I'm sure these are not the best NICs out there. :). But considering 4 cores here, this is only ~15% of CPU usage. Probably not too bad, but not great either. Intel NICs would fair better for sure.

          1 Reply Last reply Reply Quote 0
          • ?
            Guest
            last edited by

            @dmitripr:

            I'm sure these are not the best NICs out there. :). But considering 4 cores here, this is only ~15% of CPU usage. Probably not too bad, but not great either. Intel NICs would fair better for sure.

            And Chelsio better still.

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

              new Intel driver v2.5.25 for x520 / x540 cards was released last week - has anybody tried it yet?

              https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=14688&lang=eng&ProdId=3412

              1 Reply Last reply Reply Quote 0
              • C
                cyruspy
                last edited by

                @gonzopancho:

                @Jason:

                I was able to get ~8Gbit/s between two FreeNAS 9.x boxes without jumbo frames when using 4 threads.  That's pretty close to wire.

                OK, Jason… FreeBSD won't forward at wirespeed on 10Gbps networks.

                Since the BSDRP guy can only manage to forward (no firewall, just fast forwarding) at a pinch over 1.8Mpps, (and you were doing, by my best estimate, 5.5Mpps), I'm going to assert that we still have work to do.

                brunoc:  we're currently engaged in a 10G performance study, but yes, part of the solution will be tuning, and part of it will be the threaded pf in pfSense version 2.2.

                Hmm, if all I need is a a pair of routers running CARP and NAT with a pool of IPs with 10GbE Intel NICs, would it make sense to go with 2.2 Alpha snapshots?

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by

                  "8Gbps" is not how we measure these things.

                  Quote PPS or go home.

                  1 Reply Last reply Reply Quote 0
                  • C
                    cyruspy
                    last edited by

                    @gonzopancho:

                    "8Gbps" is not how we measure these things.

                    Quote PPS or go home.

                    My bad, lets say I need NAT (PAT really) for 500kpps

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by

                      There is an active internal project to get the performance of 'pf' up.

                      1 Reply Last reply Reply Quote 0
                      • C
                        cyruspy
                        last edited by

                        @gonzopancho:

                        There is an active internal project to get the performance of 'pf' up.

                        Would be nice to  know a little more about that project.  For the time being, how near that mark can I get with a Xeon E5520/E5620, PCIe and a decent 10GbE Intel NIC?.

                        Should I stay with 2.1.5 or venture with 2.2 ALPHA because of the FreeBSD 10 baseline? .

                        1 Reply Last reply Reply Quote 0
                        • ?
                          Guest
                          last edited by

                          I'd go 2.2-BETA, personally.  there are only a couple things to get fixed.

                          The test harness is here:  https://github.com/gvnn3/conductor

                          (Remember, people say I don't know how to open source.)

                          1 Reply Last reply Reply Quote 0
                          • C
                            cyruspy
                            last edited by

                            I didn't know there was a Beta already, I'll look at it. Thanks.

                            1 Reply Last reply Reply Quote 0
                            • ?
                              Guest
                              last edited by

                              It's not, but should be quite soon.

                              1 Reply Last reply Reply Quote 0
                              • S
                                superbree
                                last edited by

                                Now that 2.2 is beta.  A few questions about 10Gbe.

                                1. are the system tune-able tweaks still necessary for the intel ix drivers?

                                2. are the tweaks needed in the /boot/loader.conf.local as mentioned in reply #14?

                                3. Are LRO and TSO still needed to be disabled in 2.2 beta for the ix drivers?

                                Thank you in advance for any reply!

                                1 Reply Last reply Reply Quote 0
                                • ?
                                  Guest
                                  last edited by

                                  Dude in #14 doesn't understand what he's doing.

                                  (People who "tune" TCP variables to get packet filtering / NAT throughput are wasting time.)

                                  You're getting faster IPSec (AES-GCM w/ AES-NI) with 2.2.  You'll see some improvement from the threaded "pf" in FreeBSD 10(.1), upon which pFsense 2.2 is based.

                                  I've already discussed the faster version of pf here and elsewhere.  There are a couple easy improvements (good for 12-15%), and these might make it into 2.2.x.  After that it gets hard, pf is a really crappy architecture for performance.

                                  In any case, these things take time, and/or money.

                                  "Patches accepted."

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    superbree
                                    last edited by

                                    Thank you for you reply.  I completely understand what you are saying.  PF and PPS ;D  I am excited to see what threaded PF in 2.2 might do.  I am also interested in what you have been saying with regards to a faster version of PF.  Can you point me in the right direction what you have been discussing so that i might catch up?  A link or PM?

                                    Thank you,

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      Guest
                                      last edited by

                                      Now that we're on FreeBSD-10, we have netmap (*).

                                      ipfw over netmap exists: https://code.google.com/p/netmap-ipfw/
                                      Quoting that page, "This version reaches 7-10 Mpps for filtering".

                                      A preview of same: http://lists.freebsd.org/pipermail/freebsd-ipfw/2012-July/005176.html
                                      "A quick test with a simple ruleset (4 rules, see below) shows a processing speed of 9-10Mpps on one core."

                                      Seems obvious (to me) that plumbing pf over netmap (so pf in userspace) is something we should attempt.  There is a pfSense hackathon mid-October, and we should know more coming out of that.

                                      10G Ethernet at 64 byte packets is 14.8Mpps.  If we can do 7Mpps with pf, then for an average packet size of just over 128 bytes, we will be able to filter at line rate.

                                      Moreover, that's not the end of it, it's just where we're starting.

                                      But getting this work into pfSense will be more than just implementing "pf over netmap".

                                      (*) OK, I"m talking about pfSense 2.2, which technically is still in beta, and yes, netmap was in 8.3 as well, let's not discuss how old 8.3 is.

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

                                        Promising stuff.  :)
                                        I look forward to any results (everyone loves a nice graph  ;))

                                        Steve

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

                                          I just couldnt get past 6.5gbps on 2.1.4….but 2.2 flies :)

                                          this is as fast as my little fileserver can go....

                                          and iperf from laptop<–>FS (my laptop struggles to get > 9gbps due to using a thunderbolt to PCIe adapter which daisy chains a monitor which consumes some bandwidth)

                                          All the above at circa 60% utilisation on one core of a 8 core rangeley 2758 board.

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            jasonlitka
                                            last edited by

                                            @irj972:

                                            I just couldnt get past 6.5gbps on 2.1.4….but 2.2 flies :)

                                            this is as fast as my little fileserver can go....

                                            and iperf from laptop<-->FS (my laptop struggles to get > 9gbps due to using a thunderbolt to PCIe adapter which daisy chains a monitor which consumes some bandwidth)

                                            All the above at circa 60% utilisation on one core of a 8 core rangeley 2758 board.

                                            Very nice. Intel X520 adapter?

                                            I can break anything.

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