Skip to main content

Module memory

Module memory 

Source
Expand description

Unified memory management: the kernel page cache is the DB buffer pool.

UnifiedMemory holds a single UnifiedPageCache (from tpt-archon-bridge) and exposes it as both the kernel’s page cache and the database’s buffer pool. There is deliberately no second allocation: memory mapping a storage page and buffering it for the database are the same operation over the same bytes, gated by the same capability system.

A real Linux/Windows OS-level mmap read path now exists too (opt-in mmap feature, see [tpt_archon_bridge::page_cache::MmapPageSource]) — genuine shared virtual memory for reads, not just an in-process reference. Writes still go through the UnifiedPageCache/BufferPool path above; real mmap-backed writes and bare-metal work remain deferred (Risk 1 mitigation from spec.txt) — see TODO.md Phase 2b for the rationale.

Structs§

UnifiedMemory
The kernel’s memory manager, wrapping a page cache.