A write through one view of a page is seen at its other views; page writes counted; levels on demand (off); warm-up; card memory numbers
Memory sync: - The guard over every view of a physical page (code by myokex, victory-amd c6dc4d8, after pull request #115 by Spexivus, its correction by joroyt and a part of VIctory #1122 by tightfall): the title shows one page at several addresses and a copy was guarded at one only. 0.8 to 1.0 million writes through another view in a five-minute run on the test machine. VICTORY_VIEW_GUARD=0 turns it off. - Kernel reads into title memory are read beside and copied in (Joshua Odom, 10ea38e). - Writes of the storage layer into physical pages are counted where the title has the pages mapped and can open the guards there (VICTORY_PAGE_WRITES, off: counted only). Failed page-destination reads are retried. Card memory: - Levels on demand, off unless VICTORY_LEVELS_ON_DEMAND=1: a texture the title fills takes card memory for the levels the title holds; held levels get memory only while the card has room and are asked for again. Its test runs on the software adapter; not run on a card yet. - Refused texture slots are held back so a pass reaches the slots behind them; room can be kept for card copies of title buffers (off). Tools: translate --warm all; the shader cache is keyed on the translator's source; counters for copy-back races, page writes and the copies the texture sweep never lets go; a walls trace. Game runs of these changes on an RTX 4070: five five-minute runs without a device loss or a failed request. This merged tree was built; its test suites were run on the tree the changes come from (gpu 129, hle 97). Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
8d3ce0190f
commit
847a0af35e
25 files changed
+4218
-240
No files matched your search
@@ -743,6 +743,22 @@ fn log_memory() {
|
||||
mb(card[0]),
|
||||
mb(card[3]),
|
||||
);
|
||||
let targets = crate::resource::targets_census();
|
||||
tracing::info!(
|
||||
"host copies the sweep never lets go: {} the host renders to or writes {:.0} MB ({} of them placed {:.0} MB); of them {} have title memory that is not mapped now {:.0} MB, {} were not used for 30 s and are held by no list and no slot {:.0} MB, {} are both {:.0} MB; and {} copies of textures the title fills that the host copied into {:.0} MB",
|
||||
targets[0],
|
||||
mb(targets[1]),
|
||||
targets[10],
|
||||
mb(targets[11]),
|
||||
targets[2],
|
||||
mb(targets[3]),
|
||||
targets[4],
|
||||
mb(targets[5]),
|
||||
targets[6],
|
||||
mb(targets[7]),
|
||||
targets[8],
|
||||
mb(targets[9]),
|
||||
);
|
||||
tracing::info!(
|
||||
"memory let go since the start: {} windows outside buffers {:.0} MB, {} staging buffers \
|
||||
{:.0} MB; of the windows alive, {:.0} MB lie between the lowest and highest address \
|
||||
@@ -1121,6 +1137,12 @@ pub(crate) fn log(frames: f64) {
|
||||
c[C::GpuWritesLeftOut as usize],
|
||||
mb(c[C::GpuWritesLeftOutBytes as usize]),
|
||||
);
|
||||
let [together, written, mapped] =
|
||||
[0, 1, 2].map(|n| crate::watch::ALIASES[n].load(std::sync::atomic::Ordering::Relaxed));
|
||||
tracing::info!(
|
||||
"guards over several views of a page, since the start: {together} blocks guarded with their other views, \
|
||||
{written} views opened by a write through another, {mapped} ranges opened because a view of them was mapped"
|
||||
);
|
||||
// Where the wall clock of a frame goes: the phases of a frame, the
|
||||
// processor time of the whole process, and what each submitting and
|
||||
// recording thread did.
|
||||
|
||||
Reference in new issue
Block a user