Blog Post

SQL Server Blog
1 MIN READ

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

BobDorr's avatar
BobDorr
Icon for Microsoft rankMicrosoft
Mar 01, 2022
Moved from: bobsql.com

 

The AlwaysOn log transport uses a SQL Broker 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.

Published Mar 01, 2022
Version 1.0
No CommentsBe the first to comment