locked
Is the network performance of .Net Core differs much between Windows Server and Linux? RRS feed

  • Question

  • User-2104422214 posted

    Hello,

    I'am trying to find some benchmarks comparing Windows Server with Linux regarding network performance(maximum number of req/sec, Mpps figures, etc).

    https://www.techempower.com/benchmarks/#section=data-r19&hw=ph&test=plaintext

    The above link features only Linux as a host - are results on Windows Server comparable? Where could I find them? Does the current Windows Server network stack is a good as Linux? Could it scale to millions req/sec like Linux from the above link?

    Thank you

    Saturday, July 25, 2020 3:13 PM

Answers

  • User-474980206 posted

    Windows should remain a first class support for asp.net development or hosting  for the foreseeable future. Microsoft’s current push is to host in azure rather than locally.  A second focus is container and server less support. This removes the O/S from the equation.

    To improve network and streaming support, .net core created their own low level buffering support rather than use RIO (which is O/S dependent).  See

    https://devblogs.microsoft.com/dotnet/system-io-pipelines-high-performance-io-in-net/
     


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 26, 2020 4:43 PM

All replies

  • User-474980206 posted

    Here is a comparison on azure

       https://robertoprevato.github.io/Comparing-Linux-hosted-to-Windows-hosted-ASP-NET-Core-applications-in-Azure-Application-Service-Plan/

    But this is only part of the story. Your performance will depend on what other features your code is using. Also these tests are for trivial sites. But current versions of asp.net core are well tuned for linux, because it’s the most common server for benchmarks.

    Saturday, July 25, 2020 4:23 PM
  • User-2104422214 posted

    Thanks for the link.

    Here is another one: https://www.ageofascent.com/2016/02/18/asp-net-core-exeeds-1-15-million-requests-12-6-gbps/

    I'am probably already some sort of vestige but I'am enjoying programming and deploying on Windows more than on Linux(more convenient for my exp). The problem is nowadays all focus is so shifted towards Linux that I'am starting to feel I'am in a sort of ghost town with my OS preferences. :)

    If there are more links/data/personal exp. comparing Linux vs Windows network performance please share, thank you.

    Also, anyone knows - does ASP NET [Core] on Windows is taking full advantage of RIO?

    Saturday, July 25, 2020 4:56 PM
  • User-821857111 posted

    Also, anyone knows - does ASP NET [Core] on Windows is taking full advantage of RIO?
    ASP.NET Core won't do anything that is OS specific. 

    Saturday, July 25, 2020 7:42 PM
  • User-2104422214 posted

    dmitry.sychov

    Also, anyone knows - does ASP NET [Core] on Windows is taking full advantage of RIO?

    ASP.NET Core won't do anything that is OS specific. 


    You mean it uses something like select() to query for sockets state? :D

    Saturday, July 25, 2020 8:04 PM
  • User-474980206 posted

    Windows should remain a first class support for asp.net development or hosting  for the foreseeable future. Microsoft’s current push is to host in azure rather than locally.  A second focus is container and server less support. This removes the O/S from the equation.

    To improve network and streaming support, .net core created their own low level buffering support rather than use RIO (which is O/S dependent).  See

    https://devblogs.microsoft.com/dotnet/system-io-pipelines-high-performance-io-in-net/
     


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 26, 2020 4:43 PM