[GH-ISSUE #5171] [Engine] dsv41 0.2.10: under a one-node binding the CPU lane's copy goes into one NUMA part sized by the whole machine's free RAM, leaving that node about 1 GiB free (0.2.9 split it in two) #3075

Open
opened 2026-11-07 14:37:51 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Norhiro on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5171

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)

What happened

On a 2-socket host, with the serve started bound to NUMA node 0 (CPU affinity and MPOL_BIND, the equivalent of numactl --cpunodebind=0 --membind=0), 0.2.10's DeepSeek V4.1 engine copies the whole CPU lane (117 GB) into one part on node 0 (126 GiB). Node 0 is left with about 1 GiB free; node 1 keeps about 100 GiB free. 0.2.9, with the same command and binding, makes 2 parts, one per node.

Consequences seen here:

  • Twice during load (a 0.2.10 start right after a 0.2.9 run), systemd-oomd killed the whole cgroup at memory pressure 89% > 80% for 20 s. A rerun of the same sequence loaded with peak pressure 30%, so this is not reproduced every time.
  • Once loaded, the kernel OOM killer took the engine after 15-16 GiB of other memory that was itself bound to node 0 (CONSTRAINT_MEMORY_POLICY, nodemask=0), while node 1 had 95.6 GiB free. With ordinary (unbound or MPOL_PREFERRED) memory pressure the engine survived 60 GiB more: that memory spilled to node 1.

Expected: either the copy is split across the nodes as in 0.2.9, or the fit check counts only the memory the process may use on its allowed nodes, or the start-up prints a warning when one part is chosen on a multi-node host.

What works (measured, 0.2.10)

Launch Copy Engine tok/s (repeated 64-token prompt, median) Node 0 free min Swap max Pressure max
bound to node 0 (MPOL_BIND) 1 part, 6 threads 12.96 0.6 GiB 5.3 GiB 47% (load)
node 0 preferred (MPOL_PREFERRED) 1 part, 6 threads 13.51 0.6 GiB 0.7 GiB 11%
no binding 2 parts, 12 threads 18.71 0.7 GiB 0.7 GiB 0%
bound + --mmap-experts on in place 13.62 0.6 GiB 8.0 GiB (full) 87% (load)

