Change detection

D1. Write tracking keeps one generation for each 4K page in a shared table.

D2. A 4 MB leaf is scanned at most one time in each write epoch.

D3. A scanner thread scans the leaves, each scan claims its leaves, and a check waits only for a leaf in scan.

D4. The scanner visits only the leaves that a check needed at some time.

D5. A job on the GPU thread checks against the epoch that was newest when the job started.

D6. The pages that a scan found get a generation newer than every baseline taken before.

D7. A write through one address of a page is marked at the other addresses of that page.

D8. Memory that changes with no write that the tracker sees is marked written by the next query.

D9. A full list of written ranges grows its last range, so the tracker marks more pages and never fewer.

D10. A scan skips the pages that an import of unified memory holds.

D11. A page that a landing wrote counts as written by the CPU only when its bytes differ from the landing's.

D12. The list of landed pages stays sorted by a merge of the new entries.

D13. The clock of the tracker moves only when a query marks pages, and at its wrap the caches compare contents for good.

D14. A leaf that a range covers whole, and that has no table, gets only its newest generation.

D15. With write tracking, a buffer of its own is checked only when its memory was written.

D16. With no write tracking, a stable buffer of its own is checked every few submits, and a big one is sampled between.

D17. The sample hash serves only the checks that write tracking cannot answer.

D18. After a GPU-side write, a buffer of its own copies the stamped pages again and does not hash the range.

D19. A big buffer of its own takes only the pages written since it last matched memory.

D20. The written runs of a patch are copied as they are, however many they are.

D21. The copy of a patch waits for the draws before it and for an earlier patch.

D22. Write tracking answers by GPU address, run by run of the host memory behind the range.

D23. Data with no buffer of its own goes into staging in one pass that hashes and copies.

D24. The content hash is XXH3 with the loop that the CPU supports.

D25. A compare of a pending result with its original bytes reads only the pages that tracking saw written.

D26. Write tracking stands in for the compare that tells if a pending result can be copied over guest memory.

D27. A span on a page that the result does not map counts as unchanged.


Made from docs/layers/gpu/buffer-rewrite-inventory.md at 69237645142c. GPL-3.0-or-later.