TECHNOLOGY

gKSM: identical pages, copy-on-write and serving density

In this article
THE QUICK TAKE

gKSM shares byte-identical backing on one GPU; correctness requires copy-on-write ownership, and density gains differ from a single-instance speedup.

gKSM studies GPU-memory deduplication for colocated language-model serving instances. It seeks to replace identical physical pages with shared backing while preserving each instance’s virtual addresses. The benefit is about duplicate resident state; it does not come from reducing model precision or combining the memory of unrelated GPUs.

Match actual bytes before sharing a page

The research paper combines GPU-assisted hashing with CPU-side metadata management. A matching hash identifies a candidate duplicate, after which exact content comparison is required before sharing. A fast non-cryptographic hash is therefore a lookup aid rather than the sole authorization for merging pages.

The model-loading path can identify duplicates before another physical GPU copy is populated. That differs from first loading every duplicate and recovering space later. However, the host-side retained data, hashing work and metadata still consume resources. The complete accounting includes those costs as well as the GPU memory released.

Distinguish shared backing from shared writable state

The proposal marks shared pages read-only and handles a write by creating private backing for the faulting instance. Its copy-on-write design spans a modified driver fault-reporting path and a user-space handler that copies and remaps pages.

The CUDA virtual-memory reference describes allocation handles, address mappings and access permissions. Those primitives support the building blocks, but do not independently implement gKSM’s complete fault handling and ownership protocol. Reading the API documentation is different from establishing that an unmodified installed driver provides the proposed system.

Preserve ownership through the first write

When an instance that owns a shared handle writes, the old backing must remain available to other sharers. The paper describes ownership transfer and private-copy creation rather than permitting an in-place change to the common page. Metadata synchronization is part of maintaining that relationship.

A useful correctness test therefore checks the values observed by every participant after writes, remapping and instance termination. Merely showing lower allocated memory does not establish correct copy-on-write behavior. The evaluated mechanism also does not, by itself, constitute a complete security or privacy assessment of a multi-tenant service.

Keep the single-GPU sharing boundary

The paper explicitly limits deduplication to instances colocated on the same GPU. Its reuse-aware scheduler tries to place compatible state where it can actually share backing. Similar instances spread across separate GPUs do not automatically gain pooled physical memory through this mechanism.

Placement also has to respect computation demand. Fitting more instances is useful only if the resulting workload can still meet its latency requirements. Deduplication does not add compute units, and identical model names do not prove byte-identical state after different loading, precision or adaptation choices.

Read density and latency experiments separately

The reported throughput experiment allows each policy to keep its maximum resident instance count. The latency comparison instead uses a fixed instance count. Those answer different questions: deployment density can raise aggregate request throughput without showing the same speedup for one unchanged instance.

The evaluation uses a specified accelerator, driver, weight format and request workload. We reviewed the design and setup without modifying drivers, merging memory pages or running inference. The reproducible-stack guide covers configuration records, while the document-split guide covers a separate data concern. gKSM is a concrete page-sharing proposal whose value depends on verified duplication, correct write isolation and useful performance at the resulting density.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles