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 摘要。