Validate bounded concurrent analysis in the local workspace

未关闭
#21 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

Start with the local queue and HTTP application paths, then review the host capability and portable metrics work referenced as #13 and #19. Compare opt-in two-job runs against one-at-a-time exhaustive analysis, tracking queue wait, time to first result, process-wide CPU and RSS, cancellation, restart recovery, ordered results, PTS and PNG hashes. Done means evidence and coverage match across mixed workloads and different hardware before choosing a default; testing on another host is still pending.

由索引模型根据 Issue 内容生成。

描述

Evidence

Draft PR #20 ran two exhaustive Vision jobs in separate processes. One worker per job reduced the median total time from 24.64 to 13.08 s for the 1080p pair while sampled peak RSS rose from 197.0 to 384.3 MiB. The 60-second motion repeat also kept ordered detections, original PTS and PNG hashes under all three configurations.

Acceptance

  • Exercise an opt-in two-job admission limit through the real local queue. Retain one active job as the reference. Track time spent waiting and time to the first result separately.
  • Measure aggregate process memory and CPU with mixed inputs and engines. Use known sample budgets for each tested host. Keep process-wide CPU and RSS labeled as process-wide if multiple scans share an interpreter.
  • Check that cancelling one job preserves the other job and its evidence. Verify completion, queue progression and restart recovery with both pending and active jobs.
  • Compare ordered results, original PTS and PNG hashes against one-at-a-time exhaustive analysis. Reject a configuration if relevant evidence or coverage differs.
  • Evaluate the same policy with different hardware before selecting a default. Use #13 for host capabilities and #19 for portable local-core metrics.

Serial reference

A native M5 browser API test on the local staging branch wave-3/queue-admission (4c80168) verified that a second job waits while an HTTPS download is active. Cancelling the active job cleared its partial files, advanced the queue, and let the waiting job reproduce the serial reference's ordered results, original PTS and PNG hashes. The opt-in concurrent mode and its resource and restart checks are pending.

Native application experiment

Local checkpoint 870e5e5 adds --parallel-jobs 2 for two single-worker Vision jobs and exclusive execution for other configurations. Three pairs per configuration were measured through the actual HTTP application on Apple M5. Median batch wall time was 20.97 s in series and 17.35 s with overlap. Sampled process RSS was 192.4 and 251.3 MiB. All 12 jobs processed 192 frames and preserved the 25 detections, PTS and PNG hashes per job. Tests passed for queue progression, independent cancellation and recovery of persisted states after forced exit. The single-job default remains in place and mixed workloads on other hardware remain pending.

Draft PR #22 isolates the queue and integration tests on #18. The standard workflow on 8839a31 passed Linux and macOS. The macOS run passed all three queue cases, with one optional PaddleOCR skip elsewhere in the suite. Mixed workloads on another host remain pending.

Integrated implementation

PR #22 was merged into main as 0e7221e. The updated candidate dadd93f passed the required Linux check and the standard macOS arm64 workflow. The local policy remains one active job unless --parallel-jobs 2 is selected. Further mixed-workload measurements on different hardware remain open.

主要语言
Python
星标
0
派生
0
平均合并
20 小时
30 天内合并 PR
5

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JusticeGG-dev/CodeHunter 的其他 Issue

查看 JusticeGG-dev/CodeHunter 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。