seniorT-SQL

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 pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More T-SQL interview questions

View all →