Beanstalk Longshot test farm
Menu

#2436 WIP: perf(os): HOS_RESERVE_LEND=1 lends the render thread's reserved core to the game's threads while it idles (off by default)

by klimovich008 open Open on Forgejo

Commit

Head
d453599
Base
main 8aa5ab8
Approval
approved klimovich008, · reviewed

Plan (gpt-6.1-terra)

Compare reserved-core lending off and on in Lost Woods and Hyrule Field on real small-core CPUs

⚠️ Note: The requested three starts per cell and an additional capped run exceed the 60-minute limit with this two-cell matrix, so the plan uses two starts per cell and omits the capped run.

⚠️ Note: Log counts show whether lending applied or was declined and how often transitions occurred, but do not establish exactly when transitions happened within a scene.

⚠️ Note: Using only the PR build does not compare its switch-off changes, including the Linux affinity shim, against main.

In plain words

On real 4-core and 6-core Windows CPUs and the Steam Deck, the PR build will run with core lending off and on, measuring 30 seconds each in child Lost Woods and Hyrule Field with the frame cap disabled. Two starts per cell provide FPS and frame-time comparisons, while hitch metrics and lending log counts are reported. A crash, an FPS loss over 3%, or a p99 frame-time increase over 10% in either scene fails the test. The Windows CPU groups have no matching models listed online and will wait for eligible testers; Steam Deck testers are online. No tester online now matches windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k, windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k: those targets wait for one.

Asked for

the PR's own build only, its switch against itself: baseline ref = pr, [matrix.pr_only] HOS_RESERVE_LEND = ["0", "1"], and [[pass.compare]] HOS_RESERVE_LEND = "1" against "0" on the pr side (0 is exactly unset: today's placement). It is a runtime switch, so one build serves both sides. **3 game starts a cell.** What it does: on CPUs with fewer than 8 whole cores and 8 or more logical processors, the host keeps one core for the render thread; with the switch on it lends that core to the game's threads while the render thread is idle and takes it back when it gets busy. On 8+ cores, hybrid CPUs or without SMT it declines (logged), so only these targets can show anything. Our numbers are an 8-core CPU held to 4 and 6 cores by a mask; we need real ones. Targets, 1-2 reports each, by model; don't let the plan wait on any one: - Windows, 4 cores / 8 threads: i7-6700K, i7-7700K, i7-6700, i7-7700, i3-10100, i3-12100, i3-13100, Ryzen 3 3300X; - Windows, 6 cores / 12 threads: Ryzen 5 3600, 5600X, 5600, 7600X, 7600, i5-10400, i5-11400, i7-8700K; - the Steam Deck (4 cores / 8 threads, Linux), if a tester with that tag is online. Scenes, in one start: Lost Woods as child Link (from the save kokiri-start, teleport destination 5) measured 30 s, where the game's threads hold the frame (expect a gain); then Hyrule Field (HyruleField_Child) measured 30 s, where the render thread holds it (expect level). Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine. Compare rules, pr side, =1 vs =0, per scene: fps_mean min_delta_pct = 3 (fail on a loss of more than 3 %), frametime_p99_ms max_delta_pct = 10; crash = false. Hitch counts (run_hitch_count, run_frametime_max_ms) report-only. Plus one start a side at the 60 fps cap (frame_rate_cap at 60, vsync off), the same scenes, on the 4C/8T target if it fits the time (else any of the three): report-only, counting the log lines "vk: HOS_RESERVE_LEND: the reserved core lent" and "... taken back" in

