AI

A GPU's memory is split before anyone knows what the traffic will look like

New language models keep three kinds of memory for every conversation. The SGLang serving engine fixes how much room each kind gets at startup, before any traffic arrives. A post from its team and a preprint show what that guess costs and how to avoid it.

For agentsView .mdOpen in ClaudeOpen in ChatGPT
For agentsView .mdOpen in ClaudeOpen in ChatGPT
Contents
Requests a server kept running at once: 618 with separate memory pools, about 1,000 with one poolTwo bars for GPT-OSS-20B on one H200 in the SGLang team's own test: 618 requests running at once with separate memory pools and about 1,000 with one shared pool.Requests a server could keep running at once (GPT-OSS-20B, one H200, the SGLang team's own test)Separate pools618One poolabout 1,000
Requests a server kept running at once: 618 with separate memory pools, about 1,000 with one poolTwo bars for GPT-OSS-20B on one H200 in the SGLang team's own test: 618 requests running at once with separate memory pools and about 1,000 with one shared pool.Requests a server could keep running at once(GPT-OSS-20B, one H200, the SGLang team's own test)Separate pools618One poolabout 1,000
In the SGLang team's own test, one shared pool kept about 1,000 requests running at once where separate pools kept 618.Source: SGLang team, "Unified Memory in SGLang: One Arena for Every Token Lifetime", LMSYS blog, 11 November 2026 (their own test, one H200, two runs averaged).
Data
Requests running at once: separate pools against one pool
ModelSeparate poolsOne pool
GPT-OSS-20B618about 1,000
Qwen3.5-4B2232

In plain words

A car park with a fixed row of spaces for lorries and another row for cars works until one day every visitor arrives in a lorry. The car spaces sit empty while lorries queue outside, because a car space can never hold a lorry. New language models keep three kinds of memory on the server, and the SGLang serving engine, by default, divides the GPU’s memory between the three rows before a single request arrives. Its team measured what a wrong division costs, and reports that one shared pool removes the guess.

A server answering a large language model has to remember the conversation while it writes the next word. The newer models mix remembering mechanisms in one network and keep three kinds of memory, so the server must decide how much room each kind gets. SGLang’s default design makes that decision once, at startup, before anyone knows what the traffic will look like. The team that builds this open-source serving engine put numbers on what a wrong decision costs, and their fix is to stop dividing at all. I read the post and the preprint discussed below; every number here comes from one of those two sources.

Three kinds of memory, one chip

A hybrid model weaves together layers that remember in different ways. Three kinds of state result, and the SGLang post describes them like this:

  • Full-attention memory, usually called the KV cache: what the model keeps of the whole conversation, so that each new word can look back at every earlier one. Picture a filing cabinet that gains a folder for every page of a document. Its size grows with the length of the conversation.
  • Sliding-window memory: a copy of only the recent tail of the conversation, kept for the layers that only ever look backwards a short distance. Like a dashcam that keeps the last few minutes of video and forgets the rest. Its size is bounded.
  • Recurrent state: a fixed-size running summary for each conversation being answered right now, used by the model’s linear-attention layers. Like a notepad with a fixed number of lines per customer at a desk. Its size per conversation stays fixed; what grows it is the number of conversations at once.

Models that mix these mechanisms are common now. The SGLang post names GPT-OSS and Muse Spark as mixing full and sliding-window attention, Qwen3.5 as combining full attention with linear-attention layers, and Kimi K3 as pairing a linear-attention scheme called KDA with a compressed attention called MLA.

The three kinds do not grow together, which is the whole problem. One long document loads up the filing cabinet and barely touches the notepads. A thousand quick one-line questions load up the dashcams and notepads and leave most drawers empty. The pressure can even shift inside one request: the notepad is claimed the moment the request starts, while the filing cabinet keeps filling as the answer is written.

The guess, with toy numbers

