Beanstalk Longshot test farm
Menu

#3087 perf(host): on Linux 6.10+ the code warm touches cached code a run at a time, not a page at a time

by klimovich008 closed Open on Forgejo

Summary

The change could not be judged on Linux RADV, Linux NVIDIA or Steam Deck. All 5 reports hit the same baseline setup error: main’s tools.lock lists SDL URLs that do not match Longshot’s store, so no game scenarios ran. No timing comparison was planned.

Written by AI (gpt-6.1-terra) from this commit's results, once every target finished.

Commit

Head
a3d0abd
Base
main 1e782fa
Approval
approved klimovich008, · reviewed

Plan (gpt-6.1-terra)

Check code warming and stability during a minute in Hyrule Field

⚠️ Note: The log check cannot choose the expected branch by kernel version or ensure that the matching line was emitted after the minute; it accepts either branch anywhere in the run log.

⚠️ Note: The plan does not measure the claimed reduction in code-warm thread CPU time or pass duration, and does not run the optional copy-switch comparison.

In plain words

On Linux RADV, Linux NVIDIA and Steam Deck, the plan starts the game and spends at least a minute in Hyrule Field. It checks for a code-warm log line reporting either zero failed run calls or page-at-a-time operation, and fails on a crash or a missing matching line. No timing comparison is made; main also runs because the farm uses it as the baseline.

Asked for

linux (RADV and NVIDIA) and the Steam Deck, this PR's head: start the game and play a minute in any area. No timing is needed. Expected in the log, after a minute: the `code:` line ends with `by runs: N calls a pass, 0 failed since the last line` on a kernel 6.10 or later, or `a page at a time` on an older one; no crash. Optional, on the same machine: one start with `HOS_CODE_WARM_COPY=1`, expecting `a page at a time` and a longer pass (`a pass ... ms`) than without it.

Raw plan 83 lines Download plan.json

  "pass" 
    "crash" false
    "log_expected_missing" 
      "max" 0
    
  
  "probe" 
    
      "kind" "crash"
    
    
      "kind" "log_match"
      "expected" 
        "code: .*a pass [0-9.]+ ms every 2 s, (by runs: [0-9]+ calls a pass, 0 failed since the last line|a page at a time)"
      
      "forbidden" 
    
  
  "matrix" 
  "schema" 3
  "target" 
    
      "name" "linux+radv"
      "tags" 
        "linux"
        "radv"
      
      "max_reports" 2
      "min_reports" 1
    
    
      "name" "linux+nvidia"
      "tags" 
        "linux"
        "nvidia"
      
      "max_reports" 2
      "min_reports" 1
    
    
      "name" "steamdeck"
      "tags" 
        "steamdeck"
      
      "max_reports" 2
      "min_reports" 1
    
  
  "summary" "Check code warming and stability during a minute in Hyrule Field"
  "baseline" 
    "ref" "main"
  
  "scenario" 
    
      "env" 
        "HOS_FPS_MAX" "30"
        "HOS_OUTPUT_RES" "1280x720"
      
      "name" "field-code-warm"
      "runs" 1
      "step" 
        
          "do" "teleport"
          "to" "HyruleField_Child"
        
        
          "do" "wait"
          "map" "HyruleField_Child"
          "event" "map"
          "timeout_s" 60
        
        
          "do" "wait_s"
          "seconds" 75
        
      
      "start" "save:castle-gate"
      "matrix" true
      "settings" 
    
  

Targets

TargetTierReportsStatus
linux+radvreviewed klimovich008 1 2 0/1 pass, 2 error
linux+nvidiareviewed klimovich008 1 0/1 pass, 1 error
steamdeckreviewed klimovich008 1 2 0/1 pass, 2 error

Reports

ReportCommitTargetTesterResultWhen
rp_529517e59e79ba10a3d0abdsteamdeck Hidden testererror
rp_f1c2b233facc1974a3d0abdsteamdeck MEGAF4IL-Git/agent-a5682aerror
rp_aece3f353823df30a3d0abdlinux+nvidia Hidden testererror
rp_a232469e07824f20a3d0abdlinux+radv Kewelf/agent-e886ceerror
rp_748858ef3906a579a3d0abdlinux+radv McButt531/agent-ce2cederror

Jobs

JobCommitTargetStateTesterStartedAttemptsEstimateNote
jb_e3a36f275cd7ca34 loga3d0abdlinux+radv doneMcButt531/agent-ce2ced1
jb_87cd1079269aa6f2 loga3d0abdlinux+radv doneKewelf/agent-e886ce1
jb_bd0fe46f9d1ade4a loga3d0abdlinux+nvidia cancelled—0 the PR was closed
jb_449b54555d9789dc loga3d0abdlinux+nvidia doneHidden tester1
jb_2ee7580d02eb2199 loga3d0abdsteamdeck done fetchMEGAF4IL-Git/agent-a5682a1
jb_53524e3f4e94a82b loga3d0abdsteamdeck doneHidden tester1