diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-28 00:22:17 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-28 00:31:48 -0500 |
| commit | 9fc4f4f6c30252d245a527a2d3a42898059939d2 (patch) | |
| tree | 4fcffc0c52f214046ea7d48a5d784d69f09b1d0d /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp | |
| parent | acb39ee5cad567a5ef901c8cd0cd4c1e5aec7708 (diff) | |
Physical pages can come in sections of a few MiB (LEONIDA_SECTION_MB=<MiB>; off by default: one section an allocation, as before)
The title asks for its 6.1 GiB of pages in one call and maps them a
64 KiB page at a time: one section with views by the hundred thousand.
Other projects found that the host walks a section's list of views,
holding the section's lock, for each 4 KiB page it moves (gathering large
pages, trimming), and that every map and unmap of the title's waits for
that lock. Their numbers, not ours: vilocity, moving through the world,
848 ms of mapping calls a second (maps of 114 us, unmaps of 182 us) and
117 ms in sections of 2 MiB (11 and 3 us), as El1xr's notes give them;
CGBJ, a kernel trace, 380 ms of every second, map 53 -> 3 us and unmap
99 -> 11 us in sections of 16 MiB, as OP-lite's notes give them. El1xr,
NVIctory and VIctory-NVIDIA-Hybrid start with 2 MiB, OP-lite with 16,
TRIDENT with 32.
With the switch an allocation is made of sections of that size. The
bytes and every address are as before; what goes by sections sees more
of them: a mapping of the title's over a section's end is a view a
section, a DirectStorage destination over one gets no window in place
and is written run by run, and the whole views each section has (ours
for DirectStorage, the GPU side's beside the title's) hold no range over
an end. Left out with LEONIDA_PORT_CONSTANTS=1 (renderer port 1 needs its
32-bit heap in one section; a warning says so) and under Wine.
Off by default: nothing was measured here, and the title's own pattern of
mapping over section ends has not been seen in a run. To judge it: a run
through the world with LEONIDA_SECTION_MB=2 or =16 against one without,
by the map lines' time a page, and the log for "mapping physical pages
failed" and "joined first".
Ported from Op-lite/OP-lite e5e7120 (VICTORY_SECTION_PAGES, there after
CGBJ's main), read in Trex/Dolores' op-lite branch (15edc0b); the name
and unit are VICTORY_SECTION_MB's (trustno1-coder/VIctory-NVIDIA PR #44,
a port of vilocity 0f44a1706), read in kylepelham/El1xr (30f6633).
Tests: a_large_allocation_is_several_sections (19 pages in sections of
16: runs of 16 and 3, four pages over the cut mapped as two views, bytes
on either side, a write over the cut, no window over it, an alias of the
page behind it, then four pages of one section over the two placeholders
left), section_sizes_come_from_the_switch. Run with them, one at a time:
runs_group_consecutive_pages_of_one_allocation,
writes_cross_runs_and_allocations, page_windows_cover_one_run_in_place,
physical_pages_map_alias_and_unmap,
the_32_bit_heap_gets_its_slices_in_address_order. Not run in the game.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions