Files
reims-vgpu/docs
Anees Iqbal 09905e83ff 🆕 Have the kext defer fresh cached surfaces where the host asks
Safari's WebKit tiles, which the GPU alone draws, each wired 7 MiB of an
8 GiB guest at its first use on the Iris and the 780M. About 400 tiles of a
long page took WebContent's footprint past its 2 GB limit, since wired pages
count in their owner's footprint though WebKit marked the tiles volatile,
and the corpse and the memory pressure that followed stalled its frames for
100 to 800 ms (jobs m3-max-10419, m3-max-10438, m3-max-10517).

Where the host offers SURFACE_DEFERRED_ASK the kext takes it beside
SURFACE_CACHE_REFUSED and defers a fresh cacheable surface as on a GPU of
its own memory, its SURFACE_PAGES carrying ASK_CACHE and the surface's
layout. Refused, past the budget, or not fresh, it names the pages asking as
before: answered a cache, it posts them again cached; answered in place, the
device cache's entry the deferral made goes (rgfxSurfaceLocksUngate) and the
block is not cached. A deferred block's pages are wired, named and copied
only at a CPU lock that needs them, as on such a GPU.

These surfaces cannot lie in place on that host whatever their pages, so a
deferral chooses no copy over in place; it only stops eagerly wiring and
zero-filling guest pages the CPU never touches. guest/prebuilt is built
again from these sources.
2026-11-08 21:20:26 -08:00
..