arXiv(opens in a new tab)cs.OSAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.12103

Who Should Own the Expert Cache? Kernel-Managed Tiering for Trillion-Parameter MoE Inference

Yuan Si, Yufeng Lin, Daming Li, Jialu Zhang

Abstract.

Mixture-of-experts models whose expert pools exceed DRAM capacity require a weight-residency tier. Existing systems manage it in user space with expert-granular placement, frequency-based admission, and explicit pinning. We evaluate whether the operating system page cache can instead serve as the expert tier, using router traces from three MoE models with 128 to 896 experts per layer; the trillion-parameter production model’s traces are replayed natively against its full 1.45 TB expert pool on GH200 hardware. Capacity is enforced by three independent mechanisms.

Iteration time varies smoothly with cache size (run-to-run spread ≤4%\leq 4\%), and device traffic follows the same trend. Under severe pressure the outcome depends on reclaim: device traffic rises above miss demand only when MGLRU, the tested kernels’ default, is combined with balloon-style, mostly mlocked memory, a result reproduced on two machines; cgroup limits and mem= boots show no such behavior, so balloon-based studies can overstate low-capacity device traffic by about 2×2\times. At equal enforced memory, kernel recency serves essentially the same demand as an oracle static-frequency policy computed from the replay trace. In the pread-based replay the oracle-pinned arena stays 1.09–1.11×\times faster—a gap that is the cost of the page-cache hit and reclaim path—but its static table degrades under domain shift while recency remains stable. At 64.7% measured recall, router lookahead changes median time by 0.3% when delivered as kernel readahead advice; perfect one-layer advice gains 5.0% through the same interface and nothing through blocking reads. End-to-end at ample capacity, enabling page-cache admission speeds steady decode by 1.09–1.10×\times in a production CUDA engine with token-identical outputs. These measurements favor kernel-managed eviction, with model knowledge applied to admission and predictive advice.

1. Introduction

A trillion-parameter mixture-of-experts model routes every token through a small, input-dependent subset of its weights. In the production model studied here, an accepted token requires on average 1585 expert reads of 17.55 MB each, or 27.8 GB drawn from a 1.45 TB pool. No single node holds that pool in DRAM, so serving systems in this regime require a weight-residency tier. Existing MoE serving systems typically manage expert residency in user space using activation statistics, explicit pinning, prefetching, and CPU/GPU or storage offload (Xue et al., 2025; Rajbhandari et al., 2022; Eliseev and Mazur, 2023; Du et al., 2024; Hwang et al., 2024; Kamahori et al., 2025). The production engine instrumented in this study bypasses the page cache entirely (§2).

We evaluate an alternative design: map the expert pool, read it through the zero-copy path of a companion study (Si et al., 2026), and let the kernel page cache manage host-memory residency. We capture router traces from three MoE models spanning 128 to 896 experts per layer. The production model’s traces are replayed natively against the full 1.45 TB pool on a GH200 node; the other two models drive the fair-window policy simulations of §3, and Qwen3-30B-A3B is additionally replayed on Darwin (§4). The capacity sweep uses three randomized runs per point, and the equal-memory comparison two interleaved repetitions; every replay campaign uses block-layer I/O measurement and capacity control through a balloon, a cgroup wall, or a physical mem= boot. When reclaim policy is held fixed, at least two capacity mechanisms give consistent results for the capacity sweep of §4. The equal-memory and prefetch experiments (§6, §7) use the cgroup wall, and §5 analyzes the one configuration in which the mechanisms disagree. The static-frequency baseline is given oracle access to the trace being replayed, which makes the comparison favorable to that policy.

  • Capacity is a smooth, measurable parameter. Iteration time varies smoothly with cache size (run-to-run spread ≤\leq4%), and measured device traffic follows the same monotone trend. A demand model without fitted bandwidth constants compares simulated misses with block-layer device counters and identifies re-read amplification at each capacity (§4).
  • Low-capacity amplification depends on reclaim configuration. Low-capacity amplification requires both MGLRU and a balloon-style host with a high fraction of mlocked memory. It appears in the balloon at 81% locked memory (C=64C{=}64 GB) and not at 74% (C≈93C{\approx}93 GB); the non-balloon cells—the cgroup wall at C=64C{=}64 GB and the physical mem= boot at ≈93{\approx}93 GB—show no amplification. The result is reproduced on two machines and shows that balloon-based sizing experiments can overstate low-capacity device traffic by approximately 2×2\times (§5).
  • Recency is effective at host-tier capacities. Under identical evaluation windows, LRU matches or exceeds the same-domain oracle static-frequency table from B=32B{=}32 experts per layer upward, which covers every host-memory budget evaluated here. At trillion scale it reaches approximately 70% of Belady’s optimum. At the smallest simulated budget (B=8B{=}8), frequency performs better because LRU cannot retain the immediate reuse set. Under domain shift, the static table falls to 21–45% while LRU remains at 70–71%; global and per-layer allocation differ by at most 2.7 pp (§3, §6).
  • Pinned ownership retains a bounded mechanism advantage. Under an enforced equal-memory limit with verified mlock state and warm pages charged to the same budget, the oracle-pinned arena is 1.09–1.11×\times faster than the page cache in the pread-based replay, with nearly identical device traffic. The device counters rule out byte selection as the cause; the residual cost lies in the page-cache hit and reclaim path (§6).
  • Delivery semantics limit the value of prediction. The router predictor’s recorded plan, replayed at 64.7% measured recall, changes median time by 0.3% when delivered through fadvise, and yields no measurable benefit through synchronous prefetch. Perfect one-layer advice gains 5.0% through the same advisory interface and nothing through blocking reads. Belady bounds the remaining miss-reduction potential at roughly one third of the misses LRU still incurs (§7).
  • Measured constants give the placement rules. Admission follows from the miss already incurred, and the promotion threshold from measured bandwidths, with no fitted parameters. In a production engine at ample capacity, enabling page-cache admission improves steady decode by 1.09–1.10×\times with token-identical outputs (§8, §9).

References (28)