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

    Performance on Hyper-V broken by Microsoft Dec 13 patches?

    Scheduled Pinned Locked Moved General pfSense Questions
    19 Posts 3 Posters 1.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.
    • K
      ksdehoff
      last edited by

      You guys are terrific thanks. I've disabled software rsc on the server 2022 hyperv 2.7 development build and my throughput is back where it should be! As noted in the article I used set-vmswitch -enablesoftwarersc $false to get this done. Much appreciated!

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @ksdehoff
        last edited by Bob.Dig

        @ksdehoff So you are talking about the command in windows, but this shouldn't be needed anymore if it is set in FreeBSD, as I understand it. Also it isn't persistent.

        @stephenw10 Is this sysctl. in the pfSense GUI in System-Advanced-System Tunables presant? I don't see it in 22.05.

        K stephenw10S 2 Replies Last reply Reply Quote 0
        • K
          ksdehoff @Bob.Dig
          last edited by

          @bob-dig yes this disables software receive coalesce segment coalescing - a new feature that was added in 2019. Not sure why the recent patch changed pfsense' behavior but this setting disables rsc on the virtual switch. It worked well for me - I set it only on my lan virtual switch so the wan virtual switch still has it enabled.

          K 1 Reply Last reply Reply Quote 0
          • K
            ksdehoff @ksdehoff
            last edited by

            @bob-dig Well I've hit another oddity. I used the command set-vmswitch -name * -enablesoftwarersc $false. Then I tested my throughput at speedtest.xfinity.com and got a very good number.

            Then an hour later I noticed slowness, ran speedtest again, was getting terrible throughput (1 mbit/sec) and so reran the disable rsc command - and throughput is back up. The pfsense vm has been up the entire time - so is something in the os toggling software rsc? Maybe thats what happened in this latest patch.

            Bob.DigB 1 Reply Last reply Reply Quote 0
            • Bob.DigB
              Bob.Dig LAYER 8 @ksdehoff
              last edited by

              @ksdehoff I have no problems here on latest Server 2022 with all regular updates, it is a FreeBSD problem in a Hyper-V vm, not a Windows or Hyper-V problem.

              K 1 Reply Last reply Reply Quote 0
              • K
                ksdehoff @Bob.Dig
                last edited by

                @bob-dig I wonder if it has to do with my lan being a server embedded team, a dual intel x710sfp network card.

                Bob.DigB 1 Reply Last reply Reply Quote 0
                • Bob.DigB
                  Bob.Dig LAYER 8 @ksdehoff
                  last edited by

                  @ksdehoff Try what Stephen has said, it should solve the problem but don't ask me how to do it. 😁

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    ksdehoff @Bob.Dig
                    last edited by ksdehoff

                    @bob-dig ok I get it - I had disabled rsc at the hyperv level but stephen is talking about doing it just for the freebsd VM. I've made the change and it looks good but time will tell

                    The freebsd command is sysctl dev.hn.1.rsc_switch=0/1 - (hn1 is my wan in this case) and 1 appears to disable rsc handling in the vm (the boot value is 0).

                    In more weirdness rsc_switch is 0 when pfsense boots but I get poor performance. Changing it to 1 does nothing, but changing it BACK to 0 clears the issue. Very bizarre behavior. Also, the rsc errors (sysctl -a | grep rsc) accumulate only on the wan interface, not the lan side

                    Bob.DigB 1 Reply Last reply Reply Quote 1
                    • Bob.DigB
                      Bob.Dig LAYER 8 @ksdehoff
                      last edited by Bob.Dig

                      @ksdehoff I guess I have to try the beta shortly.
                      Edit: no Speed problems there:
                      23.01-BETA (amd64)
                      built on Sat Dec 17 14:33:51 UTC 2022
                      FreeBSD 14.0-CURRENT

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator @Bob.Dig
                        last edited by

                        @bob-dig said in Performance on Hyper-V broken by Microsoft Dec 13 patches?:

                        @stephenw10 Is this sysctl. in the pfSense GUI in System-Advanced-System Tunables presant? I don't see it in 22.05.

                        Not by default but you could add it.

                        It shouldn't be needed because the default values there should be to disable the RSC behaviour. It doesn't appear to be here for some reason.

                        Steve

                        1 Reply Last reply Reply Quote 1
                        • S SteveITS referenced this topic on
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.