<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost]]></title><description><![CDATA[<blockquote>
<p dir="auto">结论先说：<strong>同一台机、同一个引擎，110k token 的 agent 请求连打 30+ 次全过；把两条最大的工具结果各复制 4 份推到约 28 万 token，第一次就掉卡。引擎报 <code>cudaStreamSynchronize(s): an illegal memory access was encountered</code>，系统日志是 nvlddmkm 153 TDR，之后那张 4090 48G 直接 <code>GPU is lost</code>。</strong><br />
死在 119 W / 52 °C / PCIe Gen4 x8 / 显存还剩 3.55 GiB。不是过热、不是供电墙、不是显存不够，也没超上下文（281k / 512k = 54%）。精确阈值没二分出来，根因未确认，第七节只给可能性不给结论。</p>
</blockquote>
<hr />
<h2>一、平台和配置</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>CPU / 主板</td>
<td>Ryzen 9950X3D / X870E（CPU 直连 x16 拆 x8/x8）</td>
</tr>
<tr>
<td>GPU0</td>
<td>RTX PRO 6000 Blackwell 96 GB，PCIe 5.0 x8</td>
</tr>
<tr>
<td>GPU1</td>
<td>RTX 4090 48 GB（魔改显存，sm_89），PCIe 4.0 x8</td>
</tr>
<tr>
<td>GPU2</td>
<td>RTX 4090 24 GB USB4 eGPU，已禁用，不参与</td>
</tr>
<tr>
<td>内存</td>
<td>96 GB DDR5-4800 双通道</td>
</tr>
<tr>
<td>系统</td>
<td>Windows 11 Pro 26H2 / 26300.9974，驱动 610.74</td>
</tr>
<tr>
<td>P2P</td>
<td>不支持，<code>cudaDeviceCanAccessPeer</code> = 0，跨卡数据全走主机内存中转</td>
</tr>
<tr>
<td>引擎</td>
<td>strata-dsv41 0.1.59（cuda13 构建），<code>--max-context 524288</code></td>
</tr>
</tbody>
</table>
<p dir="auto">启动参数（日志原文，路径省略）：</p>
<pre><code>strata-dsv41.exe --serve --pack deepseek-v4.1-flash-ist-das-2.25bpw
   --max-context 524288 --eos 1 --vision on --dspark auto --dspark-conf 0.45
   --expert-profile expert-profile.bin --reserve-mib 3072
   --vision-resident --layer-split auto
</code></pre>
<p dir="auto">掉卡前最后一次成功加载，引擎自己报的层分配：</p>
<pre><code>ds4: CUDA0 layers [0, 42]: weights 2.42 GB, experts 42.02 GB, caches 0.19 GB, 3062 MiB free
ds4: CUDA1 layers [13, 39] + head: weights 4.17 GB, experts 90.48 GB, caches 0.37 GB, 2871 MiB free
ds4: 2509 routed experts on the CPU lane (24.2 GB)
</code></pre>
<p dir="auto">这里的 <code>CUDA0</code> 是那张 4090，视觉塔的 patch 编码也压在它上面。</p>
<h2>二、两次现场</h2>
<p dir="auto">第一次，2026-11-22 23:33：</p>
<pre><code>23:33:49  GPU1 util 55%   65 W  51 °C  gen4 x8   tok/s 40.8   ← 第一个请求开始解码
23:33:50  GPU1 util 37%  105 W  52 °C             tok/s 45.1
23:33:51  GPU1 util 38%  135 W  52 °C             tok/s 70.6   ← 最后一个健康秒
23:33:52~53   (无采样：采样线程一起停了 2 秒 = 引擎复位)
23:33:54  GPU1 pcie rx/tx 读数消失（其余字段冻结）
23:33:58  [strata] engine started: ...      →  maya-ds4: no CUDA device
23:34:13  [strata] engine started: ...      →  maya-ds4: no CUDA device
</code></pre>
<p dir="auto">系统日志同一秒：</p>
<pre><code>23:33:54  nvlddmkm 153  \Device\Video9  BusReset TDR occurred on GPUID:300
</code></pre>
<p dir="auto">引擎日志：</p>
<pre><code>ds4: fatal GPU error (cudaStreamSynchronize(s): an illegal memory access was encountered)
</code></pre>
<p dir="auto">第二次是我主动复现的，2026-11-23 00:12。送进去的是一条 584,865 字符、约 281,000 token 的 49 条消息历史（原 agent 请求，加两份最大工具结果各复制 4 遍），服务端按剩余窗口把 <code>max_tokens</code> 算成 242,881。</p>
<pre><code>00:11:40–00:11:55  prefill：两张卡满载
                   GPU1 97–100%、335–367 W、70–76 °C、rx 最高 13,458 MB/s、Gen4 x8
00:11:56  GPU1 util 6%   66 W   53 °C  rx 170 MB/s   tok/s 63.7  ← 开始解码
00:12:00  GPU1 util 36% 136 W   54 °C  rx 145 MB/s   tok/s 58.4
00:12:03  GPU1 util 38% 143 W   54 °C  rx 146 MB/s   tok/s 49.6
00:12:04  GPU1 util  0% 119 W   52 °C  rx 137 MB/s   tok/s 40.2
00:12:05  GPU1 pcie rx/tx = 空（其余字段从此刻起全部冻结）
</code></pre>
<pre><code>00:12:05  nvlddmkm 153  \Device\Video13  BusReset TDR occurred on GPUID:300
</code></pre>
<p dir="auto">死在解码第 9 秒。119 W，52 °C，Gen4 x8，显存还剩 3.55 GiB。</p>
<h2>三、排除法</h2>
<p dir="auto">逐秒采样是我们自己挂的 NVML 脚本，一秒一行落盘。掉卡那一刻的数据把几个常见嫌疑直接排掉了：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>假设</th>
<th>证据</th>
<th>判定</th>
</tr>
</thead>
<tbody>
<tr>
<td>prompt 超窗口</td>
<td>281,407 / 524,288 = 54%，KV 按满窗预分配</td>
<td>否</td>
</tr>
<tr>
<td>显存不足</td>
<td><code>mem_used</code> 恒为 44.33 GiB，两次请求数值完全相同</td>
<td>否</td>
</tr>
<tr>
<td>供电墙</td>
<td>死在 119 W，上限 450 W；刚从 367 W 的 prefill 从容退出</td>
<td>否</td>
</tr>
<tr>
<td>过热</td>
<td>死在 52 °C；prefill 冲到 76 °C 反而没事</td>
<td>否</td>
</tr>
<tr>
<td>PCIe 降档</td>
<td>width 全程 8，负载时 gen 稳定 4</td>
<td>否</td>
</tr>
<tr>
<td>WHEA / AER</td>
<td>日志 0 条</td>
<td>否</td>
</tr>
<tr>
<td>OS 版本回归</td>
<td>同 OS 下 hy4 分支跑 500k 无事</td>
<td>降级为噪声</td>
</tr>
</tbody>
</table>
<p dir="auto">显存那条我多说一句：<code>47,599,022,080 / 51,527,024,640</code>，也就是 44.33 / 48 GiB，始终剩 3.55 GiB。两次请求，一次 111k 一次 281k，这个数字一模一样。要真是 OOM，不会这么稳。</p>
<h2>四、复现方法</h2>
<ol>
<li>拿真实 agent 请求（40 条消息、219,028 字符 ≈ 110,481 token、20 个工具），逐字节重放，连续 30 次全部 200，不复现。</li>
<li>把历史里最大的两条 <code>tool</code> 消息（53,264 / 38,191 字符）各复制 4 份塞回 <code>messages</code>，总长 584,865 字符 ≈ 281,000 token，第一次就掉卡。</li>
<li>同一台机、同一引擎、同一个 <code>max_tokens</code>（服务端自动算成 242,881）。</li>
</ol>
<p dir="auto">对照表：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>prompt</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>110,481 token（原始请求逐字节重放）</td>
<td>200，62 s；再连打 30 次全部 200</td>
</tr>
<tr>
<td>111,482 token（+ 一张 2477×995 截图走视觉）</td>
<td>200，<code>1 pictures, 1 read (897 ms)</code>，prefill 1819 tok/s</td>
</tr>
<tr>
<td>≈281,000 token</td>
<td>第一次即掉卡</td>
</tr>
</tbody>
</table>
<p dir="auto">阈值卡在 111k 和 281k 之间，我没二分到具体数值。谁有空可以接着切，这是最省事的一条线索。</p>
<h2>五、掉卡之后才是真麻烦</h2>
<p dir="auto">TDR 复位失败，<code>nvidia-smi</code> 直接报 <code>GPU is lost. Reboot the system to recover this GPU</code>。引擎每次重启只拿到 <code>no CUDA device</code>，服务端又反复重拉，形成循环。</p>
<p dir="auto">恢复手段只有两种：</p>
<ul>
<li>重启，一定有效。</li>
<li>设备管理器禁用/启用，不可靠。在一张已经 wedge 的卡上点"禁用"，<code>nvlddmkm</code> 会走 <code>IRP_MN_REMOVE_DEVICE</code> 拆除流程，而它必须等 GPU 回写的 fence，永远等不到。实测撞过整机硬挂：<code>Kernel-Power 41，BugcheckCode = 0</code>，连新的 minidump 都没有。历史上还见过 <code>0x133</code>（DPC_WATCHDOG_VIOLATION）和 <code>0x0A</code>（IRQL_NOT_LESS_OR_EQUAL），同族收场。</li>
</ul>
<p dir="auto">还有更阴的一种：禁用成功生效了，重启后设备仍保持 Code 22，得手动再启用一次。所以别把禁用当常规操作。</p>
<h2>六、hy4 分支在同条件下的表现</h2>
<p dir="auto">同一台机器、同一个 Windows、同一个驱动，<code>strata-hy4</code>（专为双卡异构编译，<code>--vision</code> 关掉）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>prompt</th>
<th>prefill</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>99,986</td>
<td>3,602 tok/s</td>
<td>200</td>
</tr>
<tr>
<td>199,647</td>
<td>3,279 tok/s</td>
<td>200</td>
</tr>
<tr>
<td>299,987</td>
<td>3,015 tok/s</td>
<td>200</td>
</tr>
<tr>
<td>409,930</td>
<td>2,713 tok/s</td>
<td>200</td>
</tr>
<tr>
<td>500,064</td>
<td>2,528 tok/s</td>
<td>200，卡还在</td>
</tr>
</tbody>
</table>
<p dir="auto">外加 300k 上下文连续请求 30+ 次，全部 200，引擎日志里 <code>fatal</code> / <code>illegal</code> / <code>Xid</code> 计数为 0，<code>nvlddmkm</code> 零 TDR。</p>
<p dir="auto">我的判断是：混合卡 + 无 P2P + 主机中转这套架构本身不必然出事，问题更可能落在 dsv41 这一支的实现里。但 dsv41 没开源，下面只能按可能性排，别当成结论抄走。</p>
<h2>七、我认为可能的坑（分析，不是结论）</h2>
<ol>
<li>
<p dir="auto">稀疏 indexer 的候选位置索引，最可疑。 dsv41 是 DSA（压缩 indexer）结构，每个 token 要从历史里挑 top-2048 个候选位置。如果这个候选索引数组按固定上限开死，或者用窄类型（16-bit）存位置，上下文一过某个深度就会越界。我们的窗口 <code>(111k, 281k)</code> 里正好躺着一个整数：2¹⁷ = 131,072。16-bit 索引（65,535）会被 110k 成功案例排除。判别方法：二分到阈值，若精确落在 131,072 或 262,144，基本可以锁定。</p>
</li>
<li>
<p dir="auto">主机中转缓冲的偏移计算。 无 P2P 时每层每 token 都要做一次 <code>(卡, 层, 偏移, 字节数)</code> 的算术，prefill 分块 4096 token，越深分块越多、偏移越大。判别方法：<code>--prefill-chunk 1024</code> 跑同一个必死载荷，活了就指向分块 prefill 的偏移路径。</p>
</li>
<li>
<p dir="auto">KV 跨卡分片 + 增量增长。 KV 若按层切到两张卡且增长式分配，基址会变，缓存进 graph/描述符的旧指针就成了悬空指针。观测到的 <code>mem_used</code> 全程不变倾向于已预分配，所以这条靠后；但如果增长发生在同一个大 buffer 内部只改游标，<code>mem_used</code> 照样不变，那这条仍成立。判别方法：源码里找增长/游标逻辑，或把 <code>--max-context</code> 分别设 128k / 512k，看必死阈值会不会跟着移动。</p>
</li>
<li>
<p dir="auto">CUDA Graph 与动态深度不匹配。 图若按某个最大 shape 捕获后复用，实际深度变化就会越界。旁证是 hy4 那边我们主动设了 <code>HY4_CUDA_GRAPH=0</code>，日志长期 <code>graphs reused = 0</code>，这条路径在工程上本来就是雷区。判别方法：dsv41 若有 graph 开关，关掉再打同一个载荷。</p>
</li>
<li>
<p dir="auto"><code>--vision-resident</code> 的 patch 缓冲。 视觉塔常驻在 4090 上，日志写的是 <code>vision tower (32 blocks) on CUDA0: 319 MiB, up to 9189 patches</code>。一张 2477×995 的截图按 patch 14 算约 12,500 patch，已经超过声明的 9,189。我们测过"111k + 一张大截图"正常，所以视觉单独不足以触发；但"281k + 大图"没测过，不能排除叠加。判别方法：<code>--vision off</code> 跑同一个 281k 载荷，仍死则视觉无关。</p>
</li>
<li>
<p dir="auto">旧引擎 + 新驱动/新 OS 的交互。 这个 dsv41 引擎被钉在 0.1.59（更新的 0.2.18 明确拒绝 DeepSeek 模型），它比 26H2 和 610.74 都老。WDDM 在 26H2 里对显存驻留/驱逐的策略变动，可能让一个原本"越界但落在合法页内"的写变成真正的非法访问。判别方法：拿 25H2 的同机对照跑同一个必死载荷，不死则说明 WDDM 策略差异是触发器之一。</p>
</li>
</ol>
<h2>八、给 Windows 混合卡用户的临时建议</h2>
<ol>
<li>agent 上下文压在 ~100k 以内，这是我们 30+ 次全过的区间。</li>
<li>大工具结果走摘要，别把 100 KB+ 的终端输出原样回灌。</li>
<li>掉卡后不要点"禁用"。先 <code>Ctrl+Shift+Win+B</code> 强制重置显示驱动，不行就重启。禁用是最容易把整机拖进硬挂的操作。</li>
<li>想在下一次硬挂时留下证据，先开这个开关：</li>
</ol>
<pre><code>HKLM\SYSTEM\CurrentControlSet\Services\kbdhid\Parameters
    CrashOnCtrlScroll = 1  (DWORD)
</code></pre>
<p dir="auto">卡死时按住右 Ctrl、连按两下 ScrollLock，会强制 bugcheck 并落盘完整 dump。默认这种硬挂是不产生 dump 的。</p>
<ol start="5">
<li>打开逐秒采样，把现场留在磁盘上。</li>
</ol>
<h2>九、怎么抓到"掉卡前那一秒"</h2>
<p dir="auto"><code>nvidia-smi</code> 一秒一行落盘 CSV：</p>
<pre><code class="language-bash">nvidia-smi --query-gpu=timestamp,index,pcie.link.gen.current,pcie.link.width.current,\
pcie.link.gen.max,pcie.link.width.max,temperature.gpu,power.draw,\
clocks_throttle_reasons.active,utilization.gpu,memory.used \
  --format=csv,noheader -lms 1000 -f gpu-$(date +%Y%m%d).csv
</code></pre>
<p dir="auto">掉卡的指纹很好认：某张卡那一行在某个时间点之后 <code>pcie rx/tx</code> 变空、其余字段冻结，这就是 NVML 失去它的那一秒。前面几行如果 <code>pcie_width</code> 从 8 掉到 4/1，还能顺带抓到链路降档。</p>
<p dir="auto">另外 <code>nvidia-smi -q -d PERFORMANCE</code> 里的 Clocks Event Reasons Counters 是白送的累计硬件事件日志，重启前后 diff 一次，就能看那段时间有没有 <code>HW Power Brake Slowdown</code>（供电刹车）或 <code>HW Thermal Slowdown</code>。</p>
<h2>十、想要确认的问题</h2>
<ol>
<li>0.1.59 的稀疏 indexer 候选索引数组，上限是按 <code>--max-context</code> 动态算的，还是固定值？</li>
<li>上下文深度增长时，KV 是预分配还是增长式？增长时是否重建了所有跨卡描述符？</li>
<li>无 P2P 混合卡下，每层跨卡中转缓冲的大小按"整卡可用显存"算，还是按引擎自己的 <code>--reserve-mib</code> 算？</li>
<li><code>illegal memory access</code> 之后，引擎有没有可能只重建 CUDA context 而不触发整卡复位，避免 <code>GPU is lost</code>？</li>
</ol>
<p dir="auto">数据来自逐秒 NVML 采样、引擎 stdout 日志和 Windows 事件日志（<code>nvlddmkm</code> 153 / Kernel-Power 41 / WER 1001）。阈值二分和根因定位还没做完，有进展我再来补。</p>
]]></description><link>https://lcz.me/topic/3309</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 03:12:03 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/3309.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Nov 2026 23:08:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 10:55:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcys" aria-label="Profile: fcys">@<bdi>fcys</bdi></a> 感觉不是扛不住，700问题也不可能导致拉不起来。掉卡估计纯粹是vbios和驱动问题叠加windows的内存管理机制撞车导致。我把pagefile加到150恒定，避免虚拟内存增长过程的问题，暂时稳定。</p>
]]></description><link>https://lcz.me/post/35723</link><guid isPermaLink="true">https://lcz.me/post/35723</guid><dc:creator><![CDATA[roid isis]]></dc:creator><pubDate>Tue, 24 Nov 2026 10:55:05 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 10:20:57 GMT]]></title><description><![CDATA[<p dir="auto">我倒觉得这卡的问题是扛不住复位，——700 很像 TDR 之后 context 被销毁的产物</p>
]]></description><link>https://lcz.me/post/35718</link><guid isPermaLink="true">https://lcz.me/post/35718</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Tue, 24 Nov 2026 10:20:57 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 08:54:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ivan-lan" aria-label="Profile: ivan-lan">@<bdi>ivan-lan</bdi></a> 我又测试了一下，目前仍然不能完全定位问题。只能说调整虚拟内存和Tdrdelay=30让事故的发生有所降低。但我猜测如果导致了Tdr，4090 48G在当前的驱动版本和windows版本下大概率会起不来。</p>
<blockquote>
<p dir="auto">本文只回报<strong>已经做过的测试和它们的结果</strong>。凡是没有测到、或测了但分不开变量的，一律标 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/23f3.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--hourglass_flowing_sand" style="height:1.4em;width:auto;vertical-align:middle" title="⏳" alt="⏳" /> <strong>未定</strong>，不作为结论。</p>
</blockquote>
<hr />
<h2>0. 摘要</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>论坛的判断</th>
<th>我们这边</th>
</tr>
</thead>
<tbody>
<tr>
<td>源码层面排除 CUDA Graph / 视觉 / indexer 下标 / KV 扩容 / staging 按显存算</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> 源码核对一致，<strong>接受</strong></td>
</tr>
<tr>
<td><code>tick_flush</code> 在 0.1.59 里缺修复</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--warning" style="height:1.4em;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️ <strong>二进制核对不一致</strong>：0.1.59 里那段保护的字符串存在（见 §3.2）</td>
</tr>
<tr>
<td>把 <code>TdrDelay</code> 调到 30 s 可以"排除纯超时"</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title="❌" alt="❌" /> <strong>实测否定</strong>：本机 120 秒的内核都不会触发 TDR（见 §4）</td>
</tr>
<tr>
<td>高位物理显存不能排除</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/23f3.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--hourglass_flowing_sand" style="height:1.4em;width:auto;vertical-align:middle" title="⏳" alt="⏳" /> <strong>未定</strong>：做了 24 GiB 全量校验（0 错），但 CUDA 不暴露物理地址，覆盖不到"特定物理区"（见 §5）</td>
</tr>
<tr>
<td>主嫌疑是 DSpark 40–42 在 4090 上造成的每轮双向跨卡 + <code>tick_flush</code></td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/23f3.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--hourglass_flowing_sand" style="height:1.4em;width:auto;vertical-align:middle" title="⏳" alt="⏳" /> <strong>未定</strong>：<code>--dspark off</code> 的对照实验还没跑</td>
</tr>
<tr>
<td>结论建议是"软件为主 + 魔改卡放大器"</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/23f3.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--hourglass_flowing_sand" style="height:1.4em;width:auto;vertical-align:middle" title="⏳" alt="⏳" /> 放大器部分有实测支撑（§4），触发器部分<strong>本轮未复现</strong>（§6）</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>本轮最重要的一条事实：同一条 281,399 token 的载荷，在改动 pagefile 与 TdrDelay 并重启之后，连打 3 次都没有复现掉卡；显存峰值与死亡那次相当（44,866 MiB vs 45,394 MiB，低约 0.5 GiB），温度更高（74 °C vs 52 °C）。</strong></p>
<p dir="auto"><strong>但这两组样本不对等</strong>：目前<strong>所有</strong>掉卡（含 11-24 14:23 那次单卡 sglang）都发生在 <strong>pagefile 系统管理 + TdrDelay 默认</strong> 下；而唯一“未复现”的样本发生在两个变量都改过、且刚刚重启之后。因此<strong>不能把存活归因于其中任何一个</strong>（详见 §7.1 的配置时间线）。</p>
<hr />
<h2>1. 环境</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>OS</td>
<td>Windows 11 Pro 26H2 / 26300.10075</td>
</tr>
<tr>
<td>驱动</td>
<td>610.74（32.0.16.1074）</td>
</tr>
<tr>
<td>GPU0</td>
<td>RTX PRO 6000 Blackwell 96 GB，PCIe 5.0 <strong>x8</strong></td>
</tr>
<tr>
<td>GPU1</td>
<td><strong>RTX 4090 48 GB（魔改显存，sm_89）</strong>，PCIe 4.0 <strong>x8</strong></td>
</tr>
<tr>
<td>P2P</td>
<td><code>cudaDeviceCanAccessPeer</code> = 0，跨卡全部走主机内存</td>
</tr>
<tr>
<td>内存 / 分页</td>
<td>96 GB DDR5 / pagefile <strong>固定 150 GB</strong>（原为系统管理）</td>
</tr>
<tr>
<td>显示</td>
<td>桌面在 <strong>Virtual Display Driver</strong> 上，两张 N 卡 <code>display_active = Disabled</code></td>
</tr>
<tr>
<td>引擎</td>
<td><code>strata-dsv41 0.1.59</code>，<code>--max-context 524288 --reserve-mib 3072 --dspark auto --dspark-conf 0.45 --vision on --vision-resident --layer-split auto</code></td>
</tr>
</tbody>
</table>
<p dir="auto">引擎自报的层分配（掉卡前最后一次成功加载）：</p>
<pre><code>CUDA0 layers [0, 42]: weights 2.42 GB, experts 42.02 GB (4060 of 5376 in VRAM), 3062 MiB free
CUDA1 layers [13, 39] + head: weights 4.17 GB, experts 90.48 GB (9175 of 10368 in VRAM), 2871 MiB free
2509 routed experts on the CPU lane (24.2 GB)
</code></pre>
<hr />
<h2>2. 复现载荷（三条，均可逐字重放）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>代号</th>
<th>来源</th>
<th>规模</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>crash-request.json</code></td>
<td>真实 agent 请求的 Hermes request dump（<code>reason: max_retries_exhausted</code>），即 2026-11-22 23:33 掉卡时在飞的那条</td>
<td>219,028 字符 ≈ <strong>110,481 token</strong></td>
<td>200 / 62 s；随后<strong>连打 30 次全部 200</strong></td>
</tr>
<tr>
<td><code>crash-vision.json</code></td>
<td>同上 + 一张 2477×995 截图</td>
<td>111,482 token</td>
<td>200，<code>1 pictures, 1 read (897 ms)</code></td>
</tr>
<tr>
<td><code>crash-deep.json</code></td>
<td>同上 + 把两条最大的 tool 结果各复制 4 份</td>
<td>584,865 字符 ≈ <strong>281,407 token</strong></td>
<td><strong>2026-11-23 00:12:05 首打即掉卡</strong>（见 §6）</td>
</tr>
</tbody>
</table>
<hr />
<h2>3. 对论坛源码判断的回应</h2>
<h3>3.1 接受（我们核对一致，不再重复验证）</h3>
<ul>
<li>无 CUDA Graph 调用（针对 dsv41 引擎）</li>
<li>视觉超限直接报错拒收；纯文本载荷不走视觉</li>
<li>indexer 的 topk/cand 是 32-bit；<code>topk_stride() = max(g.ix_topk, 32)</code>、<code>cand_stride() = max(g.cand_topk, 32)</code>，与 <code>max_context</code> 无关；唯一随窗口大小的是 <code>bm_stride() = (max_context+64)/cand_blk + 64</code>，一次性按 524288 算死</li>
<li>KV 启动时按 <code>max_context</code> 全量预分配</li>
<li>staging/bounce 缓冲大小与深度无关，见下：</li>
</ul>
<pre><code class="language-c">size_t chunk_hand_bytes() const {
    return chunk * (hc*dim*4 + 8*4 + topk_stride()*4 + cand_stride()*4);   // 常量
}
size_t bounce_bytes() const {
    return kWin  * (hc*dim*4 + 8*4 + topk_stride()*4 + cand_stride()*4);   // 常量
}
</code></pre>
<p dir="auto"><strong>→ "缓冲随深度增长而越界"这一假设，被源码否定。</strong></p>
<h3>3.2 更正：0.1.59 里存在 <code>tick_flush</code> 的前置同步保护</h3>
<p dir="auto">论坛的判断是「Maya #1086（11/21 修）0.1.59 停更没吃到」。我们对<strong>已安装的二进制</strong>做了字符串核对（<code>grep -a -F</code>，注意 MSYS 的 <code>strings</code> 在该 PE 上失效，对照组会全 0）：</p>
<pre><code>table-input predecessor sync      1
the expert tables are unknown     1
recent-slot fill failed           1
</code></pre>
<p dir="auto">这三条正是 v0.2.13 里 <code>tick_flush()</code> 那段保护的配套字符串：</p>
<pre><code class="language-c">// tab_set reads this host-mapped input only when it eventually executes. Before every overwrite,
// finish all earlier work on this stream (in particular back-to-back cache_drain / rc_drain flushes).
// (Project Maya 32f3c8c, handmade0octopus)
const cudaError_t update_sync = cudaStreamSynchronize(devs[di].st);
if (update_sync != cudaSuccess) { ... "the expert tables are unknown"; std::abort(); }
</code></pre>
<p dir="auto"><strong>状态：事实层面 = 0.1.59 包含 32f3c8c 的保护。</strong> 如果 #1086 是另一处改动，则需要拿到它的 diff 才能判断 —— <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/23f3.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--hourglass_flowing_sand" style="height:1.4em;width:auto;vertical-align:middle" title="⏳" alt="⏳" /> 未定。</p>
<h3>3.3 补充两条论坛没有提到的源码事实（对排查有用，本身不是结论）</h3>
<p dir="auto"><strong>(a) <code>cudaStreamSynchronize(s)</code> 里的 <code>s</code> 无法用来判断阶段。</strong> 四个调用点全部是 <code>cudaStream_t s = d.st;</code>，即同一张卡的 decode 与 prefill <strong>共用一条 stream</strong>：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>调用点</th>
<th>所在函数</th>
</tr>
</thead>
<tbody>
<tr>
<td>11695 / 11727 / 11741</td>
<td><code>layer_chunk()</code></td>
</tr>
<tr>
<td>12023</td>
<td><code>run_dev_layers()</code></td>
</tr>
<tr>
<td>12044 / 12248</td>
<td><code>run_dev_chunks()</code></td>
</tr>
</tbody>
</table>
<p dir="auto">→ 报错点只说明"下一个同步点在哪"，<strong>不能反推故障发生在哪个阶段</strong>。</p>
<p dir="auto"><strong>(b) 跨卡槽位的发布有系统级栅栏，主消费者在设备侧等待。</strong></p>
<pre><code class="language-cuda">__global__ void xfer_put_kernel(const Xfer x, unsigned* flag, unsigned seq, unsigned* cnt) {
    xfer_copy(x, false);
    __threadfence_system();                 // 栅栏在发布之前
    __syncthreads();
    if (threadIdx.x == 0 &amp;&amp; atomicAdd(cnt, 1u) == gridDim.x - 1) {
        *cnt = 0u; __threadfence_system(); *(volatile unsigned*) flag = seq;
    }
}
__device__ void wait_at_least(const unsigned* flag, unsigned seq) {
    while ((int)(*(volatile const unsigned*) flag - seq) &lt; 0) __nanosleep(100);   // 无超时
}
</code></pre>
<p dir="auto">→ "标志先到、数据未到"这个假设，<strong>源码层面不支持</strong>（栅栏顺序正确）。<br />
→ 但同时可以看到：<strong>主机侧 <code>host_wait_at_least()</code> 与设备侧 <code>wait_at_least()</code> 都是无上限自旋，没有超时、没有错误归因。</strong></p>
<p dir="auto"><strong>(c) DSpark 落在 stage 0 是设计选择，不是分配意外。</strong></p>
<pre><code class="language-c">for (Layer&amp; l : L) {
    l.dev = groups[l.grp].mem[0];
    l.nm  = l.mtp ? 1 : (int) groups[l.grp].mem.size();   // (the drafter's blocks: on the lead alone)
}
// DS4_SPLIT=a,b,..: the trunk layers each group takes (the drafter stays with the first)
</code></pre>
<p dir="auto">MTP/drafter 层的 <code>grp</code> 不参与层切分的 DP，默认 0 → 落在 stage 0（本机即那张 4090）。注释明确写了 "(the drafter stays with the first)"。</p>
<hr />
<h2>4. 实测：本机不存在"超时型 TDR"</h2>
<p dir="auto">论坛建议「把 TdrDelay 调到 30 s 排除纯超时」。我们直接测了这条路径。</p>
<p dir="auto">程序：一个<strong>只读 <code>%globaltimer</code>、不访问任何显存</strong>的内核（<code>spin.cu</code>），必然超过任何合理的 TdrDelay。</p>
<pre><code>本机注册表：TdrDelay=30  TdrDdiDelay=30  TdrLimitCount=10  TdrLimitTime=120

device 1: NVIDIA GeForce RTX 4090 (cc 8.9, 48.0 GiB)
spinning 45 s  → END sync=0 (no error)
spinning 120 s → END sync=0 (no error)
</code></pre>
<p dir="auto">两次期间：</p>
<ul>
<li>GPU1 全程 <code>utilization=100%</code>、~100 W，随后正常归零</li>
<li><code>nvlddmkm</code> / <code>Display</code> 事件：<strong>0 条</strong></li>
<li>卡始终在 <code>nvidia-smi</code> 里</li>
</ul>
<p dir="auto"><strong>状态：实测证实 —— 在本机当前配置下，长达 120 秒的计算内核不会触发 TDR，"超时"这条路没有生效。</strong></p>
<p dir="auto">相关的一个环境事实（未做对照）：两张 N 卡 <code>display_active = Disabled</code>，桌面在 Virtual Display Driver 上。<strong>它与"看门狗是否武装"是否有因果关系，我们没有验证，<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/23f3.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--hourglass_flowing_sand" style="height:1.4em;width:auto;vertical-align:middle" title="⏳" alt="⏳" /> 未定。</strong></p>
<blockquote>
<p dir="auto">对排查的实际影响：<strong><code>TdrDelay</code> 在本次排查中不是有效变量</strong>，把它当作"排除超时"的手段会得到误导性的"排除成功"。</p>
</blockquote>
<hr />
<h2>5. 实测：显存压测结果（以及它的边界）</h2>
<h3>5.1 24 GiB 全量写入 + 读回校验</h3>
<p dir="auto"><code>vramfill.cu</code>：按 1 GiB 分块分配、逐字节写入依赖自身偏移的图案、再逐字节读回比对。</p>
<pre><code>HOLD 24.00 GiB in 24 blocks
PASS 1..8: 24.00 GiB written+verified, errors=0
DONE passes=8
</code></pre>
<p dir="auto">期间无 TDR、无事件、卡正常。</p>
<p dir="auto"><strong>状态：在这 24 GiB（本进程实际分配到的那些页）上，8 轮全量写入校验 0 错误。</strong></p>
<h3>5.2 这个测试<strong>不能</strong>证明什么（重要）</h3>
<ul>
<li>CUDA 只暴露虚拟地址，<strong>无法指定"物理显存的某一段"</strong>；无法对准"顶部 5 GB"这类区域</li>
<li>我的访问模式是 stride-1 顺序写读，与故障发生时的模式（大块连续提交、深 KV 随机读）不同</li>
<li>因此：<strong>"高位物理显存有没有问题"这条，本轮既没有证实也没有证伪，<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/23f3.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--hourglass_flowing_sand" style="height:1.4em;width:auto;vertical-align:middle" title="⏳" alt="⏳" /> 未定</strong></li>
</ul>
<h3>5.3 顺带发现：WDDM 的显存是可驱逐的</h3>
<p dir="auto">在同一张卡上同时存在 sglang（占 43,648 MiB）与本进程时：</p>
<pre><code>本进程 cudaMemGetInfo 报空闲：45.88 GiB
nvidia-smi 报已用：          43,648 MiB（只剩 5.4 GiB）
sglang 的 /v1/models 全程 200
</code></pre>
<p dir="auto">在我的分配涨到 24 GiB 期间，<code>nvidia-smi</code> 的已用从 43,648 MiB <strong>降到 23,626 MiB</strong> —— sglang 的模型被驱到系统内存，而服务仍在响应。</p>
<p dir="auto"><strong>状态：实测现象。</strong> 影响：<strong>"显存占用"数字不能当作"物理驻留"的证据</strong>，任何基于占用量的推断都要打折。</p>
<hr />
<h2>6. 实测：同一条 281k 载荷，本轮未复现</h2>
<h3>6.1 首次（2026-11-23 00:12），当时的配置</h3>
<pre><code>pagefile：系统管理（22:31 那次掉卡同一秒出现 "虚拟内存太低，正在增加分页文件大小" 弹窗）
TdrDelay：默认
00:11:40-55  prefill 双卡满载：GPU0 568-585 W / 75-78 °C；GPU1 335-367 W / 70-76 °C
00:11:56     解码开始，tok 63.7
00:12:04     tok 40.2
00:12:05     GPU1 的 pcie rx/tx 读数消失，其余字段冻结  → nvlddmkm 153 BusReset TDR → GPU is lost
</code></pre>
<p dir="auto">死亡瞬间：GPU1 <strong>45,394 MiB / 49,140 MiB（44.33 GiB / 48 GiB，余 3.55 GiB）、52 °C、119 W（上限 450 W）、Gen4 x8 未降档</strong>。</p>
<h3>6.2 本轮（2026-11-24 16:32–16:36），配置变化</h3>
<pre><code>pagefile：固定 150 GB
TdrDelay=30 / TdrDdiDelay=30 / TdrLimitCount=10 / TdrLimitTime=120
（已重启）
</code></pre>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>次数</th>
<th>prompt</th>
<th>耗时</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><strong>281,399 token</strong>（25931 reused + 255468 read，1789 tok/s）</td>
<td>154 s</td>
<td>200</td>
</tr>
<tr>
<td>2</td>
<td>281,399（281398 reused，前缀复用）</td>
<td>10 s</td>
<td>200</td>
</tr>
<tr>
<td>3</td>
<td>281,399（前缀复用）</td>
<td>9 s</td>
<td>200</td>
</tr>
</tbody>
</table>
<p dir="auto">全程采样（GPU 100 ms / 主机内存 1 s）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th></th>
<th>死亡那次</th>
<th>本轮</th>
</tr>
</thead>
<tbody>
<tr>
<td>GPU1 显存峰值</td>
<td>45,394 MiB</td>
<td>44,866 MiB（低约 0.5 GiB）</td>
</tr>
<tr>
<td>GPU1 温度峰值</td>
<td>52 °C</td>
<td><strong>74 °C</strong></td>
</tr>
<tr>
<td>GPU1 功耗峰值</td>
<td>119 W</td>
<td>382 W</td>
</tr>
<tr>
<td>GPU0 峰值</td>
<td>—</td>
<td>94,038 MiB / 578 W</td>
</tr>
<tr>
<td>主机空闲物理内存最低</td>
<td>未知</td>
<td><strong>47.1 GB</strong></td>
</tr>
<tr>
<td>commit <strong>已用</strong>峰值</td>
<td>未知</td>
<td><strong>183.4 GB</strong>（commit 上限 242 GB）</td>
</tr>
<tr>
<td>引擎 fatal 计数</td>
<td>+1</td>
<td><strong>0</strong></td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>状态：本轮 3 次未复现。</strong> 注意三点限定：</p>
<ol>
<li><strong>n=3，且第 2、3 次走的是前缀复用，没有经过 prefill</strong> —— 而首次死亡发生在 prefill 段。要累积有效样本，每次都必须让前缀失效（例如载荷加随机 nonce）。</li>
<li>本轮同时改了两个变量（pagefile 是否固定、TdrDelay），<strong>无法区分</strong>。</li>
<li>因此：<strong>"pagefile 固定避免了问题"与"卡当前处于不同状态"这两者，本轮无法分开，<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/23f3.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--hourglass_flowing_sand" style="height:1.4em;width:auto;vertical-align:middle" title="⏳" alt="⏳" /> 未定。</strong></li>
</ol>
<h3>6.3 一个值得记录的数字</h3>
<p dir="auto"><code>commit 已用峰值 183.4 GB</code>，而上限 242 GB、物理内存 96 GB —— 即约有 87 GB 的工作集必须在 pagefile 里，pagefile 位于请求的关键路径上。<strong>这只是量化，不构成因果结论。</strong></p>
<hr />
<h2>7. 另一条独立现象：单卡 sglang 启动期掉卡（2026-11-24 14:23）</h2>
<p dir="auto">与 dsv41 无关，但<strong>没有跨卡参与</strong>，因此单独记录。</p>
<p dir="auto"><strong>当时的配置是全部默认的</strong>（这一点很关键）：</p>
<pre><code>pagefile   ：系统管理（当时 168 GB，运行中可增长）
TdrDelay   ：未设置（默认 2 s）
TdrLimit*  ：未设置
上次重启   ：2026-11-22 18:13（此后当天内已经历多次 TDR / 两次掉卡）
</code></pre>
<pre><code>CUDA_VISIBLE_DEVICES=1            （CUDA 设备 1 = RTX 4090，由我们自己的程序按名称确认）
14:23:14  KV Cache is allocated ... #tokens: 298620 ... Memory pool end. avail mem=8.91 GB
14:23:15  Capture target prefill CUDA graph begin ... avail mem=8.42 GB
          Capturing prefill shape (num_tokens=7168 avail_mem=3.41 GB): 2/58 [00:13&lt;05:58, 6.40s/it]
