Repository navigation
perf(mtlvk,jetsam,simfb): disable Lavapipe timestamps, reuse broker root textures, and tune multi-device endurance - #21
Merged
Conversation
…oot textures, and tune dense multi-device jetsam/simfb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the P0 graphics throughput and 6-device endurance fixes identified from matched ABBA v7 (
47602052578) and 6-device soak (47623682007,47628176479):external/metal2vulkan->286cb8601,linux/mtlvk/src/main.rs):external/metal2vulkansubmodule to286cb8601(ios-linux/metal2vulkan#3, addingDeviceOptions::disable_timestamps).o.disable_timestamps = truewhengpu.kind == "cpu"(overridable viaMTLVK_TIMESTAMPS=1/0), eliminating Lavapipe's full-devicelvp_GetQueryPoolResultsstall (11.88 swall /80.1%ofgpu_end_to_handler).BrokerPlanerootTexture& defaultMTLVK_VRAM_TARGETS=0on CPU (linux/mtlvk/src/conn.rs):root.clone()inTEX_NEW_BUFwhenpixel_format,texture_type,swizzle,mipmap_level_count == 1, andarray_length == 1match theBrokerPlaneroot texture (preservingplane._indexandArc<BrokerPlane>lifetime while eliminating per-framevkCreateImageViewchurn).vram_targets = !is_cpuwhenMTLVK_VRAM_TARGETSis unset (overridable viaMTLVK_VRAM_TARGETS=1/0), avoiding redundant host↔VRAM proxy copies on CPU devices where host RAM is unified.tools/launcher/core/src/services/jetsam.rs,host/simfb/simfb.c):SCENE_SETTLEinKNOBS(X86SIM_JETSAM_SCENE_SETTLE, default20.0) so dense multi-device soak runs don't SIGKILL a still-launching app whose first scene arrives slowly under 6-device CPU load.diagnosticd,kbd,mediaremoted,iconservicesagent, andclouddtoBACKGROUND_CPU(SCHED_IDLE+ nice 19 only; neverSIGSTOP-paused).SIMFB_FILE_WRITE=0opt-out inhost/simfb/simfb.cto skip periodic 2sfile_from_ring()disk writes when the shared ring is active.Verification
mtlvk(main_tests,conn::tests) andx86sim_core(jetsam::tests).ios-linux/x86simci.ymlandios-linux/ios-linux-qualificationx86sim-branch-verify.yml.