Files
leleka/crates/leleka-runtime
Pavlo RatushnyiandClaude Opus 5.5 e0141e510a model-format: opt-in huge-page placement of the resident expert banks (LELEKA_HUGEPAGES)
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>
2026-11-01 00:11:36 +01:00
..