Validate bounded concurrent analysis in the local workspace

Ouverte
#21 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
25/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
python

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
0
Forks
0
Merge moyen
20 h
PR mergées (30 j)
5

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de JusticeGG-dev/CodeHunter

Toutes les issues de JusticeGG-dev/CodeHunter

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.