Zero-Copy Weight Mapping Study: Warm mmap() Re-Open vs Cold NVMe Read Across 8B–27B GGUF Files
Measuring how operating-system virtual memory mapping avoids duplicate RAM allocation when switching between 8B and 27B local models on macOS.
I/O Scope: Cold-load timings reflect internal Apple Silicon SSD lanes or direct Thunderbolt 4/5 enclosures; slow USB-A thumb drives degrade load speed severely.
02 · Quantitative Metrology Table
Audited Baselines & Measurement Methodology
| Measured Dimension | Observed Value | Methodology & Verification Scope |
|---|---|---|
| Cold SSD Read (8.26 GB Swift) | ~1.4–2.5 Seconds (Internal NVMe) | Sequential Apple internal SSD read populated straight into shared pages. |
| Warm Page-Cache Re-Mount | < 150 ms Page Attach | Active read-only pages already resident in Unified Memory re-map cleanly. |
| 8-Stream Shared Weight RAM | 1x Read-Only Footprint | Multi-pane sessions share identical static weight pages without duplication. |
| External Thunderbolt NVMe | TB4 (~3 GB/s) / TB5 (~6 GB/s) | Keeps internal laptop SSD capacity clear for giant optional libraries. |
03 · Empirical Takeaways
Key Buyer & Systems Findings
Sharing read-only mapped weight pages prevents parallel workspace tabs from multiplying gigabytes of RAM.
Warm OS page-cache residency keeps rapid switching between Destiny Swift and specialized tools near-instantaneous.
External Thunderbolt NVMe model vaults integrate cleanly for users archiving large optional Q6/Q8 weights.
Connected Tools, Downloads & Guides
Cite reproducible Apple M4 Pro Unified Memory benchmark receipts in engineering repositories.
Related Workflow Playbooks, Industry Verticals & Glossary
mmap() Zero-Copy Load Time — Methodology & Reproduction
- Does opening two chat panes inside Destiny double the RAM used by the AI model?
- No—read-only model weights remain shared in memory while only independent per-pane KV conversation context grows.
- Can I keep extra GGUF model files on an external Thunderbolt SSD?
- Yes—see MAC-19 at /mac/thunderbolt-4-and-5-external-nvme-gguf-model-vault-setup.