Removing a Decades-Old Bottleneck in SQL Server Free Space Tracking
An examination of the VLDB 2020 research paper on SQL Server space management reveals how eliminating an exclusive latch on Page Free Space pages drastically increased transaction throughput. By allowing lock-free concurrent updates, workloads saw up to a 5x speedup without any application code modifications. The feature is enabled by default in modern versions of SQL Server and Azure SQL.
What changed From the source
SQL Server manages permanent tables, temp tables, and indexes inside 8 KB pages. When pages fill up, the engine requests fresh pages using Page Free Space (PFS) pages, which are bookkeeping sheets tracking space across roughly 64 MB blocks. Historically, only one thread could access a PFS sheet at a time using an exclusive latch.
The VLDB 2020 paper titled Concurrent Updates to Pages with Fixed-Size Rows Using Lock-Free Algorithms, authored by Raghavendra Thallam Kodandaramaih, Hanuma Kodavalla, and Girish Mittur Venkataramanappa from Microsoft, details a lock-free update mechanism. Because sessions already hold exclusive control of the specific page described by their line on the sheet, the engine now allows multiple sessions to update their respective lines concurrently using indivisible processor instructions.
To maintain compatibility, any legacy code requesting the old behavior automatically receives it, while new operations benefit from lock-free execution. The optimization introduces an overhead of approximately 156 KB of memory for a 100 GB database and is active by default in SQL Server 2019 and later, as well as in Azure SQL and Fabric SQL. Later, SQL Server 2022 applied similar concurrency improvements to GAM and SGAM pages.
- A transaction processing benchmark on a 40-core machine increased throughput from 475,423 to 787,100 while driving CPU utilization from 45.3% to 98.5%.
- A 400-session temp-table creation workload on an 8-socket, 6 TB machine dropped execution time from 11.5 minutes to 5 minutes while raising CPU usage from 1% to 83%.
- A real customer workload improved from 350 to 1,035 requests per second, with PAGELATCH_UP completely disappearing from top waits.
- Older tuning guidelines, such as specific configurations and trace flags for allocation contention, have been rendered obsolete by these engine-level changes.
At a glance · SQL Server & Data
Why it matters Analysis
Database workloads frequently experience low CPU utilization not because hardware is underpowered, but because threads are blocked waiting for shared resources. In this case, workloads suffered from PAGELATCH_UP contention due to a design rule established decades ago. By replacing lock-based algorithms with lock-free updates on fixed-size row pages, the database engine unlocks hardware capabilities that were previously throttled by unnecessary serialization.
The research demonstrates that mature database platforms can still achieve dramatic performance improvements without requiring hardware upgrades or application rewrites. Furthermore, the approach of preserving backward compatibility for legacy code ensures that foundational engine updates can be adopted safely without breaking existing implementations.
- Eliminates severe allocation bottlenecks that historically caused high wait times despite low CPU consumption.
- Proves that deep architectural enhancements can be delivered transparently to existing workloads.
- Invalidates historical tuning runbooks, prompting database administrators to review legacy configuration advice.
Who should care Analysis
Database administrators, system architects, and developers managing high-concurrency applications on SQL Server or Azure SQL will benefit from understanding these engine updates. Teams troubleshooting performance issues characterized by high PAGELATCH_UP wait statistics should recognize that newer engine versions resolve these contention points automatically.
Organizations carrying over older maintenance scripts or tuning guides from legacy versions like SQL Server 2016 or earlier should re-evaluate their approaches, as historical workarounds for tempdb and allocation contention are largely unnecessary in current releases.
- DBAs investigating intermittent throttling or idle CPUs during heavy insert or temp-table workloads.
- Engineering teams auditing legacy runbooks and deployment scripts for outdated allocation workarounds.
- Developers designing high-throughput ingestion services that rely heavily on temporary tables.
Sources and further reading
- Original post on Azure SQL Dev Corner (original source)
Original: “Your server wasn’t slow, it was waiting. We fixed it with this paper”, Azure SQL Dev Corner, published 30 Nov 2026, retrieved 1 Dec 2026. This article was drafted with AI assistance from the official source and passed automated fact and quality checks. Spotted a mistake? See our corrections policy.