Commit ea65ecd
fix: defer O-side dep_pool overflow to scheduler-side fatal codes
Move the live-fanin dep_pool wait out of PTO2DepListPool::ensure_space
(fast 100k-spin fatal in <1ms) into the orchestrator's
orch_wire_live_fanin_task, mirroring the fanin spill pool's ensure_space
backstop: an absolute time budget plus a check for a fatal already
latched elsewhere.
With wiring now on the orchestrator, a workload that stalls the scheduler
(e.g. the scheduler_timeout fatal-code test, which lowers
PTO2_SCHEDULER_TIMEOUT_MS) used to see O fatal
PTO2_ERROR_DEP_POOL_OVERFLOW (-4) at submit time within <1ms, masking the
real scheduler-timeout code (-100). Now O bails without latching when
sched_error_code / orch_error_code is already set, so the root-cause code
surfaces. The residual dep_pool-deadlock backstop is sized to run strictly
longer than the scheduler timeout (scheduler timeout + alloc-deadlock
slack) so the scheduler's own fault is always observed first, instead of
racing a fixed 500ms budget that ties with a 500ms scheduler timeout under
load.
Applied to a2a3 and a5.
Test: tests/st/runtime_fatal_codes (sim, a2a3+a5) — scheduler_timeout
surfaces -100, dep_pool_overflow still -4, all cases pass.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 3b90ab6 commit ea65ecd
2 files changed
Lines changed: 112 additions & 14 deletions
File tree
- src
- a2a3/runtime/tensormap_and_ringbuffer/runtime
- a5/runtime/tensormap_and_ringbuffer/runtime
Lines changed: 56 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | | - | |
| 352 | + | |
354 | 353 | | |
355 | 354 | | |
356 | 355 | | |
| |||
363 | 362 | | |
364 | 363 | | |
365 | 364 | | |
366 | | - | |
367 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
368 | 374 | | |
| 375 | + | |
369 | 376 | | |
370 | 377 | | |
371 | | - | |
372 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
373 | 420 | | |
374 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
375 | 424 | | |
376 | 425 | | |
377 | 426 | | |
| |||
Lines changed: 56 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
347 | | - | |
| 346 | + | |
348 | 347 | | |
349 | 348 | | |
350 | 349 | | |
| |||
357 | 356 | | |
358 | 357 | | |
359 | 358 | | |
360 | | - | |
361 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
362 | 368 | | |
| 369 | + | |
363 | 370 | | |
364 | 371 | | |
365 | | - | |
366 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
367 | 414 | | |
368 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
369 | 418 | | |
370 | 419 | | |
371 | 420 | | |
| |||
0 commit comments