Skip to content
Opensource internals
  • Posts

Cache

The Lock-Free Eviction Queue: Weak Pointers and Sequence Numbers

Oct 24, 2026 15 min read Jay Hubbert

The eviction queue is a lock-free MPMC queue of weak_ptr plus a monotonic sequence number; dead nodes are detected and purged in bulk every 4096 inserts.

DuckdbBuffer managerMemoryCachePerformance

Read more →

Pinning Is Ownership: DuckDB's Buffer Handle Is a shared_ptr

Oct 24, 2026 13 min read Jay Hubbert

Pinning a block in DuckDB is just holding a shared_ptr: eviction is impossible under a live handle, and the readers counter is only an eviction hint.

DuckdbBuffer managerMemoryCacheInternals

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·