[RFC] CPU plugin: width-scaling committed-memory floor — path to model-size-independent serving footprint
Problem description
Serving large int4 models (e.g. gemma-4-26b-a4b, Qwen3.8-27B) with the CPU plugin, the inference process's committed (anonymous, non-reclaimable) memory scales with model width, even when every large allocation is served from file-backed mappings via an allocator interposer.
Measured (Linux, OV GenAI 2026.5 line, CPU plugin, gemma-4-26b-a4b-int4, single request settled):
- Stock process: ~1100 MB
RssAnon - With a
malloc+mmapinterposer file-backing every allocation ≥256 KB and every large anonymous mapping:RssAnondrops to ~172 MB — but a 1.5B model under the identical setup floors at ~81 MB - The remaining ~90 MB is width-scaling engine-internal state: per-layer runtime objects, scratch descriptors and small bookkeeping below any practical allocator threshold (smaps: hundreds of sub-256 KB anonymous mappings that grow with layer count / hidden width)
Why it matters: committed memory is what OOM-kills under a cgroup MemoryMax — it is the binding constraint for model density per node (N co-resident models per GB). A floor that grows with model size caps fleet packing density, the exact scenario where reclaimable-weight serving is most valuable.
Feature request
A documented path (plugin property or build config) that moves or shrinks the width-scaling per-layer runtime state — e.g. pooling the small per-layer bookkeeping into a few large, mmap-able arenas — so the non-reclaimable floor approaches model-size independence.
Environment
- OpenVINO 2026.5 (lib 2650 line), CPU plugin, Ubuntu 24.04, Xeon-class 16C
- Measured with an LD_PRELOAD interposer (malloc/mmap →
O_TMPFILEMAP_SHARED mappings), cgroup v2MemoryMaxpressure testing - Repro happy to share: the measurement harness and per-bucket smaps breakdown
Source: openvinotoolkit/openvino