Blog Post

SQL Server Support Blog
1 MIN READ

SQL 2016 - It Just Runs Faster: AlwaysOn Log Transport Reduced Context Switches

mssql-support's avatar
mssql-support
Iron Contributor
Jan 16, 2019
First published on MSDN on Apr 28, 2016

The AlwaysOn log transport uses a SQL Broker-like based design to send and receive messages between the primary and secondary replicas.    Studying the transport behavior revealed various improvement opportunities.



Many of you have read the various materials indicating that log transportation between the primary and secondary is commonly 1/3 that of file copy speed.   That is no longer the case.  A SQL Server 2016 AlwaysOn database can commonly maintain 90% or better transitional throughput rate directly comparing the same workload against a standalone database.



For example, SQL Server 2014 requires ~16, thread context switches to transport a log block.   SQL Server 2016 can accomplish the same transport task in 8 context switches.    This can lead to a 4x to 5x improvement in log block transport throughput.



'It Just Runs Faster' - SQL Server 2016 improves the log block transportation throughput scaling AlwaysOn by 4x.



Bob Dorr - Principal SQL Server Software Engineer


Nitin Verma - Senior SQL Server Software Engineer

Updated Jan 16, 2019
Version 2.0

1 Comment

  • Liliek_Rusdiana's avatar
    Liliek_Rusdiana
    Copper Contributor

    Hi mssql-support , thanks for information, then how to measure speed network transfer in out enviromnet? we  have DAG always on sql server and need to measure speet data transfer between DC and DR DAG  thanks