We investigate how operating-system virtual memory paging can reduce the memory footprint of large language model (LLM) inference without sacrificing correctness. The ChronosPaging module, implemented in Zig, couples a lightweight page table with a least-recently-used (LRU) replacement policy and a balanced search structure for mapping virtual pages to physical frames. By exploiting the OS's demand paging semantics, the module persists page contents across evictions, enabling inference workloads to operate on a fraction of the model size that would otherwise be resident in RAM. Theoretical analysis shows that page lookups and updates run in O(log N) time, while the overall memory consumption is bounded by O(P), where P is the number of pages. Formal invariants guarantee that the page table remains height-balanced and key-ordered, ensuring deterministic eviction order.
Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.
Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.
Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.
@article{yonathan2026_2026_11_11_why_os_virtual_memory_paging_saved_,
title={Why OS Virtual Memory Paging Saved LLM Inference: The ChronosPaging advancement in Zig},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-11-11_why_os_virtual_memory_paging_saved_/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-11_why_os_virtual_memory_paging_saved_/2026-11-11_why_os_virtual_memory_paging_saved_.pdf}}
}