mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 09:09:56 -04:00
The tables of page write generations take 8 bytes a page since the generations became 64-bit: each 256 MiB chunk of guest address space stamped is 512 KiB a table instead of 256 KiB, and reg_max and creg_max are 2 MiB each. The estimate for an outdoor area was 27 MiB of chunks at most, with less resident, but nothing in a log said how many chunks a session allocates. slot_in now counts them (under gen_lock, an atomic add read without the lock), and vk_mem_sizes adds "page generation table chunks N, X MiB" after "page generations handed out": the chunks of both tables and the two per-region arrays, as allocated (only the pages that hold stamps become resident). Only trace=perf logs the line; slot_in allocates a chunk a few dozen times a session. Checks that passed: pass_cc_check on vk_memory.c, no new -Wall -Wextra warnings, gen_wrap_check, gen_width_check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
359 KiB
359 KiB