The three kinds of memory a hybrid model keeps for a conversationThree boxes: full-attention memory keeps every earlier token and grows with length; sliding-window memory keeps only a recent stretch; the running summary has a fixed size per request and grows with the number of requests.Full-attention memoryEvery earlier token of theconversation.Memory grows withThe length of theconversation, in every suchlayer.Sliding-window memoryOnly the most recent stretchof the conversation.Memory grows withThe length, but only up to thewindow.Running summaryA fixed-size summary ofeverything so far, one perrequest.Memory grows withHow many requests arerunning, not how long theyare.
The three kinds of memory a hybrid model keeps for a conversationThree boxes: full-attention memory keeps every earlier token and grows with length; sliding-window memory keeps only a recent stretch; the running summary has a fixed size per request and grows with the number of requests.Full-attention memoryEvery earlier token of the conversation.Memory grows withThe length of the conversation, in every such layer.Sliding-window memoryOnly the most recent stretch of the conversation.Memory grows withThe length, but only up to the window.Running summaryA fixed-size summary of everything so far, one perrequest.Memory grows withHow many requests are running, not how long they are.
What each kind of memory keeps, and what makes its demand grow.Source: SGLang team, "Unified Memory in SGLang: One Arena for Every Token Lifetime", LMSYS blog, 11 November 2026 (their own test, one H200, two runs averaged).

SGLang’s default design gives each kind its own pool, a reserved region of the GPU’s memory, and fixes the sizes of the regions at startup through two ratio settings. Their own summary sentence: “The right ratio depends on traffic you do not know yet.”

What a wrong ratio does is easy to see with made-up numbers. Take a server with 100 units of memory, split 50/50 between a full-attention pool and a pool for the bounded kinds. The units are a toy, not a measurement; the point is only the shape of what happens.

TrafficFull-attention needsBounded needsUnder the fixed 50/50 splitUnder one shared pool
Long documents80 units10 units30 units of demand go unmet while 40 bounded units sit idle90 units used, 10 free
Many short chats20 units70 units20 units of demand go unmet while 30 full-attention units sit idle90 units used, 10 free

In both rows the machine holds enough total memory and still cannot serve the traffic it actually received. The SGLang post puts it as: “The free bytes exist, but the other pool is not allowed to use them.” You could profile your traffic and tune the ratio, which is what the current design asks of you. The moment the traffic changes, as it does when a demo day turns into production or one long-document customer signs up, memory is stranded behind the earlier guess.

Their alternative is one arena: a single region of GPU memory that the full-attention side grows from the top down and the bounded-state side grows from the bottom up, with the free bytes sitting in the middle, belonging to nobody until somebody needs them. The ratio settings survive only as boot-time sizing targets, not walls at run time.

The same 100 units of memory, split in half in advance, or kept as one pool.

A toy pool of 100 units under two kinds of trafficTwo bars for each kind of traffic: memory split 50/50 in advance, and one shared pool. Under long documents the fixed split turns away 30 units of demand while 40 units sit idle; under many short chats it turns away 20 while 30 sit idle; the shared pool turns none away.Full-attention units in useWindow and summary units in useIdleDemand: 80 full-attention units, 10 window and summary units.Fixed 50/50 split40 idle, 30 turned awayOne shared pool10 idle, 0 turned awayDemand: 20 full-attention units, 70 window and summary units.Fixed 50/50 split30 idle, 20 turned awayOne shared pool10 idle, 0 turned away
A toy pool of 100 units under two kinds of trafficTwo bars for each kind of traffic: memory split 50/50 in advance, and one shared pool. Under long documents the fixed split turns away 30 units of demand while 40 units sit idle; under many short chats it turns away 20 while 30 sit idle; the shared pool turns none away.Full-attention units in useWindow and summary units in useIdleDemand: 80 full-attention units, 10 window and summaryunits.Fixed 50/50 split40 idle, 30 turned awayOne shared pool10 idle, 0 turned awayDemand: 20 full-attention units, 70 window and summaryunits.Fixed 50/50 split30 idle, 20 turned awayOne shared pool10 idle, 0 turned away
An illustration with made-up units: the same memory, split in advance or kept as one pool, under two kinds of traffic.Source: The essay's own illustration: made-up units, not a measurement.
Data
Toy pool of 100 units: what fits, what sits idle, what is turned away
TrafficMemory layoutFull-attention units usedWindow and summary units usedIdle unitsUnits of demand turned away
Long documentsFixed 50/50 split50104030
Long documentsOne shared pool8010100
Many short chatsFixed 50/50 split20503020
Many short chatsOne shared pool2070100

What the SGLang team measured

One sentence of housekeeping first: the feature is called “unified memory”, and the name is unfortunate, because it has nothing to do with the CPU and the GPU sharing one physical memory, which is a different idea and a different hardware feature. This is one pool inside the GPU, decided in software.

The post reports its results from a single server with one H200 GPU, running two small models, averaged over two runs each. Read the numbers with that in mind.

