mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-13 09:53:15 +08:00
incr_full_index bumps the full-index RSS limit from 2048MB to 2816MB to absorb ARM's documented ~2385MB peak (vs x86's ~1870MB on the same index), but gated the bump on a 16KB page size. ARM Linux uses 4KB pages, so the bump never fired there even though glibc's per-CPU malloc arenas + allocation rounding still inflate RSS to ~2385MB — CI's ubuntu-22.04-arm measured 2386MB against the un-bumped 2048 limit and failed (the value is the documented ARM peak, i.e. not a regression: the page-size heuristic just missed 4KB-page ARM). Also apply the higher ARM budget on any ARM target (__aarch64__/__arm__/ _M_ARM64). The guard still catches a real leak (GBs over 2816) while no longer false-failing on 4KB-page ARM. x86 stays at the tight 2048 budget. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>