Skip to content

ci: 负载下的启动耗时证据 (#81/#144/#40) - #204

Merged
JavaZeroo merged 2 commits into
mainfrom
research/latency-loaded
Oct 29, 2026
Merged

JavaZeroo merged 2 commits into
mainfrom
research/latency-loaded

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

在同一结果目录补充「本地 CPU 负载下的启动耗时」:新作业 windows-2025-startup-under-load(8 个忙循环并发,测 20 次 PowerShell 5.1 启动),并同步 validation.json。

结果(run 40945977134)

项 次数 p50 max ≥5s 超时
PowerShell 5.1(8 路负载) 20 0.172 s 1.921 s 0 0

对照空闲 p50 0.110 s:负载只把中位数抬到 0.172 s,最慢 1.921 s,仍与 10 秒期限相差一个数量级以上。

结论

本地 CPU 争用同样不能解释 10 秒级停顿——进一步把 #81/#144/#40 的失败推向「宿主级外部停顿」(安全软件扫描、存储阻塞、VM 调度),而不是可通过降低负载规避的争用。

边界

  • 8 个忙循环不等于完整 CTest 并发或 AV 扫描;
  • 不改期限、不改夹具;不关闭相关 issue。

Refs #81 #144 #40

…#40

Eight CPU burners run while twenty PowerShell starts are timed, so the artifacts show whether local contention alone can push start-up toward the ten second fixture deadlines.
…40

Eight busy loops raise the PowerShell 5.1 start median from 110ms to 172ms with a 1.9s maximum, which still cannot explain the ten second fixture stalls.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T20:11:25.718825Z f7ec9d7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f7ec9d7722

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +339 to +341
workers = [multiprocessing.Process(target=burn, args=(deadline,)) for _ in range(8)]
for worker in workers:
worker.start()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Guard multiprocessing startup before collecting loaded samples

On the configured Windows runner, multiprocessing uses spawn, so each child imports this script and executes the unguarded worker.start() loop again. All eight children consequently exit with a bootstrapping RuntimeError before reaching burn, while the parent still collects samples and successfully writes a report claiming eight active workers. Reproducing the extracted script locally with the spawn start method produced eight such errors and a zero parent exit status. The reported measurements therefore do not establish startup latency under CPU load. Put orchestration behind an if __name__ == "__main__": guard, verify worker readiness/liveness during sampling, and rerun the evidence before retaining the loaded-run conclusions.

AGENTS.md reference: AGENTS.md:L12-L12

Useful? React with 👍 / 👎.

@JavaZeroo
JavaZeroo merged commit 36dd0bd into main Oct 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant