What is SQL Server internal memory pressure detection and eviction policy?
Updated May 17, 2026
Short answer
SQL Server detects memory pressure and evicts cache entries using LRU-like and cost-based algorithms.
Deep explanation
SQL Server monitors internal and external memory pressure signals. Under pressure, it reduces buffer pool usage, evicts least recently used pages, and trims caches like plan cache and columnstore segments. Eviction is not purely LRU; it also considers page hotness and cost. Severe pressure may lead to query memory grants being reduced, increasing spills.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro