{
 "schema_version": "1.0",
 "page_kind": "article",
 "pack_kind": "generate",
 "slug": "why-our-deepseek-night-measured-nothing",
 "title": "Why our DeepSeek night measured nothing",
 "dek": "An overnight model run on our inference server ended green and measured nothing, because inside its sandbox the baseline model could not see the card; this field note tells the diagnosis in order, the wrong turn included, and ends with the one added flag and the pre-flight probe that make the next such night fail loudly, and with what three later nights showed.",
 "published": "2026-11-26",
 "series": [
  "guide"
 ],
 "licence": "CC BY 4.0",
 "status": "pending-judge",
 "pack_note": "no judge is seated, so every chip is held",
 "notice": "items with published:false are held and are not this page's published words",
 "source": {
  "url": "https://research.strata2signal.com/why-our-deepseek-night-measured-nothing/",
  "md_url": "https://research.strata2signal.com/why-our-deepseek-night-measured-nothing/index.md",
  "md_sha": "944ccdff59a8dafcd0217fcf39d1ed1179df9ccd0214970fbb3d579d677c424e",
  "html_sha": "13fee0e0a11214eb3aa836bc181004d7f9fa752a2836a26c146424041f303c34",
  "anchors_sha": "66e7f6f6639383ca77fbe67a8c475bdd9b1f65a08554e0566b1d67faff88dd8e"
 },
 "short": {
  "paragraph": "Our overnight benches run each model inside a sandbox (bubblewrap, bwrap) with no network and a read-only view of the whole filesystem. On 2026-10-29 the baseline model, gemma4:26b on Ollama 0.32.13, loaded with \"0.0 % on card\" and wrote at 19.5 tokens a second on the CPU while the card sat at 2 MiB used; the big model's server exited before it answered; and the scheduler recorded a clean run and restored the machine. Outside the sandbox CUDA worked, and the live services on the same card were fine. A first probe showed an AppArmor label on the sandboxed process, so we blamed AppArmor, installed an unconfined copy of bwrap, and watched CUDA fail exactly as before; it was removed the same day. Two more probes bisected the sandbox's own flags: a writable root works, a read-only root fails with cuInit 304, and a writable /proc alone, under the stock confined bwrap, fixes it. Two things had changed since the last good night, two days earlier, and we did not separate them: this sandbox was new (that night the same model ran on the card with no sandbox at all, which we found only while checking this page), and a reboot had brought kernel 7.0.0-38-generic and NVIDIA driver 595.99.02. Which exact thing under /proc CUDA needs, and whether this sandbox would also have failed on the older kernel and driver, we did not establish. A GPU job that cannot see its GPU often does not fail; it gets slow and quiet.",
  "from_dek": false,
  "counts": {
   "words": 2796,
   "minutes": 13,
   "tables": 0,
   "kit": false
  },
  "bullets": []
 },
 "sections": [
  {
   "id": "what-happened",
   "heading": "What happened",
   "level": 2,
   "span": [
    2879,
    4572
   ],
   "chunks": [
    [
     2879,
     4572
    ]
   ],
   "chars": 1693,
   "digest": null,
   "digest_skipped": null
  },
  {
   "id": "the-clue",
   "heading": "The clue",
   "level": 2,
   "span": [
    4572,
    6074
   ],
   "chunks": [
    [
     4572,
     6074
    ]
   ],
   "chars": 1502,
   "digest": "the server's live services worked on the card, suggesting the driver and host were fine. the fault lay in the sandbox environment, a system unit using bubblewrap to create a private view of the filesystem and network via user namespaces and bind mounts.",
   "digest_skipped": null
  },
  {
   "id": "the-wrong-turn",
   "heading": "The wrong turn, told honestly",
   "level": 2,
   "span": [
    6074,
    8823
   ],
   "chunks": [
    [
     6074,
     8823
    ]
   ],
   "chars": 2749,
   "digest": null,
   "digest_skipped": null
  },
  {
   "id": "the-bisection",
   "heading": "The bisection",
   "level": 2,
   "span": [
    8823,
    11523
   ],
   "chunks": [
    [
     8823,
     11523
    ]
   ],
   "chars": 2700,
   "digest": "testing varied the sandbox flags and found that a writable root worked, but a read-only root caused failure. specifically, a writable /proc fixed the issue, while a writable /sys did not. the confinement of the stock bubblewrap did not prevent CUDA from working when /proc was writable.",
   "digest_skipped": null
  },
  {
   "id": "what-changed",
   "heading": "What changed, and what we did not establish",
   "level": 2,
   "span": [
    11523,
    13251
   ],
   "chunks": [
    [
     11523,
     13251
    ]
   ],
   "chars": 1728,
   "digest": null,
   "digest_skipped": null
  },
  {
   "id": "the-fix-and-the-guard",
   "heading": "The fix and the guard",
   "level": 2,
   "span": [
    13251,
    15040
   ],
   "chunks": [
    [
     13251,
     15040
    ]
   ],
   "chars": 1789,
   "digest": "the fix involves adding --bind /proc /proc to the bubblewrap command so the host's /proc is writable. a pre-flight probe was also added to run cuInit(0) and check the device count inside the fence, making any failure to see the card loud before the model loads.",
   "digest_skipped": null
  },
  {
   "id": "what-happened-next",
   "heading": "What happened next",
   "level": 2,
   "span": [
    15040,
    17038
   ],
   "chunks": [
    [
     15040,
     17038
    ]
   ],
   "chars": 1998,
   "digest": null,
   "digest_skipped": null
  },
  {
   "id": "what-this-cannot-say",
   "heading": "What this cannot say",
   "level": 2,
   "span": [
    17038,
    17384
   ],
   "chunks": [
    [
     17038,
     17384
    ]
   ],
   "chars": 346,
   "digest": "the article does not cover other sandboxes, such as those using a fresh /proc or a vendor toolkit, nor does it report the DeepSeek results from the re-run.",
   "digest_skipped": null
  },
  {
   "id": "who-ran-this-and-thanks",
   "heading": "Who ran this, and thanks",
   "level": 2,
   "span": [
    17384,
    18085
   ],
   "chunks": [
    [
     17384,
     18085
    ]
   ],
   "chars": 701,
   "digest": null,
   "digest_skipped": "credits"
  },
  {
   "id": "sources",
   "heading": "Sources",
   "level": 2,
   "span": [
    18085,
    19883
   ],
   "chunks": [
    [
     18085,
     19883
    ]
   ],
   "chars": 1798,
   "digest": "the article provides sources for bubblewrap, the CUDA driver API, Ollama, Ubuntu's namespace restrictions, and Linux manual pages.",
   "digest_skipped": null
  }
 ],
 "chips": [
  {
   "id": "c-2cb8fa11",
   "q": "how did the inference server behave during the scheduled window?",
   "a": "The anchor model finished with exit code 0 in 167.7 seconds, but the run was void because the model loaded into system memory instead of the GPU. The main model never answered, and the scheduler incorrectly reported the night as a success.",
   "cites": [
    "what-happened"
   ],
   "published": false,
   "publish_state": "held",
   "quote": "",
   "quote_cite": ""
  },
  {
   "id": "c-0ca0118b",
   "q": "how did the initial attempt to fix the issue fail?",
   "a": "The team incorrectly identified AppArmor confinement as the cause. They installed a dedicated, unconfined copy of bwrap, but CUDA still returned error 304, indicating that changing the security profile did not resolve the operating system error.",
   "cites": [
    "the-wrong-turn"
   ],
   "published": false,
   "publish_state": "held",
   "quote": "",
   "quote_cite": ""
  },
  {
   "id": "c-7b022f2b",
   "q": "what variables changed between the successful and failed runs?",
   "a": "The sandbox configuration changed, as the new fence lacked the `--unshare-pid` and `--proc` flags used previously. Additionally, the machine underwent an operating-system update, moving to kernel 7.0.0-38-generic and NVIDIA driver 595.99.02.",
   "cites": [
    "what-changed"
   ],
   "published": false,
   "publish_state": "held",
   "quote": "",
   "quote_cite": ""
  },
  {
   "id": "c-8072ba5b",
   "q": "what happened during the subsequent test runs?",
   "a": "The fix held for three later nights. One night failed due to a different issue regarding a `.nv/ComputeCache` folder being created in the home directory, which was subsequently resolved by moving the cache path.",
   "cites": [
    "what-happened-next"
   ],
   "published": false,
   "publish_state": "held",
   "quote": "",
   "quote_cite": ""
  }
 ],
 "related": [
  {
   "slug": "what-a-sandbox-actually-fences",
   "why": "shares ground with § The bisection · § The read-only root that broke CUDA"
  },
  {
   "slug": "mixture-of-experts-in-plain-words",
   "why": "shares ground with § The clue · § Two numbers on every model card"
  },
  {
   "slug": "when-a-model-does-not-fit-in-plain-words",
   "why": "shares ground with § The clue · § What pushes a model off the card"
  }
 ],
 "thanks": "## Who ran this, and thanks {#who-ran-this-and-thanks}\n\nThanks to the bubblewrap project, to Ubuntu and the AppArmor project, to the Linux kernel's maintainers, to NVIDIA for the CUDA driver, to the Ollama project, and to Google for the Gemma models. Software this page stood on: Ubuntu's stock `bwrap` and its `bwrap-userns-restrict` AppArmor profile, Linux 7.0.0-38-generic, NVIDIA driver 595.99.02, Ollama 0.32.13, Python 3's `ctypes` and systemd's `systemd-run`. A small human team ran the three probes on the server by hand and ruled on each step, the wrong one included; a fleet of AI agents wrote the probes, read the outputs, kept the records and drafted this page under that team's rulings.",
 "kit": null,
 "seat_class": {
  "writer": "gemma-class",
  "judge": null,
  "writer_runtime": "vllm"
 },
 "bench": {
  "bullets_written": 3,
  "bullets_kept": 0,
  "digests_written": 9,
  "digests_kept": 5,
  "chips_written": 8,
  "chips_kept": 4,
  "chips_grounded": 0,
  "chips_published": 0,
  "dropped_by": {
   "new_noun": 1,
   "figure": 1,
   "length": 2,
   "cite": 0,
   "judge": 0,
   "quote": 0,
   "directive": 0,
   "redaction": 1,
   "profanity": 0,
   "identifier": 0,
   "bare_figure": 1,
   "house_voice": 0,
   "editorial": 0,
   "hand-edit": 5
  },
  "new_noun_tokens_checked": [
   "0",
   "167.7",
   "201.82",
   "26b",
   "304",
   "595.99.02",
   "6000",
   "7.0.0-38-generic",
   "96",
   "API",
   "AppArmor",
   "CUDA",
   "DeepSeek",
   "Edition",
   "Flash",
   "GB",
   "GPU",
   "Linux",
   "NVIDIA",
   "OS",
   "Ollama",
   "PRO",
   "RTX",
   "Ubuntu's",
   "V4.1",
   "Workstation",
   "gemma4"
  ],
  "new_noun_tokens_withheld": 2,
  "figure_definition": "v3",
  "figure_boundary": "guarded",
  "drops": [
   {
    "kind": "digest",
    "reason": "redaction",
    "item": null,
    "item_chars": 304,
    "withheld": "a string carrying a fenced literal",
    "detail": ""
   },
   {
    "kind": "bullet",
    "reason": "figure",
    "item": "the anchor model finished with an exit code of 0",
    "detail": "terminal token carries no figure"
   },
   {
    "kind": "bullet",
    "reason": "bare_figure",
    "item": "the anchor model on the card wrote 201.82",
    "detail": "the cited section writes this figure as '201.82 tokens' and the bullet prints '201.82' alone"
   },
   {
    "kind": "bullet",
    "reason": "new_noun",
    "item": null,
    "item_chars": 2,
    "withheld": "a string naming something the article does not",
    "detail": ""
   },
   {
    "kind": "chip",
    "reason": "length",
    "item": "which specific sandbox flag caused the CUDA initialization to fail?",
    "detail": "q not lowercase"
   },
   {
    "kind": "chip",
    "reason": "length",
    "item": "how was the GPU access issue finally resolved?",
    "detail": "q not lowercase"
   },
   {
    "kind": "digest",
    "reason": "hand-edit",
    "item": null,
    "item_chars": 267,
    "text_sha": "ceeebe804ae2",
    "section": "the-wrong-turn",
    "withheld": "one section digest removed from this pack by hand",
    "removed_utc": "2026-11-24",
    "why": "The label is what we fixed on.",
    "detail": "removed from this pack by hand on 2026-11-24 (UTC), after the writer ran and after the gates had counted: The label is what we fixed on. Not a gate drop, and recorded here so the ledger adds up."
   },
   {
    "kind": "digest",
    "reason": "hand-edit",
    "item": null,
    "item_chars": 265,
    "text_sha": "c23f8658b401",
    "section": "what-changed",
    "withheld": "one section digest removed from this pack by hand",
    "removed_utc": "2026-11-24",
    "why": "whether this fence would also have failed on the older kernel and driver",
    "detail": "removed from this pack by hand on 2026-11-24 (UTC), after the writer ran and after the gates had counted: whether this fence would also have failed on the older kernel and driver. Not a gate drop, and recorded here so the ledger adds up."
   },
   {
    "kind": "digest",
    "reason": "hand-edit",
    "item": null,
    "item_chars": 262,
    "text_sha": "7fa435b46139",
    "section": "what-happened-next",
    "withheld": "one section digest removed from this pack by hand",
    "removed_utc": "2026-11-24",
    "why": "so this is not a clean test of the sandbox alone",
    "detail": "removed from this pack by hand on 2026-11-24 (UTC), after the writer ran and after the gates had counted: so this is not a clean test of the sandbox alone. Not a gate drop, and recorded here so the ledger adds up."
   },
   {
    "kind": "chip",
    "reason": "hand-edit",
    "item": null,
    "item_chars": 305,
    "text_sha": "43d31d7dcbf0",
    "chip_id": "c-b937e966",
    "withheld": "one chip removed from this pack by hand",
    "removed_utc": "2026-11-24",
    "why": "the fault was in the row's environment, a system unit with memory and network limits and, inside it, the sandbox.",
    "detail": "removed from this pack by hand on 2026-11-24 (UTC), after the writer ran and after the gates had counted: the fault was in the row's environment, a system unit with memory and network limits and, inside it, the sandbox. Not a gate drop, and recorded here so the ledger adds up."
   },
   {
    "kind": "chip",
    "reason": "hand-edit",
    "item": null,
    "item_chars": 252,
    "text_sha": "a40714ee0446",
    "chip_id": "c-2e3f4108",
    "withheld": "one chip removed from this pack by hand",
    "removed_utc": "2026-11-24",
    "why": "The night this note is about measured nothing.",
    "detail": "removed from this pack by hand on 2026-11-24 (UTC), after the writer ran and after the gates had counted: The night this note is about measured nothing. Not a gate drop, and recorded here so the ledger adds up."
   }
  ]
 },
 "generated_utc": "2026-11-24T13:22:33Z"
}
