Dispatch AI

4 min read · Dec 6, 2026

llama.cpp b13024 Pipelined Direct I/O: 151.7s to 9.53s Cold Prefill on DGX Spark, Yet a 31% Decode Trap at 1.42x RAM

Release b13024 merges PR #33698 with zero CLI flags required, overlapping 8-thread NVMe reads with GPU uploads on Linux and Windows. Severe RAM overflow runs dramatically faster, but rigs hovering near the 1.2x auto-trigger lose 31% decode speed unless overridden.

4 min read Checked Dec 5, 2026 3 primary sources

All throughput numbers, latency figures, memory ratios, and code caveats come directly from the official ggml-org/llama.cpp release b13024 and Pull Request #33698 benchmarks and maintainer review logs recorded on December 4-6, 2026.

Editorial telemetry chart comparing llama.cpp b13024 pipelined direct I/O cold prefill on DGX Spark (9.53 s) against mmap (151.7 s) and highlighting the 31% decode drop at 1.42x RAM
Graphic: The Benchmarque (ggml-org/llama.cpp b13024 & PR #33698 telemetry, Dec 6, 2026) PRIMARY VISUAL

The short version

VERDICT // SUMMARY

Upgrade to llama.cpp b13024 immediately if your Mixture-of-Experts weights overflow system RAM by roughly double or more, such as DeepSeek-V4-Flash on a 121 GB DGX Spark (prefill drops from 151.7 s to 9.53 s; decode rises from 0.89 to 4.57 t/s) or a 38.5 GB Q8 model on a 32 GB Windows box (prompt triples from 42 to 130 t/s). If your mapped host experts sit just above the 1.2x auto-trigger threshold on a single NVMe drive (like 1.42x on 16 GB RAM), export LLAMA_MOE_CACHE_DIRECT_IO=0 to keep the OS page cache and avoid a 31% decode slowdown.

KEY NUMBERS // VERIFIED READOUT 4 METRICS AUDITED
  • DGX Spark prefill

    9.53 s

    Down from 151.7 s on mmap and 15.62 s on #33490 for DeepSeek-V4-Flash (156 GB).

    llama.cpp PR #33698

  • 1.42x RAM decode trap

    -31%

    Maintainer @ngxson measured decode falling from 22.0 to 15.2 t/s at 16 GB VM RAM.

    @ngxson review

  • Pinned staging RAM

    64 MiB

    32 pinned slots of 2 MiB per device replace the prior 512 MiB staging buffer.

    PR #33698 commit

  • Auto-enable trigger

    1.2x RAM

    Activates automatically with 8 threads; override via LLAMA_MOE_CACHE_DIRECT_IO=0/1.

    Release b13024

The bottom line: llama.cpp release b13024 shipped at 10:52 PM ET on December 5 with pipelined direct I/O for Mixture-of-Experts (MoE) streaming (PR #33698), slashing cold prompt prefill for a 156 GB DeepSeek-V4-Flash file on a 121 GB NVIDIA DGX Spark from 151.7 s on mmap down to 9.53 s while lifting decode from 0.89 t/s to 4.50 t/s.
Why it matters: Oversized local MoE checkpoints can now stream off fast NVMe drives on Linux and Windows with zero extra flags and only 64 MiB of pinned memory per device. Yet the automatic 1.2x RAM trigger carries a sharp edge: maintainer testing at 1.42x RAM measured a 31% decode drop versus standard mmap.

What happened: verified vs. unconfirmed

Streaming giant sparse models off NVMe used to stall between every transfer. Earlier direct I/O work (#33490 by @carmenlok) read a 512 MiB staging block from disk, uploaded it to the GPU, and synchronized before pulling the next chunk.

PR #33698 (authored by @am17an, with Windows unbuffered overlapped ReadFile support added by @ServeurpersoCom) breaks that serial lock. Reads now land in a ring of 32 pinned slots of 2 MiB per device across 8 fixed I/O threads. Each slot uploads the instant its read completes, while a completion event gates slot reuse so the NVMe controller and GPU copy engine run concurrently.

  • Confirmed (Primary Source): Pinned staging drops from 512 MiB down to 64 MiB per device, saving precious shared RAM on unified-memory boxes like GB10 and Strix Halo. Direct I/O turns on automatically with no CLI flag whenever mapped host experts exceed 1.2x available memory (MemAvailable or Linux cgroup v2 memory.max, or available physical memory on Windows). Numerical fidelity against mmap on Qwen3.5-35B-A3B Q8_0 (--moe-cache-mib 3000, 8 chunks) showed a maximum KLD of 5.5e-5 and 100% identical top-token output at ubatch 4 and 512.
  • Still unconfirmed / watchlist: Maintainers have not yet published a broad crossover curve mapping PCIe 4.0 versus PCIe 5.0 NVMe drives against the 1.2x auto-trigger threshold. Three follow-up cleanup items flagged during review—including Windows file-handle reduction and per-thread event reuse—remain open for future commits.
RTX 5060 Ti decode speed: mmap vs. b13024 auto (t/s, higher wins)8 GB RAM (22.15 / 7.65 GiB, auto ON) — direct I/O wins11.0 t/s (mmap)15.1 t/s (b13024 auto)16 GB RAM (1.42x ratio, auto ON) — 31% decode trap22.0 t/s (mmap)15.2 t/s (b13024 auto, -31%)20 GB RAM (1.13x ratio, auto OFF) — stays on mmap27.1 t/s (master)28.1 t/s (b13024 auto OFF)
Source: Maintainer @ngxson review benchmarks in ggml-org/llama.cpp PR #33698 (Qwen3-30B-A3B Q6_K, 22.15 GiB mapped experts, 8 GiB device cache, Dec 5, 2026).

By the numbers

Five independent hardware runs inside PR #33698 show where pipelined direct I/O crushes mmap and where bypassing the OS page cache backfires.

Hardware & OS Model & mapped experts Baseline (mmap or #33490) b13024 pipelined direct I/O Outcome
DGX Spark (GB10, 121 GB, Linux) DeepSeek-V4-Flash (156 GB / 137 GiB) 151.7 s prompt / 0.89 t/s (mmap) 9.53 s prompt / 4.50 t/s (9.26 s / 4.57 t/s run 2) Massive cold-cache win
RTX PRO 6000 (24 GiB cgroup, QLC 1.5 GiB/s) Qwen3.8-Flash-Next IQ4_NL (63 GiB) 32.34 s prompt / 2.46 t/s (#33490) 20.48 s prompt / 2.50 t/s Major prefill cut on slow QLC
RTX 5060 Ti (32 GB RAM, Win, PCIe 5 SSD) Qwen3.6-35B-A3B Q8_K_XL (38.5 GB) 42 t/s prompt / 13.6 t/s decode (mmap) 130 t/s prompt / 15.2 t/s decode Prompt triples; decode climbs
RTX 5080 (64 GB RAM, Linux) DSv4.1 (123.00 GiB mapped, 53.63 GiB free) 4.5 tok/s (1.0-1.6 GB/s reads) 6 tok/s (2.5-3 GB/s reads) Higher read saturation
RTX 5060 Ti (16 GB Linux VM, 1.42x RAM) Qwen3-30B-A3B Q6_K (22.15 GiB mapped) 106.5 t/s prompt / 22.0 t/s decode 146.2 t/s prompt (+37%) / 15.2 t/s (-31%) Prefill up; decode drops 31%

Look closely at the bottom row. On a 20 GB VM (1.13x ratio), b13024 keeps direct I/O turned off and hits 28.1 t/s decode (forcing it on drops generation to 15.3 t/s). On an 8 GB VM (22.15 / 7.65 GiB), page-cache thrashing wrecks mmap, so direct I/O boosts prompt processing from 42.9 to 140.3 t/s and lifts decode from 11.0 to 15.1 t/s.

At 16 GB (1.42x), the threshold misfires for interactive chat. The Linux page cache still retains enough hot experts under mmap to sustain 22.0 t/s. Bypassing the OS cache with direct I/O gains 37% on prompt prefill (106.5 to 146.2 t/s), yet drags decode down 31% to 15.2 t/s.

What builders should do right now

  • Heavy RAM overflow (experts roughly double free RAM or higher): Update straight to b13024 and leave defaults alone. The 8-thread pipelined ring activates automatically, cuts pinned staging from 512 MiB to 64 MiB, and unlocks full NVMe read throughput on both Linux and Windows.
  • Tight overflow (mapped experts just above 1.2x free RAM, such as 1.42x): Test decode speed with LLAMA_MOE_CACHE_DIRECT_IO=0. If your workflow prioritizes token generation over cold prompt ingestion on a single NVMe drive, keeping the OS page cache active can preserve roughly 7 t/s of decode speed.
  • Hardware sizing check: Fast PCIe 5.0 NVMe drives now directly raise MoE prefill throughput when models spill past RAM, as shown by the 42 to 130 t/s Windows jump. Check whether a target MoE checkpoint fits inside unified RAM or hits NVMe streaming using The Benchmarque Can It Run calculator and compare unified-memory local AI systems on the live hardware leaderboard.
Where this breaks and open caveats: Direct I/O is not a free lunch. Beyond maintainer @ngxson's documented 31% decode penalty at 1.42x RAM on a single NVMe drive, reviewer notes highlight three unresolved code edges in b13024: Windows currently keeps 3 open handles per model file, allocates and destroys a Windows event on every 2 MiB read, and Linux containers still running legacy cgroup v1 ignore container memory caps and evaluate host MemAvailable instead. Also watch system logs for direct I/O read failed, reading the experts through mmap from now on; contributor @zarbis hit repeated fallbacks on a 64 GB Linux box until clocking down an unstable RAM kit resolved the I/O errors.
Developing story log (ET):
  • Dec 4, 09:13 AM ET: Contributor @am17an opens PR #33698 in ggml-org/llama.cpp building on @carmenlok's #33490 direct I/O base.
  • Dec 5, 04:46 AM ET: @ServeurpersoCom pushes native Windows FILE_FLAG_NO_BUFFERING / FILE_FLAG_OVERLAPPED support and posts RTX 5060 Ti PCIe 5 SSD benchmarks.
  • Dec 5, 01:41 PM ET: Core maintainer @ngxson approves #33698 while documenting the 16 GB (1.42x) 31% decode drop and three follow-up nits.
  • Dec 5, 10:21 PM ET: PR #33698 merges to master (commit 2ed8d097, +511 / -7 lines across 9 files).
  • Dec 5, 10:52 PM ET: Official b13024 prebuilt binaries publish for Linux, Windows, macOS, and Android.
How we verified this: Every benchmark table entry, commit hash (2ed8d097), file count, memory ratio (1.2x, 1.42x, 1.13x), and Windows/Linux implementation detail was extracted directly from the live GitHub API payloads for ggml-org/llama.cpp release b13024 and Pull Request #33698 on December 6, 2026. Zero third-party rewrites or unverified forum claims were used.

Quick answers

Does llama.cpp b13024 require a new CLI flag for pipelined direct I/O?

No. Release b13024 removed the earlier --moe-cache-io-threads flag, fixes the reader pool at 8 threads, and enables direct I/O automatically whenever mapped host experts exceed 1.2x available memory.

How can builders disable direct I/O if decode speed drops in b13024?

Set the environment variable LLAMA_MOE_CACHE_DIRECT_IO=0 before launching llama-server or llama-cli. Setting LLAMA_MOE_CACHE_DIRECT_IO=1 forces direct I/O on regardless of available memory.

Why did pinned staging memory drop from 512 MiB to 64 MiB?

Instead of reading a full 512 MiB staging block before synchronizing with the GPU, PR #33698 uses a ring of 32 pinned slots of 2 MiB per device (64 MiB total) so NVMe reads and GPU uploads overlap continuously while saving RAM on unified-memory machines like GB10 and Strix Halo.

LIVE DESK // BENCHMARQUE TOOLS

Track live street prices in the Hardware Market, check Hot Deals, or compare configurations in the PC and Local AI Builder and Benchmarks Leaderboard.

Sources & Primary Filings

3 cited
  1. ggml-org/llama.cpp Release b13024 (Dec 6, 2026, 03:52 UTC) github.com
  2. ggml-org/llama.cpp PR #33698: moe-cache pipelined direct I/O reads of the uploaded experts github.com
  3. ggml-org/llama.cpp Commit 2ed8d097 (squash merge of #33698) github.com

The Monday Hardware & AI Briefing

Verified street-price drops, buy-or-wait signals, and reproducible benchmark tables every Monday morning. Zero popups, one-click unsubscribe.

Reader focus

Sponsor a benchmark series or hardware briefing on The Benchmarque. View media kit and sponsorship options.