Scenario
A memory guard paused the scheduler mid-start
RolesInference EngineeringAI Evaluation and Reliability
- Engine
- SGLang 0.5.22
- Model
- Qwen/Qwen3-30B-A3B-Instruct-2507
- Hardware
- one GB10 with unified memory, a desktop that other users share
Situation
A team gets time on a GB10 desktop that several people share, and starts an SGLang server for Qwen/Qwen3-30B-A3B-Instruct-2507. Three starts in one afternoon stall after the weights load. The server log stops, the scheduler process is alive but does nothing for a while, then the log continues as if nothing happened. Nobody sees an error.
That afternoon the on-call channel also gets pages from a kernel-log alert. Nine bursts of an NVIDIA driver line that says Out of memory arrive between 13:52 and 16:46, up to 13 lines in one minute. The team puts the two things together: the driver is faulty, and the server leaks memory until the driver fails. They ask to move the model to a smaller, dedicated card. The owner of the desktop asks you to review before anyone changes hardware.
Questions
- The scheduler stopped and later continued, and the server log shows no error. Which process stopped it, and on what rule?
- The guard saw one process grow by tens of GiB in five seconds. Which allocation is that likely to be, and how do you check it against a start whose log was kept?
- The three pauses report different growth. What can you conclude from the guard log alone, and what can you not?
- Nine bursts of the driver line fell on one day. What does the manual claim about them, and what would it take to tie one burst to one start?
- Which alert do you keep and which do you remove, and what is the start procedure for this machine from now on?
Commit to a cause after each listing. Write it down before you read the next one.
Evidence
the guard log around the first pause
Read the process name, the growth in five seconds, and the time until the guard reported normal.
2026-10-16T12:53:16+00:00 2026/10/16 12:53:16 guardian level: Critical: 34.2 GiB left before the freeze zone.
2026-10-16T12:53:16+00:00 2026/10/16 12:53:16 guardian pause: Paused sglang::schedul (pid 2983880, rohit): it grew 36.7 GiB in 5s with 34.2 GiB left. Resume or stop it from the app.
2026-10-16T12:53:24+00:00 2026/10/16 12:53:24 guardian level: Back to normal: 28.9 GiB available.
2026-10-16T12:53:28+00:00 2026/10/16 12:53:28 guardian level: Critical: 30.2 GiB left before the freeze zone.
2026-10-16T12:53:48+00:00 2026/10/16 12:53:48 guardian level: Back to normal: 31.9 GiB available.Source: manuals/sglang-101/capture/gpu/incidents/gb10-memory-guard-pauses.txt, lines 1-5
two more pauses in the next hour
Compare the growth of the scheduler in each pause.
2026-10-16T13:22:18+00:00 2026/10/16 13:22:18 guardian level: Critical: 46.8 GiB left before the freeze zone.
2026-10-16T13:22:18+00:00 2026/10/16 13:22:18 guardian pause: Paused sglang::schedul (pid 3034142, rohit): it grew 9.4 GiB in 5s with 46.8 GiB left. Resume or stop it from the app.
2026-10-16T13:22:27+00:00 2026/10/16 13:22:27 guardian level: Back to normal: 43.1 GiB available.
2026-10-16T13:52:10+00:00 2026/10/16 13:52:10 guardian level: Critical: 50.1 GiB left before the freeze zone.
2026-10-16T13:52:10+00:00 2026/10/16 13:52:10 guardian pause: Paused sglang::schedul (pid 3094220, rohit): it grew 28.1 GiB in 5s with 50.1 GiB left. Resume or stop it from the app.
2026-10-16T13:52:30+00:00 2026/10/16 13:52:30 guardian level: Back to normal: 44.6 GiB available.Source: manuals/sglang-101/capture/gpu/incidents/gb10-memory-guard-pauses.txt, lines 6-11
the weights and the pool of a default start that was kept
Add the K and the V sizes, and compare them with the growth in the guard log.
[2026-10-17 14:18:29] Load weight end. elapsed=323.61 s, type=Qwen3MoeForCausalLM, avail mem=54.84 GB, mem usage=57.75 GB.
[2026-10-17 14:18:32] KV Cache is allocated. dtype: torch.bfloat16, #tokens: 227243, K size: 10.40 GB, V size: 10.40 GB
[2026-10-17 14:18:32] Memory pool end. avail mem=31.22 GBSource: manuals/sglang-101/capture/gpu/out-gb10/server-default.log, lines 18-20
the driver line in the kernel log, counted by minute
The bursts are all on one day. The last line is the message itself.
count minute (UTC) kernel message, NVIDIA driver on the GB10
3 2026-10-16T13:52
9 2026-10-16T14:36
13 2026-10-16T14:55
10 2026-10-16T15:04
7 2026-10-16T15:30
7 2026-10-16T15:47
12 2026-10-16T15:58
9 2026-10-16T16:11
7 2026-10-16T16:46
NVRM: nvCheckOkFailedNoLog: Check failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from _memdescAllocInternal(pMemDesc) @ mem_desc.c:1359Source: manuals/sglang-101/capture/gpu/incidents/gb10-driver-no-memory.txt
what the manual can and cannot say about the three pauses
One paragraph. Read which logs were not kept.
We did not keep the server logs of those three starts. The guard log shows the scheduler growing by 36.7 GiB in 5 seconds, which is the size of a KV pool allocation. The guard was correct by its own rule: the scheduler was the fastest-growing process. Seconds later the guard logged "Back to normal", because the pool was complete. We agreed with the owner of the machine to stop the guard for the time of our runs.Source: manuals/sglang-101/sections/3-2-mem-fraction-static-and-startup-sizing.md, lines 123-123
the driver bursts and the position of the manual
Read the last sentence of the position.
The bursts are dated 2026-10-16, the day of our first test and sweep starts on the GB10. We did not keep the server logs of that day, so we cannot match each burst to one start. Every server in our later captures became healthy and finished its benchmarks.
**Our position:** on unified memory, the KV pool is memory that the whole machine gives up. Pass `--mem-fraction-static` on purpose, and tell the other users of the machine before you start. Do not alert on the driver line alone. Alert when a server does not become healthy.Source: manuals/sglang-101/sections/3-2-mem-fraction-static-and-startup-sizing.md, lines 136-138
how to start on a shared machine with unified memory
Four steps in one paragraph.
On a GB10 that other programs share, start SGLang in a container with a memory limit. Start below the fraction of 0.7 that our kit used. Log the free memory of the machine once a second during startup. Raise the fraction only after you saw the peak.Source: manuals/sglang-101/sections/3-2-mem-fraction-static-and-startup-sizing.md, lines 146-146
The answer
Show the walkthrough
- Read the guard log first. The desktop runs a memory guard daemon for its other users. It stops the process that grows fastest when free memory gets low. Its first entry reads
Critical: 34.2 GiB left before the freeze zone, and the same second it pausedsglang::schedulbecause it grew 36.7 GiB in 5s. Eight seconds later the guard loggedBack to normal: 28.9 GiB available. The scheduler was the fastest-growing process on the machine, so the guard was correct by its own rule. That is the stall the team saw, and no server log records it, because the server was not told anything. - Match the growth against a kept start. The default start that the manual kept shows what the scheduler allocates right after the weights: a KV pool that holds 227,243 tokens, with 10.40 GB for K and 10.40 GB for V, allocated in a few seconds, with 54.84 GB free before and 31.22 GB free after. The manual reads the 36.7 GiB as the size of a KV pool allocation. It also notes a field report of 25 to 40 GB of short-lived allocations outside the fraction, from the autotuner and the graph capture, and says plainly that the guard log does not separate the pool from those. So the growth is the startup allocation of a server on unified memory, and its exact split is not proven.
- Read the other two pauses with the same care. They report 9.4 GiB and 28.1 GiB of growth, and each time the guard reported normal within seconds. The server logs of those three starts were not kept, so nobody can say which allocation each pause caught. The manual's table of six kept starts shows why a single number would mislead anyway: the same weights measured between 54.78 and 57.92 GB, and the pools ran from 216,775 to 258,017 tokens, because the kernel's file cache changed during each load. What the guard log does prove is a process that grows by tens of GiB in seconds and then stops growing. A leak would keep the guard busy after the pool line, and no entry shows that.
- Read the driver bursts as a count, not a verdict. The kernel line is
NV_ERR_NO_MEMORYfrom the driver's allocator. The bursts are dated 2026-10-16, the day of the first test and sweep starts, with 3 to 13 lines per minute. The manual kept no server logs from that day, so it cannot match a burst to a start and refuses to. What it can say is that every server in its later captures became healthy and finished its benchmarks. To tie a burst to a start you would need the server log with timestamps and the free-memory log of the machine for the same minute. - Turn the reading into a procedure. The manual's position for a shared GB10 has four steps: start SGLang in a container with a memory limit, start below the fraction of 0.7 that its kit used, log the free memory of the machine once a second during startup, and raise the fraction only after you saw the peak. Add two more from the same page: pass
--mem-fraction-staticon purpose, and tell the other users of the machine before you start. For the guard, the manual agreed with the owner to stop it for the time of its runs. On the alert, the position is one sentence: do not alert on the driver line alone, alert when a server does not become healthy.
Show the resolution
As far as the evidence shows, the server did not leak and the driver was not faulty. A guard that watches the whole machine paused the scheduler while it allocated its pool, three times, and resumed it each time within seconds. The driver bursts fell on the same day, and the captures hold no link from any burst to a failed start or to a user who saw an error.
The team kept the model on the GB10 and changed how it starts: an explicit fraction, a container with a memory cap, a free-memory log during startup, and an agreement with the owner about the guard while the server runs. The kernel-line page was replaced with a health alert on the server's ready line and its health endpoint, which in the kept start returned 503 before the ready line and 200 after it. The measurement that supports the change is the set of later starts, which reached their pool lines and ran their benchmarks with no pause and no page.
Two things stay open, and the write-up says so. No capture ties a driver burst to a start, and the field report of allocations outside the fraction is from before this version and was not measured here.
Show the wrong turns
“The server leaks memory until the driver fails.”
The guard logged normal within seconds of each pause, and no entry shows growth after the pool was in place. A pool of tens of GB allocated in seconds is the design, not a leak.
“Replace the driver.”
The bursts carry no user-visible failure in the captures, and every later server became healthy. A line in the kernel log is not an incident until a user or a probe sees one.
“Raise the fraction, so the pool is allocated once and the guard stops complaining.”
The fraction sets the pool size. A larger pool grows faster and leaves less for the other users. Lower it, cap the container, and watch the peak.
“Match each burst to a start from the timestamps.”
Without the server logs of that day the match is a guess, and the manual refused to make it. Keep the logs that let you correlate before you correlate.
“Move to a smaller dedicated card.”
That trades a shared machine for a smaller pool and gives up the result that the GB10 served every later run. Fix the start procedure first, then decide.
Show the general rule
On unified memory, a KV pool is memory that the whole machine gives up in a few seconds, and every guard, daemon and user on that machine sees it go. Treat the start of a server as an event that you announce, cap and log, not as something that happens inside one process. When an alert fires, ask what it measured and who was harmed. Keep the logs that let you connect an event to a cause, and when they are missing, write down that the connection is not proven instead of asserting it.
Taught in
The memory page of SGLang 101 records the pauses and the driver bursts in a pool that other programs see and gives the start procedure in memory outside the fraction, and the incident index lists both with their status.