The fair starting point: at default settings, where the fixed split was already fine, switching to the shared pool cost nothing. On Qwen3.5-4B with 1,024-token inputs and 256-token outputs at concurrency 64, the shared pool served 5,830 output tokens per second against 5,880 with separate pools, and both scored 0.875 on the GSM8K maths test.

Requests the server kept running at once, with separate pools and with one pool.

Requests running at once, separate pools against one pool, for two modelsFor GPT-OSS-20B: 618 requests with separate pools and about 1,000 with one pool. For Qwen3.5-4B: 22 and 32. Both from the SGLang team's own tests.GPT-OSS-20B: 512 tokens in, 1,536 out, up to 1,024 requests at a timeSeparate pools618One poolabout 1,00014% higher throughput. Time to first token 43 s with separate pools, 6 s with one pool.Qwen3.5-4B: 16K tokens in, 4,096 out, concurrency 64Separate pools22One pool3226% faster with one pool.
Requests running at once, separate pools against one pool, for two modelsFor GPT-OSS-20B: 618 requests with separate pools and about 1,000 with one pool. For Qwen3.5-4B: 22 and 32. Both from the SGLang team's own tests.GPT-OSS-20B: 512 tokens in, 1,536 out, up to 1,024requests at a timeSeparate pools618One poolabout 1,00014% higher throughput. Time to first token 43 s withseparate pools, 6 s with one pool.Qwen3.5-4B: 16K tokens in, 4,096 out, concurrency 64Separate pools22One pool3226% faster with one pool.
Choose a model to see how many requests the server kept running at once with each memory layout. Bars start at zero; the two models use different scales.Source: SGLang team, "Unified Memory in SGLang: One Arena for Every Token Lifetime", LMSYS blog, 11 November 2026 (their own test, one H200, two runs averaged).
Data
Requests running at once: separate pools against one pool
ModelSeparate poolsOne pool
GPT-OSS-20B618about 1,000
Qwen3.5-4B2232

The interesting rows are the ones where the guess was wrong. On GPT-OSS-20B, a workload of 512-token inputs and 1,536-token outputs at 1,024 concurrent requests, setting one of the two ratios to 0.1 cut throughput 12% below the default split, 7,910 tokens per second against 9,030. On Qwen3.5-4B, setting the other ratio to 0.3 capped the number of running requests at 24 against 51 under the default, and cost 14% of throughput.

And with no ratio tuned at all, the shared pool simply fits more work than the default split. On the same GPT-OSS-20B workload, the shared pool ran about 1,000 requests at once where the separate pools managed 618, about 1.6 times as many (I worked this out as 1,000 divided by 618), with 14% higher throughput. The difference a waiting user feels is in when the answer starts: 43 seconds to the first token with separate pools, 6 seconds with the shared pool. On Qwen3.5-4B with 16K-token inputs and 4,096-token outputs at concurrency 64, the shared pool handled 32 requests against 22, and was 26% faster, a figure the post gives without saying how it is measured.

The team also counts retractions, requests the server pulls back and has to redo when memory runs short. In a long-output test on Qwen3.5-4B, 16,384-token outputs at concurrency 51, the shared pool retracted about 233 requests per 1,000 completed, against 294 for the default pools. The pools with the ratio set to 0.3 retracted none, but only because they limited the server to 24 running requests, and they were 20% slower, 3,620 tokens per second against 4,530.

How wrong can the guess be? A toy check of my own

The SGLang numbers are the team’s own, so I ran a small check to see the shape of the effect rather than its size on a real engine. It is a toy and not a model of any serving engine. A pool holds 100 units. A long document needs 8 full-attention units and 1 bounded unit; a short chat needs 1 and 7. Forty requests arrive in random order, so demand always exceeds the pool, and a request is admitted only if both kinds fit. A fixed layout reserves some units for the full-attention side at startup. I tuned that number once, for traffic that is half long documents (the search chose 40 units, leaving 60 for the bounded side), then changed the traffic. The figures are averages over 4,000 random arrival orders per mix, and a longer run of 200,000 orders gave the same picture.

Share of long documentsRequests admitted, fixed splitRequests admitted, one shared pool
0%8.012.0
50%11.811.3
90%6.511.0
100%5.011.0

