Unverified50% confidenceFactExact time
Peak RSS includes weights, KV cache, inference framework runtime overhead, memory allocator fragmentation and temporary buffers; whereas "weights only" refers to the tensor size after the model file is loaded, and the gap between the two can reach 20%–50%.
1
Sources
50%
Confidence
Long-term
Relevance
11/22/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedPeak RSS is a metric of the physical memory a process actually occupies, and ru_maxrss records the maximum resident set size reached during the process's lifetime.75% similarVerifiedresource.getrusage(RUSAGE_SELF).ru_maxrss returns on Linux the peak resident memory of the current process since startup, in kilobytes; monitoring peak RSS is more effective at preventing OOM than monitoring the average.70% similarUnverifiedCalling gc.collect() after processing each asset prevents peak RSS from climbing continuously; otherwise the process may be killed by the kernel while processing the 40th file.67% similarUnverifiedMoving weights from RAM to SSD uses the memory mapping mechanism for on-demand paged loading; the cost is I/O latency on first load and a noticeable slowdown when memory is severely insufficient, while the benefit is lowering the runtime memory threshold from 'memory ≥ model size' to 'memory ≥ the working set of a single layer/single expert.'66% similarUnverifiedThe KV cache size of global attention layers is proportional to context length, whereas the cache size of bounded-state layers (such as SSMs or linear attention) is relatively fixed.66% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1195607API
curl https://kongchang.com/api/v1/knowledge/claims/1195607MCP
get_claim(id=1195607)