14:23:33  nvlddmkm 153  BusReset TDR  → GPU is lost
</code></pre>
<p dir="auto"><strong>状态：事实。</strong> 死亡发生在 graph 捕获的大形状阶段（<code>num_tokens=7168</code>，可用显存 3.41 GB）。<br />
<strong>它是否说明显存"容量/提交路径"而非"颗粒"，没法作为结论</strong>（见 §5.2 的边界）。</p>
<h3>7.1 配置时间线（哪个样本在什么设置下发生）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>时间</th>
<th>事件</th>
<th>pagefile</th>
<th>TdrDelay</th>
<th>跨卡</th>
<th>卡的状态</th>
</tr>
</thead>
<tbody>
<tr>
<td>11-22 22:31</td>
<td>dsv41 掉卡</td>
<td>系统管理</td>
<td>默认</td>
<td>有</td>
<td>当天已多次 TDR</td>
</tr>
<tr>
<td>11-23 00:12</td>
<td><strong>dsv41 掉卡（281k 首打）</strong></td>
<td>系统管理</td>
<td>默认</td>
<td>有</td>
<td>同上</td>
</tr>
<tr>
<td>11-24 08:53</td>
<td><code>Error occurred</code>（未 lost）</td>
<td>系统管理</td>
<td>默认</td>
<td>—</td>
<td>同上</td>
</tr>
<tr>
<td><strong>11-24 14:23</strong></td>
<td><strong>sglang 单卡掉卡（graph 捕获）</strong></td>
<td><strong>系统管理</strong></td>
<td><strong>默认</strong></td>
<td><strong>无</strong></td>
<td>同上</td>
</tr>
<tr>
<td>11-24 16:32–16:36</td>
<td><strong>dsv41 281k × 3 全部存活</strong></td>
<td><strong>固定 150 GB</strong></td>
<td><strong>30</strong></td>
<td>有</td>
<td><strong>干净重启后</strong></td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>→ 由此可以明确一点：目前所有“掉卡”样本都发生在默认 pagefile + 默认 TdrDelay 下；而唯一“未复现”的样本发生在两个变量都改过、且刚刚重启之后。这两组不对等，因此不能把存活归因于某一个变量（§6.2）。</strong></p>
<p dir="auto"><strong><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/23f3.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--hourglass_flowing_sand" style="height:1.4em;width:auto;vertical-align:middle" title="⏳" alt="⏳" /> 未定</strong>：sglang 那条路径（单卡 graph 捕获）在<strong>当前配置</strong>下是否仍会掉卡，没有测过。</p>
<hr />
<h2>8. 已否定 / 已降权的假设（只列有实测支撑的）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>假设</th>
<th>依据</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<tr>
<td>跨卡中转缓冲随深度增长而越界</td>
<td>源码：<code>chunk_hand_bytes()</code> / <code>bounce_bytes()</code> 均为常量</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title="❌" alt="❌" /> 否定</td>
</tr>
<tr>
<td>标志先到、bounce 数据未到</td>
<td>源码：<code>xfer_put_kernel</code> 有 <code>__threadfence_system()</code> 后才发布</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title="❌" alt="❌" /> 否定（源码层面）</td>
</tr>
<tr>
<td>主机内存压力导致提交路径失败</td>
<td>本轮 3 次 281k，空闲物理内存最低仍有 <strong>47.1 GB</strong>；未见塌陷</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title="❌" alt="❌" /> 本次实测否定</td>
</tr>
<tr>
<td>功耗/供电不足</td>
<td>本轮 GPU0 578 W + GPU1 382 W 无掉卡；12pin 已由机主检查（镀银，额定 700 W）</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title="❌" alt="❌" /> 本次实测否定</td>
</tr>
<tr>
<td><code>TdrDelay</code> 是有效变量</td>
<td>§4：120 s 内核不触发 TDR</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title="❌" alt="❌" /> 否定（对本机当前配置）</td>
</tr>
<tr>
<td><code>tick_flush</code> 在 0.1.59 缺修复</td>
<td>§3.2：二进制中存在配套保护字符串</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--warning" style="height:1.4em;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️ 与论坛判断不一致</td>
</tr>
</tbody>
</table>
<hr />
<h2>附：一条给其他人的实用提醒</h2>
<p dir="auto">如果你的排查也在用 <code>TdrDelay</code> 当"排除超时"的手段，请先确认<strong>这台机的看门狗到底有没有武装</strong>——用一个纯空转内核（不碰显存）跑 2~3 分钟即可。我们这台机的结论是"没有生效"，因此在它上面 <code>TdrDelay</code> 不是一个可用的判别参数。</p>
]]></description><link>https://lcz.me/post/35700</link><guid isPermaLink="true">https://lcz.me/post/35700</guid><dc:creator><![CDATA[roid isis]]></dc:creator><pubDate>Tue, 24 Nov 2026 08:54:56 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 06:16:45 GMT]]></title><description><![CDATA[<p dir="auto">哥们~，perplexity ，用了都说好~</p>
]]></description><link>https://lcz.me/post/35662</link><guid isPermaLink="true">https://lcz.me/post/35662</guid><dc:creator><![CDATA[ivan lan]]></dc:creator><pubDate>Tue, 24 Nov 2026 06:16:45 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 05:44:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> tavily和firecrawl肯定比brave要好，firecrawl爬虫能力更强，每个月1000的免费额度，tavily差不多，也是1000额度，这俩加起来基本上也够一个月了。</p>
]]></description><link>https://lcz.me/post/35658</link><guid isPermaLink="true">https://lcz.me/post/35658</guid><dc:creator><![CDATA[roid isis]]></dc:creator><pubDate>Tue, 24 Nov 2026 05:44:49 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 05:23:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roid-isis" aria-label="Profile: roid-isis">@<bdi>roid-isis</bdi></a> 我的体验不一样，brave很垃圾，我之前一直用谷歌的，强多了，后来谷歌要改政策，我用了很久brave，我感觉不行。Duck就根本是智障。DeepSeek的搜索还挺好用。</p>
]]></description><link>https://lcz.me/post/35655</link><guid isPermaLink="true">https://lcz.me/post/35655</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Tue, 24 Nov 2026 05:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 05:15:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 搜索主要依赖搜索API服务，跟本地模型还是在线模型没关系，DS的搜索肯定是比不了本地模型加载外部api的搜索，我都是firecrawl + brave + Exa + tavily + duckduckgo，这几个基本上完爆任何国内模型搜索。这几个自带翻墙随便搜，我每天的token消耗大概在3个亿左右，一个月我用不完免费额度，所以费用也不是问题。firecrawl是深度爬虫的好手，按地域封锁的深层论坛都能给扒下来，DS的api怎么跟它比？再加上一个crawl4ai项目，我的很多深层调查全都依赖它们。</p>
]]></description><link>https://lcz.me/post/35652</link><guid isPermaLink="true">https://lcz.me/post/35652</guid><dc:creator><![CDATA[roid isis]]></dc:creator><pubDate>Tue, 24 Nov 2026 05:15:48 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 04:43:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 没办法，我的AI还是大多数跑在windows端和wsl2上，实在是没空间搞双系统。我也习惯linux，但目前游戏和某些应用就是还离不开windows，老黄的linux驱动就是差点意思，游戏帧数目前linux就是比windows差20%，和AMD那边完全不同。AMD生态是完全可以扔掉windows的。用一个Catchyos解决所有问题。</p>
]]></description><link>https://lcz.me/post/35645</link><guid isPermaLink="true">https://lcz.me/post/35645</guid><dc:creator><![CDATA[roid isis]]></dc:creator><pubDate>Tue, 24 Nov 2026 04:43:59 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 04:42:35 GMT]]></title><description><![CDATA[<p dir="auto">拉了源码看下 strata-dsv41 0.1.59 （Niko1221/Strata v0.2.13 标签下的 src/dsv41/，同源 mw00/project-maya）。核对源码和模型配置后，第七节的大半猜想可以直接排除；预计是「双因叠加」：0.1.59 在长上下文 +<br />
无 P2P 异构双卡层切下触发真实非法访存/同步 bug（为主，次概率留给魔改 4090 48G 高位物理显存），通道挂住约 2 秒触发 Windows BusReset TDR，魔改 4090 扛不住热复位最终掉成 GPU is lost。</p>
<p dir="auto">分项依据（顺答第十节 4 问）：</p>
<ol>
<li>源码直接排除的（问 1–3）：<br />
• 无 CUDA Graph（全仓零调用）；Vision 超 max_n_ 直接报错拒收，且 281K 纯文本不走视觉。<br />
• Indexer（问 1）：topk/cand 都是 32-bit int，scores 按 max_context 预分配；实际 index_topk=512，cand 裁剪门槛是 2048×8=16,384（不是 131,072），110K 早已走过。<br />
• KV 与层分配（问 2）：KV 启动时按 max_context 全量预分配不扩容。CUDA0 [0, 42] 只打最小/最大层号，实际 4090 背主干 0–12 层 + DSpark 40–42 层（KV 0.19 GB），PRO 6000 背 13–39 层 + Head（KV 0.37<br />
GB），数字严丝合缝。<br />
• 中转缓冲（问 3）：按窗口/分块固定公式分在 host-mapped pinned 内存，不按显存或 --reserve-mib 算。</li>
<li>真正的高危路径：<br />
• 软件侧（主嫌疑）：报的是 Error 700 非法访存而非超时，上游 Strata #5067 和 Maya 8c34c00 都有长上下文双卡层切 Xid 31 / illegal address 案例。重点疑点是 4090 背着 DSpark 40–42<br />
层导致每轮双向跨卡自旋，叠加 decode 期 tick_flush 动态专家表同步（上游 Maya #1086 11 月 21 日刚修过，0.1.59 停更没吃到）。另补一个疑点：cudaStreamSynchronize(s) 这个字面流名在 0.1.59 源码里只在 chunked<br />
prefill 路径（decode 全叫 <a href="http://d.st/hd.st%EF%BC%89%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%A0%B8%E4%B8%8B%E5%AE%8C%E6%95%B4%E6%97%A5%E5%BF%97%E6%97%B6%E9%97%B4%E6%88%B3%E7%9C%8B%E6%98%AF%E4%B8%8D%E6%98%AF%E5%BC%82%E6%AD%A5%E6%AE%8B%E7%95%99%E9%94%99%E8%AF%AF%E3%80%82" rel="nofollow ugc">d.st/hd.st），建议核下完整日志时间戳看是不是异步残留错误。</a><br />
• 硬件侧（次嫌疑 + 掉卡放大器，问 4）：110K 只读 KV 池前 ~21% 地址，281K 才首次高频随机读 21%–54% 物理页，不能单靠 hy4 跑通就完全排除魔改 4090 48G 高位显存颗粒问题。至于问题 4，引擎遇致命错本就会直接<br />
_Exit(3) 让服务端重拉进程；会掉成 GPU is lost 是出错后通道卡住约 2 秒（对应你拍到的 2 秒断采/util 归零）触发 WDDM BusReset TDR 把魔改卡复死了，用户态拦不住。</li>
</ol>
<p dir="auto">总结与排查建议：这大概率不是静态下标越界，没必要先二分上下文，直接做 3 步对照就能一刀定音：</p>
<ol>
<li>关 --dspark off + --no-expert-cache 重跑 281K（拿掉 4090 反向跨卡和 tick_flush，顺手把 TdrDelay 调到 30s 排除纯超时）。</li>
<li>直接拿上游最新 mw00/project-maya（v1.1.76）跑同权重同载荷，立刻验证是不是 0.1.59 老版本 bug。</li>
<li>拉大 --reserve-mib（如 16384）避开 4090 顶端显存，或单用 PRO 6000 跑 281K，一刀切开魔改 4090 硬件和双卡软件。</li>
</ol>
]]></description><link>https://lcz.me/post/35644</link><guid isPermaLink="true">https://lcz.me/post/35644</guid><dc:creator><![CDATA[ivan lan]]></dc:creator><pubDate>Tue, 24 Nov 2026 04:42:35 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 04:34:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 非常认同，window下摩擦太多了，powershell各种问题，就是你说的被印度工程师改得面目全非</p>
]]></description><link>https://lcz.me/post/35642</link><guid isPermaLink="true">https://lcz.me/post/35642</guid><dc:creator><![CDATA[ivan lan]]></dc:creator><pubDate>Tue, 24 Nov 2026 04:34:03 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 04:32:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roid-isis" aria-label="Profile: roid-isis">@<bdi>roid-isis</bdi></a> 文本创作本地模型天然劣势，知识权重不够，搜索工具也不行，用DS的API就好了，除非是特殊的需求被拒绝，怕暴露。QFN代码能力不会比HY4 Flash好，期待不高。</p>
]]></description><link>https://lcz.me/post/35640</link><guid isPermaLink="true">https://lcz.me/post/35640</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Tue, 24 Nov 2026 04:32:34 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 04:28:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 另外补充一个hy4的测试，这个模型单从写稿说人话的角度是完爆QFN，QFN真的需要在qwen4的时候加强写稿能力，我的这个感觉相信跟大多数人的感观一致。我觉得从文字工作来讲和ds4.1比，应该是基本平手甚至略好。代码还需要继续测，但效率应该还是比不上QFN。</p>
]]></description><link>https://lcz.me/post/35639</link><guid isPermaLink="true">https://lcz.me/post/35639</guid><dc:creator><![CDATA[roid isis]]></dc:creator><pubDate>Tue, 24 Nov 2026 04:28:14 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 04:25:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roid-isis" aria-label="Profile: roid-isis">@<bdi>roid-isis</bdi></a> 我不会在windows下跑AI，Linux简单粗暴稳定，没那些个事，只有极少数我必须用windows的场景，否则就是macos+Linux，已经习惯了。另外我特别依赖命令行，写代码肌肉记忆。win的命令行工具很垃圾。</p>
]]></description><link>https://lcz.me/post/35635</link><guid isPermaLink="true">https://lcz.me/post/35635</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Tue, 24 Nov 2026 04:25:36 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 04:20:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 我觉得有一部分原因是windows 26h2升级带来的。我在25h2的时候没有出现过这个问题。26H2因为内存占用更少所以还是没忍住升级了。结果就是4090 48G的魔改vbios和nv的驱动可能有判别卡死的情况，导致一旦内存寻址出错，windows没有办法用tdr把这个卡拉回来，反映就是虽然设备管理器里面还有这张卡，但是nvidia-smi里面却看不到了。官方的原版卡都没有这个问题。所以未来升级驱动和在windows下使用要格外小心。当然如果没有内存寻址错误，大概率还是可以规避这个问题。linux可以完全免疫，因为没有讨厌的wddm影响。我曾经担心是供电和内存出现了物理损坏，但现在看大概率还是软件层面的问题。</p>
]]></description><link>https://lcz.me/post/35631</link><guid isPermaLink="true">https://lcz.me/post/35631</guid><dc:creator><![CDATA[roid isis]]></dc:creator><pubDate>Tue, 24 Nov 2026 04:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 03:14:35 GMT]]></title><description><![CDATA[<p dir="auto">大雕们来分析下，尤其是很多硬件的。<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/fcys" aria-label="Profile: fcys">@<bdi>fcys</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/ivan-lan" aria-label="Profile: ivan-lan">@<bdi>ivan-lan</bdi></a></p>
]]></description><link>https://lcz.me/post/35618</link><guid isPermaLink="true">https://lcz.me/post/35618</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Tue, 24 Nov 2026 03:14:35 GMT</pubDate></item><item><title><![CDATA[Reply to 【实测】PRO 6000 96G + 4090 48G 无 P2P 跑 strata dsv41：281K token 解码第 9 秒 illegal memory access 掉卡，TDR 后 GPU is lost on Tue, 24 Nov 2026 03:13:17 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> 版主审定：本帖设为<strong>优秀</strong>，作者 <strong>+3 积分</strong>奖励，继续加油！</p>
<blockquote>
<p dir="auto">奖励凭证：优秀 +3 分 · 编号 e3309-4600-1</p>
</blockquote>
]]></description><link>https://lcz.me/post/35617</link><guid isPermaLink="true">https://lcz.me/post/35617</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Tue, 24 Nov 2026 03:13:17 GMT</pubDate></item></channel></rss>