Raw plan 166 lines Download plan.json

  "pass" 
    "crash" false
    "compare" 
      
        "axis" "HOS_RESERVE_LEND"
        "side" "pr"
        "value" "1"
        "metric" "fps_mean"
        "against" "0"
        "min_delta_pct" 3
      
      
        "axis" "HOS_RESERVE_LEND"
        "side" "pr"
        "value" "1"
        "metric" "frametime_p99_ms"
        "against" "0"
        "max_delta_pct" 10
      
    
  
  "probe" 
    
      "kind" "crash"
    
    
      "kind" "frametime"
    
    
      "kind" "draws"
    
    
      "kind" "log_value"
      "value" 
        
          "name" "lends"
          "take" "count"
          "pattern" "vk: HOS_RESERVE_LEND: the reserved core lent"
        
        
          "name" "takebacks"
          "take" "count"
          "pattern" "vk: HOS_RESERVE_LEND: the reserved core taken back"
        
        
          "name" "applies"
          "take" "count"
          "pattern" "threads: HOS_RESERVE_LEND=1: the reserved core"
        
        
          "name" "declined"
          "take" "count"
          "pattern" "threads: HOS_RESERVE_LEND=1 does nothing here"
        
      
    
  
  "matrix" 
    "pr_only" 
      "HOS_RESERVE_LEND" 
        "0"
        "1"
      
    
  
  "schema" 8
  "target" 
    
      "cpu" 
        "3300x"
        "i3 10100"
        "i3 12100"
        "i3 13100"
        "i7 6700"
        "i7 6700k"
        "i7 7700"
        "i7 7700k"
      
      "name" "windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k"
      "tags" 
        "windows"
      
      "max_reports" 2
      "min_reports" 1
    
    
      "cpu" 
        "3600"
        "5600"
        "5600x"
        "7600"
        "7600x"
        "i5 10400"
        "i5 11400"
        "i7 8700k"
      
      "name" "windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k"
      "tags" 
        "windows"
      
      "max_reports" 2
      "min_reports" 1
    
    
      "name" "steamdeck"
      "tags" 
        "steamdeck"
      
      "max_reports" 2
      "min_reports" 1
    
  
  "summary" "Compare reserved-core lending off and on in Lost Woods and Hyrule Field on real small-core CPUs"
  "baseline" 
    "ref" "pr"
  
  "scenario" 
    
      "env" 
      "name" "uncapped-scenes"
      "runs" 2
      "step" 
        
          "do" "teleport"
          "to" "LostWood_Child"
        
        
          "do" "wait"
          "map" "LostWood_Child"
          "event" "map"
          "timeout_s" 60
        
        
          "do" "measure"
          "name" "lost-woods"
          "warmup_s" 25
          "duration_s" 30
        
        
          "do" "teleport"
          "to" "HyruleField_Child"
        
        
          "do" "wait"
          "map" "HyruleField_Child"
          "event" "map"
          "timeout_s" 60
        
        
          "do" "measure"
          "name" "hyrule-field"
          "warmup_s" 10
          "duration_s" 30
        
      
      "start" "save:kokiri-start"
      "matrix" true
      "settings" 
        "vsync" 2
        "frame_rate_cap" 6
        "frame_generation" 0
      
    
  

Targets

TargetTierReportsStatus
windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k"reviewed klimovich008 none yet 0/1 pass, 0 running, 2 queued
windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k"reviewed klimovich008 none yet 0/1 pass, 0 running, 2 queued
steamdeckreviewed klimovich008 1 2 2/1 pass

Reports

ReportCommitTargetTesterResultWhen
rp_52675fee323b35ecd453599steamdeck Wrath/agent-0e17b1pass
rp_337b376f305bfbadd453599steamdeck manasuazo/agent-ebaed6pass

Jobs

JobCommitTargetStateTesterStartedAttemptsEstimateNote
jb_047784d72465926cd453599windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k queued—0 No tester online can take it now.No tester online matches `windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k`.
jb_4d4cc22c3626b582d453599windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k queued—0 No tester online can take it now.No tester online matches `windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k`.
jb_c4e1cf9d9d16c403d453599windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k queued—0 No tester online can take it now.No tester online matches `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k`.
jb_08e9fe1def51cf9cd453599windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k queued—0 No tester online can take it now.No tester online matches `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k`.
jb_860c0eb6b1d4d0dc logd453599steamdeck done reportmanasuazo/agent-ebaed61
jb_79f8bde39590861f logd453599steamdeck done reportWrath/agent-0e17b11