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

    Wrong limiter speed

    Scheduled Pinned Locked Moved Traffic Shaping
    45 Posts 6 Posters 4.1k 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.
    • J
      Jimbohello @bobbenheim
      last edited by

      @bobbenheim said in Wrong limiter speed:

      sysctl hw.em

      hw.em.eee_setting: 1
      hw.em.rx_process_limit: 100
      hw.em.enable_msix: 1
      hw.em.sbp: 0
      hw.em.smart_pwr_down: 0
      hw.em.txd: 1024
      hw.em.rxd: 1024
      hw.em.rx_abs_int_delay: 66
      hw.em.tx_abs_int_delay: 66
      hw.em.rx_int_delay: 0
      hw.em.tx_int_delay: 66
      hw.em.disable_crc_stripping: 0

      B 1 Reply Last reply Reply Quote 0
      • noplanN
        noplan
        last edited by

        OK
        I m Readin and learning

        A Lot
        Thank you!!!

        1 Reply Last reply Reply Quote 0
        • B
          bobbenheim @Jimbohello
          last edited by

          @Jimbohello I just assume you haven't tried this before so i will list the following out in simple steps:

          • go to Diagnostics / Edit File

          • press browse and find boot/loader.conf

          • add .local so you get the string "/boot/loader.conf.local" and press save

          • press browse then find and click on loader.conf.local

          • delete the commands within loader.conf.local and add the following:
            hw.em.eee_setting="0"
            hw.em.rx_process_limit="-1"
            hw.em.txd="2048"
            hw.em.rxd="2048"
            net.link.ifqmaxlen="4096"

          • hit save and reboot

          J 3 Replies Last reply Reply Quote 0
          • J
            Jimbohello @bobbenheim
            last edited by

            @bobbenheim

            WOW thank's for your precious help
            on a limiter of 799 i can same as yesterday so close to 735
            so no change !
            up to date the queue lenght 100 was the best tunning
            can you please provide fast explanation on these Tuning you provide !
            i know that *.local usually will load the *.conf and override.
            But what are these tunning ??
            THANK'S

            1 Reply Last reply Reply Quote 0
            • J
              Jimbohello @bobbenheim
              last edited by

              @bobbenheim
              1 came close to 760 !
              i can easy live with that.
              that's the best setting so far ! it's almost the limiter setting 799 ! the accuracy bettewn 760/799 is damw better !
              BRAVO !
              explaination on your tunning steel be please ! GRACIAS

              1 Reply Last reply Reply Quote 0
              • B
                bobbenheim
                last edited by

                Try and keep a download running for some minutes and check monitoring you might have the correct limitation but the speedtest are not taking overhead into consideration.
                Need to get back to you on those settings, it's time for some sleep :)

                1 Reply Last reply Reply Quote 0
                • B
                  bobbenheim
                  last edited by

                  Found a couple of links that explains what the following does:

                  hw.em.eee_setting
                  https://www.freebsd.org/cgi/man.cgi?em(4)

                  hw.em.rx_process_limit
                  hw.em.rxd
                  hw.em.txd
                  net.link.ifqmaxlen
                  https://calomel.org/freebsd_network_tuning.html
                  look under local.conf and just ignore that he uses an Intel nic which uses the igb driver instead of the em driver.

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jimbohello @bobbenheim
                    last edited by

                    @bobbenheim
                    i look at the link you send me
                    hw.em.eee_setting="0"
                    mean that energy is enabled
                    to be at full (no Energy Efficient Ethernet) always should it be disable =1
                    to force the nic to be at maximum !??

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      bobbenheim @Jimbohello
                      last edited by

                      @Jimbohello Didn't take notice of that, but you can give it a try and change it back to see if it makes a difference. But so far it seems that a lot of people have misunderstood that one if "1" is disable, i wouldn't know since i don't use the em driver and therefore haven't tested it.

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        Jimbohello @bobbenheim
                        last edited by

                        @bobbenheim
                        because i'm french
                        correct me if i'm wrong

                        https://www.freebsd.org/cgi/man.cgi?em(4)

                         hw.em.eee_setting
                             Disable or	enable Energy Efficient	Ethernet.  Default 1 (dis-
                             abled).
                        

                        so 1 = disabled
                        wright ??

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          bobbenheim @Jimbohello
                          last edited by

                          @Jimbohello yes i would interpret it that way

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            Jimbohello @bobbenheim
                            last edited by

                            @bobbenheim
                            What's up BOB !
                            /boot/loader.conf.local - final - best result ever !
                            if_em_load="YES"
                            cc_htcp_load="YES"
                            hw.em.eee_setting="0"
                            hw.em.rx_process_limit="-1"
                            hw.em.txd="2048"
                            hw.em.rxd="2048"
                            net.link.ifqmaxlen="4096"

                            4 computer downloading debian iso 4.4 gig
                            RTT never moved 0.6ms
                            RTTsd never moved 0.2ms
                            Lost 0.0 %

                            this is far the best config ever
                            limiter config Download
                            Codel
                            FQ_codel
                            queue lenght 100
                            ecn enable

                            limiter Queue Download
                            Mask / Destination Adresse /32
                            Codel

                            limiter config Upload
                            Codel
                            FQ_codel
                            queue lenght 100
                            ecn enable

                            limiter Queue Upload
                            Mask / Source Adresse /32
                            Codel

                            limiter on lan rules
                            in= upload-queue
                            out=download-queue

                            with all helps ! all people sharing knoledge ! everything's possible!
                            Thank you so muck

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