hugepages-ab.sh: one binary, hpoff vs hpon (LELEKA_HUGEPAGES=on), 8 ABBA-balanced pairs of the 5-turn
~245k session at the product PCIe share 0.45, baseline-sampler state record (buddyinfo, AnonHugePages,
process smaps_rollup) per run. hugepages-id.sh: bitwise replay identity at 8,000 static slots.
hugepages-analyze.py: pairs, predecessor split, exit fragmentation. owner-shmem-thp.sh: root-only
shmem_enabled toggle, not needed by the decode path. huge_pages.rs: mapped_len test-only (dead-code warning).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LELEKA_HUGEPAGES=on|thp (off by default; LELEKA_BANK_THP=on now selects thp) places each of the 144
resident bank copies in its own 2 MiB-aligned anonymous mapping instead of a heap Vec: MAP_HUGETLB when
HugePages_Free covers the bank (mode on only; nothing reserved), else MADV_HUGEPAGE + MADV_POPULATE_WRITE.
After the bank load and the shard page-cache drop, before cuMemHostRegister, huge_pages::settle() reports
the coverage from /proc/self/smaps and MADV_COLLAPSEs any 2 MiB range that fell back (best effort).
Pure placement: the bytes are the file's (read_tensor_into, same bounds and size fences). No system
setting is read-write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docs: docs/experiments/decode-tail-5090.md takes the branch's records (sections 1-9) and keeps main's seed-off profile text as section 7a, with a merge note on where main differs.
Code: no change to main. kar_ple_cache.rs (branch b5d4a0db7 equals main a73d09060; main also has the persistent scatter staging buffers) and original_serve_host.rs are main's. The branch's LELEKA_SERVE_ADAPT_DEFER default flip (9b03de2be, deferral off by default) is NOT taken: main's default is the deferral on, and flipping it would change main's behaviour; the opt-out LELEKA_SERVE_ADAPT_DEFER=off already exists.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Both buffers are written or sized at startup and never read on the serve path: the draft layer of the product (--mtp-rt-dir) streams its own experts (original_mtp_rt_bank) and the serve QSA layers keep their keys in OriginalQsaResidentIndex; the host-canonical QsaIndexKeyCache is the legacy scalar path. Together 1,084 MiB of VRAM (about 11 quota steps, 528 slots) for the expert cache; bit-identical at an equal slot count, placement class when the auto count grows.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Design only, CPU-only analysis; nothing measured on the server. Finds that the 55.3 GB sealed memfd is read only for the 16.0 GB of PLE rows
and that ~39 GB of it is an unread level-2 re-encoding of shard 0 (estimate, census task T1).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Behaviour changes only on failure paths: a verifier graph that runs out of device
memory now costs the widest windows instead of the engine; a PLE source that panics
is a failed read instead of a ticket that waits forever; a restored conversation's
retained K/V never serves another conversation.
NOT exercised on a GPU (server down): the instantiate-OOM fallback. The merge is
acceptable because it changes behaviour only on the failure path. Tests in WSL
(mock driver): leleka-runtime 618 pass / 2 known backing:: failures, leleka-cuda-driver
(--features cuda-driver) 418 pass / 0 fail, leleka-model-format 139 pass / 3 known
sec_uc143_*/retained_fd failures (all /mnt/c, same as base).
Adds a narrow .gitattributes (text=auto eol=lf for crates/**/*.rs and
scripts/gpu-bringup/**/*.py) to keep CRLF out of these LF files.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Ten files touched by this branch had been rewritten with CRLF line endings
(base versions are LF), inflating the diff against the merge-base to
13685/13039 lines. Content is otherwise unchanged: the diff ignoring line
endings was and remains 661 insertions / 15 deletions.
.gitattributes: crates/**/*.rs and scripts/gpu-bringup/**/*.py are text=auto
eol=lf, so CRLF cannot re-enter these LF files at commit time. text=auto leaves
files that are already CRLF in the index untouched.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merges the decode, kernels and CPU/platform reviews of Strata 41cf05a0..870aedd9 into one ranked
port list for Qwen3.8-Flash-Next IQ3_S + KAR + MTP on the 5090 and the 3080 (correctness and
hygiene 4.x, decode 5.x, prefill 6.x, laptop 7.x), with the state of each row from main and the
local branches (upstream-fixes, draft-vocab, models-move), the contradictions between the reviews
resolved, a paragraph on what upstream does not give (no 200+ tok/s at 245k), and the next ports
in order with the GPU they need. Every number is marked measured, claimed by upstream, estimate
or unverified. Old rows updated: 2.1 (default OFF, no e2e gain), 3.1 (not the cause of the 5090
gap), 3.3 (pa-pcie35 slightly worse), 2.6 (closed), 2.2, 3.2, 3.4 (pointers).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>