Each run had 60 GiB of extra memory taken on node 0 by a MPOL_PREFERRED process; none was killed. Unbound, 0.2.10 equals 0.2.9 on varied prompts (6.85 vs 6.95 tok/s, 36 samples each, 95% CI of the ratio 0.88-1.08). So the practical answer is: do not bind. --mmap-experts on under a binding was the worst choice here (swap full, pressure near oomd's limit during load).

Suspected cause (unconfirmed static analysis, src/dsv41/ds4_model.cu)

  • node_threads() (around line 186) is new in 0.2.10 in dropping CPUs outside sched_getaffinity; under a node-0 binding it returns node 0 only.
  • The part count is nh = min(2, cores.size()) (around line 5892), so 1, and node_map(bytes, 0, 1) does no mbind: the copy follows the process policy onto node 0.
  • The fit check uses ram_avail() (around line 226): /proc/meminfo MemAvailable and cgroup memory.max, not the memory policy or cpuset.mems, so it counts node 1's free memory.
  • 0.2.9 has no affinity filter, sees 2 nodes, makes 2 parts and mbinds part 1 to node 1 (a VMA policy overrides the task's MPOL_BIND).

A patch, built and tried (against v0.2.10 / main ffa80d7)

The patch is below (src/dsv41/ds4_model.cu only, +75 lines). It does two things:

  1. bound_nodes_avail(): on Linux, when the process may allocate on some nodes only (Mems_allowed_list, or a strict MPOL_BIND from get_mempolicy), it sums MemFree + Active(file) + Inactive(file) + KReclaimable over those nodes (node meminfo). ram_avail() takes the minimum of that and MemAvailable. Unbound and MPOL_PREFERRED processes are unchanged.
  2. A start-up line when the copy is one NUMA part on a multi-node host (and DS4_COPY_NUMA is unset).

Result on this host (one start each, then one request, answered correctly):

  • Bound to node 0: fit the RAM this process can get (121.4 GB beside 9 GB for the rest) (before: 252.1 GB), and the new line the CPU lane's copy goes into 1 NUMA part: this process may run on 1 of the host's 2 NUMA nodes (its CPU affinity), so the copy and its threads stay there; started unbound, it takes 2 parts and both nodes' threads. The 117.7 GB copy still fits 121.4 GB (node 0's reclaimable page cache counts), so it is still taken as one part. The budget is now right, but here it does not change the outcome.
  • Unbound: unchanged (252.1 GB, 2 NUMA parts, 12 threads), no new line.

So the patch makes the situation visible and the budget honest. Keeping headroom on a bound node would take a policy choice I left to you: a larger margin when bound, counting only MemFree + Inactive(file), or refusing the one-part copy when another node has room. Not run: memory pressure against the patched engine, a start from a cold page cache, Windows or macOS (the new code is Linux-only and returns "no limit" elsewhere).

dsv41-numa-bound-fit.patch (against ffa80d7)
diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu
index 91835edb..077c00a9 100644
--- a/src/dsv41/ds4_model.cu
+++ b/src/dsv41/ds4_model.cu
@@ -73,6 +73,10 @@ extern "C" void ds4_busy_end();
 #include <sstream>
 #include <thread>
 #include <unordered_map>
+#if defined(__linux__)
+#include <sys/syscall.h>   // get_mempolicy (bound_nodes_avail)
+#include <unistd.h>
+#endif
 
 #if defined(_MSC_VER)
 #define strtok_r strtok_s
@@ -223,6 +227,61 @@ std::vector<std::vector<os::Core>> node_threads() {
 // anonymous memory on one NUMA node (node < 0: wherever the first touch puts it), transparent huge pages
 void* node_map(size_t bytes, int node, int n_nodes) { return os::anon_alloc(bytes, node, n_nodes); }
 void pin_self(int cpu) { os::pin_self(cpu); }
+// Linux: when this process may allocate on some NUMA nodes only (a cpuset's mems, or a strict MPOL_BIND policy as
+// `numactl --membind` sets), what those nodes can still give: each one's MemFree plus its reclaimable file pages and kernel
+// caches (node meminfo; MemAvailable's terms without the watermarks).  ~0 when every node with memory is allowed (or not
+// known): MemAvailable counts the whole machine, which a bound process cannot use (a whole CPU lane copy went onto one
+// 126 GiB node with the other node free, then the kernel's OOM killer took the engine, CONSTRAINT_MEMORY_POLICY).
+uint64_t bound_nodes_avail() {
+#if defined(__linux__)
+    std::vector<int> with_mem;   // nodes that have memory
+    for (int n = 0; n < 64; ++n) {
+        const std::string mi = read_file("/sys/devices/system/node/node" + std::to_string(n) + "/meminfo");
+        if (mi.empty()) break;
+        with_mem.push_back(n);
+    }
+    if (with_mem.size() < 2) return ~uint64_t{0};
+    std::vector<char> ok(64, 1);
+    {   // a cpuset's mems (Mems_allowed_list, e.g. "0" or "0-1")
+        const std::string st = read_file("/proc/self/status");
+        const size_t at = st.find("Mems_allowed_list:");
+        if (at != std::string::npos) {
+            std::string l = st.substr(at + 18);
+            l = l.substr(0, l.find('\n'));
+            const std::vector<int> m = cpu_list(l);
+            if (!m.empty()) {
+                std::fill(ok.begin(), ok.end(), 0);
+                for (int n : m)
+                    if (n >= 0 && n < 64) ok[(size_t) n] = 1;
+            }
+        }
+    }
+    {   // a strict memory policy (MPOL_BIND = 2); preferred and interleave policies may still use the other nodes
+        int mode = 0;
+        unsigned long mask[2] = {0, 0};
+        if (syscall(SYS_get_mempolicy, &mode, mask, (unsigned long) (sizeof mask * 8), nullptr, 0UL) == 0 && mode == 2)
+            for (int n = 0; n < 64; ++n)
+                if (!((mask[n / (int) (8 * sizeof(unsigned long))] >> (n % (int) (8 * sizeof(unsigned long)))) & 1UL)) ok[(size_t) n] = 0;
+    }
+    bool all = true;
+    for (int n : with_mem) all = all && ok[(size_t) n];
+    if (all) return ~uint64_t{0};
+    uint64_t sum = 0;
+    for (int n : with_mem) {
+        if (!ok[(size_t) n]) continue;
+        std::istringstream mi(read_file("/sys/devices/system/node/node" + std::to_string(n) + "/meminfo"));
+        std::string node, id, k;   // "Node 0 MemFree:   123 kB"
+        uint64_t kb = 0;
+        while (mi >> node >> id >> k >> kb) {
+            if (k == "MemFree:" || k == "Active(file):" || k == "Inactive(file):" || k == "KReclaimable:") sum += kb << 10;
+            mi.ignore(64, '\n');
+        }
+    }
+    return sum;
+#else
+    return ~uint64_t{0};
+#endif
+}
 // the RAM this process can still get: MemAvailable, and below it the tightest cgroup v2 limit on the way to the root
 // (its limit less what is charged, the page cache counted as free: the kernel takes it back); ~0: not known
 uint64_t ram_avail() {
@@ -239,6 +298,7 @@ uint64_t ram_avail() {
             mi.ignore(64, '\n');
         }
     }
+    avail = std::min(avail, bound_nodes_avail());
     std::string cg = read_file("/proc/self/cgroup");   // "0::/user.slice/..."
     const size_t at = cg.find("0::");
     if (at == std::string::npos) return avail;
@@ -5893,6 +5953,18 @@ struct Model::Impl {
         if (const char* v = std::getenv("DS4_COPY_NUMA"))   // (0 / 1: one part; 2: two, even on one node - a test)
             nh = std::atoi(v) >= 2 ? 2 : 1;
         if (g.ff % nh != 0 || g.dim % nh != 0) nh = 1;
+        if (nh == 1 && std::getenv("DS4_COPY_NUMA") == nullptr) {   // a multi-node host whose other nodes' CPUs this process may not use
+            int host_nodes = 0;
+            for (int n = 0; n < 64; ++n) {
+                const std::string cl = read_file("/sys/devices/system/node/node" + std::to_string(n) + "/cpulist");
+                if (cl.empty()) break;
+                if (cl.find_first_of("0123456789") != std::string::npos) ++host_nodes;
+            }
+            if (host_nodes > 1)
+                std::fprintf(stderr, "ds4: the CPU lane's copy goes into 1 NUMA part: this process may run on %zu of the host's %d NUMA nodes "
+                                     "(its CPU affinity), so the copy and its threads stay there; started unbound, it takes 2 parts and "
+                                     "both nodes' threads\n", cores.size(), host_nodes);
+        }
         NH = nh;
         cp_lay.assign(L.size(), {0, 0, 0, 0});
         for (const Layer& l : L) {

Smallest steps or command that reproduce it

  1. 2-socket Linux host, 2 × 126 GiB nodes. numactl --cpunodebind=0 --membind=0 python serve/server.py --engine strata --config cfg-ds-0210.json, with the config running build/strata-dsv41 --pack <deepseek-v4.1-flash-ist-das-2.00bpw> --max-context 8192 --eos 1 --dspark auto --dspark-conf 0.65 (the serve adds --serve --layer-split auto).
  2. The log reports --mmap-experts auto: ... fit the RAM this process can get (252.1 GB ...) and copied into RAM (117.0 GB, 1 NUMA part), 6 threads. /sys/devices/system/node/node0/meminfo MemFree is about 1 GiB.
  3. Allocate memory bound to node 0 from another process (1 GiB every 15 s): the kernel kills strata-dsv41 at 15-16 GiB.

The same with 0.2.9 prints copied into RAM (117.1 GB, 2 NUMA parts), 12 threads.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.10 (ffa80d7, engine 0.1.56), own AVX build (STRATA_ISA_FLOOR=avx); compared with 0.2.9

Graphics card, memory and system

RTX 5060 Ti 16 GB + RTX 3060 12 GB (layer split), 2 x Xeon E5-2630 v2 (AVX only, 2 NUMA nodes x 126 GiB), Fedora 44, kernel 7.2.5, driver 610.57.04, systemd-oomd on

Model, size and settings

DeepSeek V4.1 Flash, IST-DAS 2.00 bpw pack (117 GB on the CPU lane), --max-context 8192, --mmap-experts auto (default)

Logs

0.2.10 under the node-0 binding:

ds4: --mmap-experts auto: the CPU lane's experts (117.7 GB) fit the RAM this process can get (252.1 GB beside 9 GB for the rest): copied in at load, no demand store (--mmap-experts on keeps them in place)
ds4: 13617 of the CPU lane's 13617 experts copied into RAM (117.0 GB, 1 NUMA part) in 31.1 s

0.2.9, same binding:

ds4: 13626 of the CPU lane's 13626 experts copied into RAM (117.1 GB, 2 NUMA parts) in 71.4 s

Kernel (memory bound to node 0 by another process, node 1 MemFree 95.6 GiB):

oom-kill:constraint=CONSTRAINT_MEMORY_POLICY,nodemask=0,cpuset=user.slice,mems_allowed=0-1,global_oom,...,task=strata-dsv41,...
Out of memory: Killed process ... (strata-dsv41) total-vm:425981944kB, anon-rss:107959240kB, ...

systemd-oomd during a 0.2.10 load right after a 0.2.9 run:

Killed .../app.slice/ptyxis-spawn-....scope due to memory pressure for .../app.slice being 89.20% > 80.00% for > 20s with reclaim activity
Originally created by @Norhiro on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5171 ### Area [Engine] (speed, kernels, models, the server and API) ### Desktop app, Terminal or source? Source (START-HERE.bat, setup.sh or a build) ### What happened On a 2-socket host, with the serve started bound to NUMA node 0 (CPU affinity and `MPOL_BIND`, the equivalent of `numactl --cpunodebind=0 --membind=0`), 0.2.10's DeepSeek V4.1 engine copies the whole CPU lane (117 GB) into one part on node 0 (126 GiB). Node 0 is left with about 1 GiB free; node 1 keeps about 100 GiB free. 0.2.9, with the same command and binding, makes 2 parts, one per node. Consequences seen here: - Twice during load (a 0.2.10 start right after a 0.2.9 run), systemd-oomd killed the whole cgroup at memory pressure 89% > 80% for 20 s. A rerun of the same sequence loaded with peak pressure 30%, so this is not reproduced every time. - Once loaded, the kernel OOM killer took the engine after 15-16 GiB of other memory that was itself bound to node 0 (`CONSTRAINT_MEMORY_POLICY, nodemask=0`), while node 1 had 95.6 GiB free. With ordinary (unbound or `MPOL_PREFERRED`) memory pressure the engine survived 60 GiB more: that memory spilled to node 1. Expected: either the copy is split across the nodes as in 0.2.9, or the fit check counts only the memory the process may use on its allowed nodes, or the start-up prints a warning when one part is chosen on a multi-node host. #### What works (measured, 0.2.10) | Launch | Copy | Engine tok/s (repeated 64-token prompt, median) | Node 0 free min | Swap max | Pressure max | |---|---|---|---|---|---| | bound to node 0 (`MPOL_BIND`) | 1 part, 6 threads | 12.96 | 0.6 GiB | 5.3 GiB | 47% (load) | | node 0 preferred (`MPOL_PREFERRED`) | 1 part, 6 threads | 13.51 | 0.6 GiB | 0.7 GiB | 11% | | **no binding** | **2 parts, 12 threads** | **18.71** | 0.7 GiB | 0.7 GiB | 0% | | bound + `--mmap-experts on` | in place | 13.62 | 0.6 GiB | 8.0 GiB (full) | 87% (load) | Each run had 60 GiB of extra memory taken on node 0 by a `MPOL_PREFERRED` process; none was killed. Unbound, 0.2.10 equals 0.2.9 on varied prompts (6.85 vs 6.95 tok/s, 36 samples each, 95% CI of the ratio 0.88-1.08). So the practical answer is: do not bind. `--mmap-experts on` under a binding was the worst choice here (swap full, pressure near oomd's limit during load). #### Suspected cause (unconfirmed static analysis, src/dsv41/ds4_model.cu) - `node_threads()` (around line 186) is new in 0.2.10 in dropping CPUs outside `sched_getaffinity`; under a node-0 binding it returns node 0 only. - The part count is `nh = min(2, cores.size())` (around line 5892), so 1, and `node_map(bytes, 0, 1)` does no `mbind`: the copy follows the process policy onto node 0. - The fit check uses `ram_avail()` (around line 226): `/proc/meminfo` MemAvailable and cgroup `memory.max`, not the memory policy or `cpuset.mems`, so it counts node 1's free memory. - 0.2.9 has no affinity filter, sees 2 nodes, makes 2 parts and `mbind`s part 1 to node 1 (a VMA policy overrides the task's `MPOL_BIND`). #### A patch, built and tried (against v0.2.10 / main ffa80d7) The patch is below (src/dsv41/ds4_model.cu only, +75 lines). It does two things: 1. `bound_nodes_avail()`: on Linux, when the process may allocate on some nodes only (`Mems_allowed_list`, or a strict `MPOL_BIND` from `get_mempolicy`), it sums MemFree + Active(file) + Inactive(file) + KReclaimable over those nodes (node meminfo). `ram_avail()` takes the minimum of that and MemAvailable. Unbound and `MPOL_PREFERRED` processes are unchanged. 2. A start-up line when the copy is one NUMA part on a multi-node host (and `DS4_COPY_NUMA` is unset). Result on this host (one start each, then one request, answered correctly): - Bound to node 0: `fit the RAM this process can get (121.4 GB beside 9 GB for the rest)` (before: 252.1 GB), and the new line `the CPU lane's copy goes into 1 NUMA part: this process may run on 1 of the host's 2 NUMA nodes (its CPU affinity), so the copy and its threads stay there; started unbound, it takes 2 parts and both nodes' threads`. The 117.7 GB copy still fits 121.4 GB (node 0's reclaimable page cache counts), so it is still taken as one part. The budget is now right, but here it does not change the outcome. - Unbound: unchanged (252.1 GB, 2 NUMA parts, 12 threads), no new line. So the patch makes the situation visible and the budget honest. Keeping headroom on a bound node would take a policy choice I left to you: a larger margin when bound, counting only MemFree + Inactive(file), or refusing the one-part copy when another node has room. Not run: memory pressure against the patched engine, a start from a cold page cache, Windows or macOS (the new code is Linux-only and returns "no limit" elsewhere). <details><summary>dsv41-numa-bound-fit.patch (against ffa80d7)</summary> ```diff diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 91835edb..077c00a9 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -73,6 +73,10 @@ extern "C" void ds4_busy_end(); #include <sstream> #include <thread> #include <unordered_map> +#if defined(__linux__) +#include <sys/syscall.h> // get_mempolicy (bound_nodes_avail) +#include <unistd.h> +#endif #if defined(_MSC_VER) #define strtok_r strtok_s @@ -223,6 +227,61 @@ std::vector<std::vector<os::Core>> node_threads() { // anonymous memory on one NUMA node (node < 0: wherever the first touch puts it), transparent huge pages void* node_map(size_t bytes, int node, int n_nodes) { return os::anon_alloc(bytes, node, n_nodes); } void pin_self(int cpu) { os::pin_self(cpu); } +// Linux: when this process may allocate on some NUMA nodes only (a cpuset's mems, or a strict MPOL_BIND policy as +// `numactl --membind` sets), what those nodes can still give: each one's MemFree plus its reclaimable file pages and kernel +// caches (node meminfo; MemAvailable's terms without the watermarks). ~0 when every node with memory is allowed (or not +// known): MemAvailable counts the whole machine, which a bound process cannot use (a whole CPU lane copy went onto one +// 126 GiB node with the other node free, then the kernel's OOM killer took the engine, CONSTRAINT_MEMORY_POLICY). +uint64_t bound_nodes_avail() { +#if defined(__linux__) + std::vector<int> with_mem; // nodes that have memory + for (int n = 0; n < 64; ++n) { + const std::string mi = read_file("/sys/devices/system/node/node" + std::to_string(n) + "/meminfo"); + if (mi.empty()) break; + with_mem.push_back(n); + } + if (with_mem.size() < 2) return ~uint64_t{0}; + std::vector<char> ok(64, 1); + { // a cpuset's mems (Mems_allowed_list, e.g. "0" or "0-1") + const std::string st = read_file("/proc/self/status"); + const size_t at = st.find("Mems_allowed_list:"); + if (at != std::string::npos) { + std::string l = st.substr(at + 18); + l = l.substr(0, l.find('\n')); + const std::vector<int> m = cpu_list(l); + if (!m.empty()) { + std::fill(ok.begin(), ok.end(), 0); + for (int n : m) + if (n >= 0 && n < 64) ok[(size_t) n] = 1; + } + } + } + { // a strict memory policy (MPOL_BIND = 2); preferred and interleave policies may still use the other nodes + int mode = 0; + unsigned long mask[2] = {0, 0}; + if (syscall(SYS_get_mempolicy, &mode, mask, (unsigned long) (sizeof mask * 8), nullptr, 0UL) == 0 && mode == 2) + for (int n = 0; n < 64; ++n) + if (!((mask[n / (int) (8 * sizeof(unsigned long))] >> (n % (int) (8 * sizeof(unsigned long)))) & 1UL)) ok[(size_t) n] = 0; + } + bool all = true; + for (int n : with_mem) all = all && ok[(size_t) n]; + if (all) return ~uint64_t{0}; + uint64_t sum = 0; + for (int n : with_mem) { + if (!ok[(size_t) n]) continue; + std::istringstream mi(read_file("/sys/devices/system/node/node" + std::to_string(n) + "/meminfo")); + std::string node, id, k; // "Node 0 MemFree: 123 kB" + uint64_t kb = 0; + while (mi >> node >> id >> k >> kb) { + if (k == "MemFree:" || k == "Active(file):" || k == "Inactive(file):" || k == "KReclaimable:") sum += kb << 10; + mi.ignore(64, '\n'); + } + } + return sum; +#else + return ~uint64_t{0}; +#endif +} // the RAM this process can still get: MemAvailable, and below it the tightest cgroup v2 limit on the way to the root // (its limit less what is charged, the page cache counted as free: the kernel takes it back); ~0: not known uint64_t ram_avail() { @@ -239,6 +298,7 @@ uint64_t ram_avail() { mi.ignore(64, '\n'); } } + avail = std::min(avail, bound_nodes_avail()); std::string cg = read_file("/proc/self/cgroup"); // "0::/user.slice/..." const size_t at = cg.find("0::"); if (at == std::string::npos) return avail; @@ -5893,6 +5953,18 @@ struct Model::Impl { if (const char* v = std::getenv("DS4_COPY_NUMA")) // (0 / 1: one part; 2: two, even on one node - a test) nh = std::atoi(v) >= 2 ? 2 : 1; if (g.ff % nh != 0 || g.dim % nh != 0) nh = 1; + if (nh == 1 && std::getenv("DS4_COPY_NUMA") == nullptr) { // a multi-node host whose other nodes' CPUs this process may not use + int host_nodes = 0; + for (int n = 0; n < 64; ++n) { + const std::string cl = read_file("/sys/devices/system/node/node" + std::to_string(n) + "/cpulist"); + if (cl.empty()) break; + if (cl.find_first_of("0123456789") != std::string::npos) ++host_nodes; + } + if (host_nodes > 1) + std::fprintf(stderr, "ds4: the CPU lane's copy goes into 1 NUMA part: this process may run on %zu of the host's %d NUMA nodes " + "(its CPU affinity), so the copy and its threads stay there; started unbound, it takes 2 parts and " + "both nodes' threads\n", cores.size(), host_nodes); + } NH = nh; cp_lay.assign(L.size(), {0, 0, 0, 0}); for (const Layer& l : L) { ``` </details> ### Smallest steps or command that reproduce it 1. 2-socket Linux host, 2 × 126 GiB nodes. `numactl --cpunodebind=0 --membind=0 python serve/server.py --engine strata --config cfg-ds-0210.json`, with the config running `build/strata-dsv41 --pack <deepseek-v4.1-flash-ist-das-2.00bpw> --max-context 8192 --eos 1 --dspark auto --dspark-conf 0.65` (the serve adds `--serve --layer-split auto`). 2. The log reports `--mmap-experts auto: ... fit the RAM this process can get (252.1 GB ...)` and `copied into RAM (117.0 GB, 1 NUMA part)`, 6 threads. `/sys/devices/system/node/node0/meminfo` MemFree is about 1 GiB. 3. Allocate memory bound to node 0 from another process (1 GiB every 15 s): the kernel kills `strata-dsv41` at 15-16 GiB. The same with 0.2.9 prints `copied into RAM (117.1 GB, 2 NUMA parts)`, 12 threads. ### Reproduction status Reproduced locally ### Strata version Strata 0.2.10 (ffa80d7, engine 0.1.56), own AVX build (STRATA_ISA_FLOOR=avx); compared with 0.2.9 ### Graphics card, memory and system RTX 5060 Ti 16 GB + RTX 3060 12 GB (layer split), 2 x Xeon E5-2630 v2 (AVX only, 2 NUMA nodes x 126 GiB), Fedora 44, kernel 7.2.5, driver 610.57.04, systemd-oomd on ### Model, size and settings DeepSeek V4.1 Flash, IST-DAS 2.00 bpw pack (117 GB on the CPU lane), --max-context 8192, --mmap-experts auto (default) ### Logs 0.2.10 under the node-0 binding: ``` ds4: --mmap-experts auto: the CPU lane's experts (117.7 GB) fit the RAM this process can get (252.1 GB beside 9 GB for the rest): copied in at load, no demand store (--mmap-experts on keeps them in place) ds4: 13617 of the CPU lane's 13617 experts copied into RAM (117.0 GB, 1 NUMA part) in 31.1 s ``` 0.2.9, same binding: ``` ds4: 13626 of the CPU lane's 13626 experts copied into RAM (117.1 GB, 2 NUMA parts) in 71.4 s ``` Kernel (memory bound to node 0 by another process, node 1 MemFree 95.6 GiB): ``` oom-kill:constraint=CONSTRAINT_MEMORY_POLICY,nodemask=0,cpuset=user.slice,mems_allowed=0-1,global_oom,...,task=strata-dsv41,... Out of memory: Killed process ... (strata-dsv41) total-vm:425981944kB, anon-rss:107959240kB, ... ``` systemd-oomd during a 0.2.10 load right after a 0.2.9 run: ``` Killed .../app.slice/ptyxis-spawn-....scope due to memory pressure for .../app.slice being 89.20% > 80.00% for > 20s with reclaim activity ```
Author
Owner

@github-actions[bot] commented on GitHub (Nov 4, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".
  • Fill in "Strata version".
  • Fill in "Graphics card, memory and system".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6619996686 --> @github-actions[bot] commented on GitHub (Nov 4, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". - [ ] Fill in "Strata version". - [ ] Fill in "Graphics card, memory and system". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 4, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6620081071 --> @github-actions[bot] commented on GitHub (Nov 4, 2026): Thanks, this follows the format now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3075
No description provided.