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

    Official Realtek Driver Binary 1.95 For 2.4.4 Release

    Hardware
    52
    194
    115.2k
    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

      @networkingmicrobe said in Official Realtek Driver Binary 1.95 For 2.4.4 Release:

      i3-530

      That's a 2 core 4 thread CPU so 74% idle could be 1 virtual core at 100%. Potentially the core running iperf.
      Try running top -aSH while you test.

      Better to test through the firewall rather than to or from it directly.

      Steve

      N 1 Reply Last reply Reply Quote 2
      • N
        Napsterbater @stephenw10
        last edited by

        @networkingmicrobe If you want to benchmark pfSense on a particular device and setup. run iperf through pfSense not on it.

        It has been said MANY times on the fourms.

        Using iperf on the pfsense system itself is not a valid gauge at routing performance.

        CybermazeC 1 Reply Last reply Reply Quote 0
        • CybermazeC
          Cybermaze @NetworkingMicrobe
          last edited by

          @networkingmicrobe I'm not entirely sure, but I suspect that the driver is limited in that one TCP/UDP stream can only utilize one core on the CPU, simply put, 450Mbps is what a single core on your CPU (Intel Core i3-530) can handle if you run iperf with one client thread (should be default).

          You can test that by running iperf on the client side with more threads using -P (that's a capital P), something like:

          iperf -c 192.168.0.1 -P 4
          

          Will run the client with 4 threads, each opening their own TCP stream (adjust IP address to whatever you are using).

          1 Reply Last reply Reply Quote 0
          • CybermazeC
            Cybermaze @Napsterbater
            last edited by

            @napsterbater correct, it is not a valid gauge at routing performance, however I suspect that @networkingmicrobe is attempting to find out wether or not his NIC is capable of sending data close to the 1Gbit linespeed, not the actual routing throughput.

            1 Reply Last reply Reply Quote 1
            • N
              NetworkingMicrobe
              last edited by NetworkingMicrobe

              @griffo - Thanks for the tip, looking forward to my Intel NICs then! Interesting that this seems to keep happening with integrated (on-motherboard) Realtek NICs, though.

              @stephenw10 - You bring up a good point, thanks. That result I pasted above was actually from top -aSH. In that case, I'd expect the same results on an Intel NIC (over PCIe), since it may be an issue with single-core clock speed. It looks like cpu0 (first core) is being used the most during a single-stream iperf3 test, with WCPU% of [idle{idle: cpu0}] dropping down during the test to about 50% and then back to 99% after.
              I tried increasing the number of parallel streams to 2, and then 4, like @Cybermaze suggested, but saw same results in terms of throughput (~400Mbps) and core utilization (mostly cpu0, perhaps some of core1 too).

              @Napsterbater - I realize benchmarking pfSense is best done by going through the firewall, but what I wanted to simulate here was the maximum theoretical line speed by testing to the WAN port directly. I realize it's not at all indicative of performance through the firewall on other LAN devices, but is a 'sanity check' I'd like to try first, if that makes sense, to see if I can ever get the theoretical ~1Gbps line speeds expected to begin with. Basically what @Cybermaze suggested in their comment above.

              Thanks all for your quick and informative replies, perhaps it's just a limitation of my onboard NIC for some reason.

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

                iperf3 is in fact single threaded and will only ever use one CPU core. The -P switch can make it run multiple client streams, which can take advantage of multiqueue NICs for interrupt load, but it will still only use one CPU core on the client and server machine for iperf itself. Which is another good reason to test through the firewall.

                If you need to test like that try running multiple iperf servers or clients on different ports simultaneously.

                https://fasterdata.es.net/performance-testing/network-troubleshooting-tools/iperf/multi-stream-iperf3/

                Steve

                1 Reply Last reply Reply Quote 1
                • N
                  NetworkingMicrobe
                  last edited by

                  @Cybermaze - Small update, using multiple client streams into a pfSense iperf3 server yields similar results as a single stream of ~400-450Mbps.
                  However, I noticed when using multiple client streams when pfSense is the client and another device is the server, I can get steady 800Mbps throughput, much closer to theoretical 1000Mbps max line speed. Interesting...

                  I'll look into running multiple iperf servers simultaneously as well, thanks @stephenw10.

                  1 Reply Last reply Reply Quote 0
                  • N
                    NetworkingMicrobe @Griffo
                    last edited by

                    Finally got around to adding some gigabit Intel NICs to the build, and sure enough I can easily obtain 960+ Mbps both to the firewall (to see WAN theoretical max speed) and through the firewall. So definitely something funky going on with the onboard Realtek NIC, like @griffo mentioned, despite using the latest drivers v1.96.04 from Realtek. Not crucial to fix I guess, but still interesting to note for others who may have similar issues in the future.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mikekoke @Rico
                      last edited by

                      @rico said in Official Realtek Driver Binary 1.95 For 2.4.4 Release:

                      Here you go: rtl_bsd12.1_drv_v196.04.zip

                      -Rico

                      Hi, I would like to know if this driver also works on the 2.5.0 RC that is about to come out.
                      Thank you.

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

                        As jimp said in the other thread in 2.5 the FreeBSD package for this is in our repo. So you can simply do this at the command line:

                        pkg install realtek-re-kmod
                        then
                        echo 'if_re_load="YES"' >> /boot/loader.conf.local

                        Then reboot and check the boot logs for output from the new driver loading like:

                        re0: <Realtek PCIe GbE Family Controller> port 0x1000-0x10ff mem 0xf7a00000-0xf7a00fff,0xf7900000-0xf7903fff irq 16 at device 0.0 on pci1
                        re0: Using Memory Mapping!
                        re0: Using 1 MSI-X message
                        re0: ASPM disabled
                        re0: version:1.96.04
                        re0: Ethernet address: 00:0d:b9:37:30:10
                        

                        Steve

                        M 2 Replies Last reply Reply Quote 1
                        • M
                          mikekoke @stephenw10
                          last edited by

                          @stephenw10
                          Ok thanks.

                          1 Reply Last reply Reply Quote 0
                          • M
                            mikekoke @stephenw10
                            last edited by

                            @stephenw10 said in Official Realtek Driver Binary 1.95 For 2.4.4 Release:

                            As jimp said in the other thread in 2.5 the FreeBSD package for this is in our repo. So you can simply do this at the command line:

                            pkg install realtek-re-kmod
                            then
                            echo 'if_re_load="YES"' >> /boot/loader.conf.local

                            Then reboot and check the boot logs for output from the new driver loading like:

                            re0: <Realtek PCIe GbE Family Controller> port 0x1000-0x10ff mem 0xf7a00000-0xf7a00fff,0xf7900000-0xf7903fff irq 16 at device 0.0 on pci1
                            re0: Using Memory Mapping!
                            re0: Using 1 MSI-X message
                            re0: ASPM disabled
                            re0: version:1.96.04
                            re0: Ethernet address: 00:0d:b9:37:30:10
                            

                            Steve

                            I was forgetting to ask you something, in your opinion it is better to first remove the old driver for realtek that I had installed for 2.4.5, then update to 2.5.0 and finally install the new driver with the procedure you wrote above or I can do upgrade to 2.5.0 and then overwrite the old driver with the new one? Thank you.

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

                              I would removed any 2.4.X binaries you have uploaded first. They won't load in 2.5 anyway.

                              Steve

                              1 Reply Last reply Reply Quote 2
                              • A
                                Allex @mikekoke
                                last edited by

                                @mikekoke said in Official Realtek Driver Binary 1.95 For 2.4.4 Release:

                                @rico said in Official Realtek Driver Binary 1.95 For 2.4.4 Release:

                                Here you go: rtl_bsd12.1_drv_v196.04.zip

                                -Rico

                                Hi, I would like to know if this driver also works on the 2.5.0 RC that is about to come out.
                                Thank you.

                                Thanks. It worked easily for me.

                                PfSense 2.5.0-RELEASE (amd64)
                                built on Tue Feb 16 08:56:29 EST 2021
                                FreeBSD 12.2-STABLE

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jgnguyen123 @NetworkingMicrobe
                                  last edited by

                                  @networkingmicrobe I have the same problem with the built-in RTL8168. In Windows driver, there's an option "Gigabit lite" that is to set to ON by default which reduces its speed to half. I suspect that might be be the default settting on the NIC. Not sure if there's an option to turn it OFF in pfSense.

                                  1 Reply Last reply Reply Quote 0
                                  • m4nf47M
                                    m4nf47
                                    last edited by

                                    @mikekoke said in Official Realtek Driver Binary 1.95 For 2.4.4 Release:

                                    @stephenw10 said in Official Realtek Driver Binary 1.95 For 2.4.4 Release:

                                    As jimp said in the other thread in 2.5 the FreeBSD package for this is in our repo. So you can simply do this at the command line:

                                    pkg install realtek-re-kmod
                                    then
                                    echo 'if_re_load="YES"' >> /boot/loader.conf.local

                                    Then reboot and check the boot logs for output from the new driver loading like:

                                    re0: <Realtek PCIe GbE Family Controller> port 0x1000-0x10ff mem 0xf7a00000-0xf7a00fff,0xf7900000-0xf7903fff irq 16 at device 0.0 on pci1
                                    re0: Using Memory Mapping!
                                    re0: Using 1 MSI-X message
                                    re0: ASPM disabled
                                    re0: version:1.96.04
                                    re0: Ethernet address: 00:0d:b9:37:30:10
                                    

                                    Steve

                                    I was forgetting to ask you something, in your opinion it is better to first remove the old driver for realtek that I had installed for 2.4.5, then update to 2.5.0 and finally install the new driver with the procedure you wrote above or I can do upgrade to 2.5.0 and then overwrite the old driver with the new one? Thank you.

                                    Hi thread, long time no see! So I recently upgraded from 2.4.5 to 2.5.1 and started getting the dreaded watchdog timeout errors again after a couple of days, would completely hang my connection and force me offline. I noticed that the Realtek driver wasn't loading as before and can confirm that the above simple (pkg install) fix seemed to work for me. The key info to confirm that the driver is loaded is to run the kldstat command and also check the boot logs for the version line as shown above. Many thanks for sharing, fingers crossed this post might help someone else running crappy Realtek hardware on pfSense. 👍

                                    1 Reply Last reply Reply Quote 0
                                    • m4nf47M
                                      m4nf47 @m4nf47
                                      last edited by

                                      Just an update for anyone reading this old thread for older releases, there are much simpler instructions that worked for me on the 2.5.1 release, I now recommend avoiding any messy compilation and upload of drivers and just using the instructions here:

                                      https://forum.netgate.com/topic/135850/official-realtek-driver-binary-1-95-for-2-4-4-release/168

                                      C 1 Reply Last reply Reply Quote 2
                                      • C
                                        cooljimy84 @m4nf47
                                        last edited by

                                        @m4nf47
                                        same here, pkg remove and then install
                                        tho i had to add the following to /boot/loader.conf
                                        if_re_load="YES"
                                        if_re_name="/boot/modules/if_re.ko"

                                        1 Reply Last reply Reply Quote 1
                                        • A
                                          aignatev
                                          last edited by

                                          Version 1.96.04 for FreeBSD 13, if needed.

                                          https://github.com/anignatev/if_re

                                          1 Reply Last reply Reply Quote 0
                                          • F fictionedge referenced this topic on
                                          • J
                                            j3roen
                                            last edited by

                                            I'm running into this issue on PFSense 2.6. Does anyone have a working driver?

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