Two things stand out. A split tuned for the right traffic did not lose: at the half-and-half mix it admitted slightly more than the shared pool, 11.8 against 11.3, a small lead that held in the longer run. My reading, which the toy does not prove, is that in a shared pool whichever request arrives first can crowd out the other kind, while a split works like a quota. And once the traffic moved away from the guess the fixed layout fell behind fast, in both directions: with no long documents at all it admitted 8.0 requests against 12.0, and at 90% long documents 6.5 against 11.0, about 59% as many (I worked this out as 6.5 divided by 11.0). At 100% it admitted less than half as many. So the guess costs little when it is right and a lot when traffic drifts, which fits what the SGLang post reports. It does not test anything on a real engine, and it ignores a real cost of the shared pool: moving live data around to keep the free space in one piece.

What the team says about their own numbers

This is the SGLang team writing about the SGLang team’s own feature, and I have not seen an independent test of it. One related fact from outside the team: the vLLM project’s design document for hybrid models says it uses “a single memory pool for all layer types”, split into blocks of one page size, and warns that the feature is early. That shows the one-pool idea is not unique to SGLang, but the document reports no measurements. The evidence is one machine type, two models of 4B and 20B parameters, and two runs per number. The post itself calls the feature experimental and says it targets hybrid models for now; models with full attention only, models that pair compressed attention (MLA) with sliding-window layers, and DeepSeek-V4 are not supported yet, several scheduling and caching options are switched off or refused at startup under the shared pool, and one capacity setting still reserves request slots the old way. Treat every figure as the team’s own report, on their hardware, for their feature.

The checkpoints that prefix reuse needs

There is a second memory bill that hybrid models pay and the post above does not cover. Reusing a shared start of a prompt, the system prompt that every conversation begins with, works by keeping saved snapshots of the model’s memory for that start, so a new conversation can jump in partway. The preprint says such reuse needs state checkpoints alongside the full-attention memory. The recurrent state is awkward because it is updated in place, like overwriting the notepad, so a checkpoint has to be saved deliberately, and keeping full checkpoints squeezes memory and leads to more evictions and repeated preparation of the same prompt.

A preprint on arXiv, “DASC: Decay-Aware State Compression for Hybrid Linear-Attention Serving” (Yanqi Yu, Pingwei Sun, Jianchao Tan, Tao Zhang, Yuchen Xie, Xunliang Cai, Yao Liu), argues that full snapshots are wasteful. Different parts of the recurrent state, they find, stay useful for very different lengths of time. DASC derives those horizons from the model’s own weights, keeps the long-horizon units, packs the snapshot at variable size, and on reuse either zeroes the dropped units or refreshes them from recent tokens at the cost of extra compute.

On Kimi-Linear, a hybrid model, their headline numbers: the recurrent-state checkpoints compress 2.63 times; under a fixed checkpoint memory budget, average time to first token falls 42.6% and input throughput rises 68.4%. Compressing harder costs accuracy, and refreshing the dropped units from recent tokens recovers much of the lost accuracy while paying for it in recomputation. The abstract says a Qwen model with the same kind of layers “exhibits a similar quality-efficiency trend”, without giving numbers. This is a preprint, version 2 dated 9 October 2026, not peer reviewed.

What this does not show, and what to take

Neither source proves that a shared pool is universally better, and my toy check found a tuned split slightly ahead when the traffic matched the guess. The SGLang measurements come from one GPU type, two small models and two runs, on their own feature, at their own traffic shapes; the DASC numbers come from one model in a preprint that no reviewer has examined. Neither source tested large models, mixed production traffic, or an engine other than the one writing the post.

The transferable part needs no product knowledge. The right ratio between memory pools depends on traffic that nobody knows in advance, so a design that asks you to guess it will eventually strand free memory in the wrong pool. If you run a serving engine, compare the split and shared configurations on your own traffic rather than trusting either default, and watch the number of requests running at once rather than tokens per second alone, because the running count is where a wrong split shows up first.

Sources

  • SGLang team (LMSYS blog), “Unified Memory in SGLang: One Arena for Every Token Lifetime”, lmsys.org blog, 11 November 2026. Accessed 15 November 2026. https://lmsys.org/blog/2026-11-11-unified-memory
  • Yanqi Yu, Pingwei Sun, Jianchao Tan, Tao Zhang, Yuchen Xie, Xunliang Cai, Yao Liu, “DASC: Decay-Aware State Compression for Hybrid Linear-Attention Serving”, arXiv preprint 2608.30386, version 2, 9 October 2026 (not peer reviewed). Accessed 15 November 2026. https://arxiv.org/abs/2608.30386
  • vLLM project, “Hybrid KV Cache Manager”, design document in the vLLM repository (written at an early commit, per its own warning). Accessed 15 November 2026. https://docs.vllm.ai/en/latest/design/hybrid_kv_cache_manager