Skip to content

Derive run throughput sparkline from bytes written - #33

Merged
StefanZ8n merged 2 commits into
mainfrom
fix/sparkline-derived-throughput
Nov 16, 2026
Merged

StefanZ8n merged 2 commits into
mainfrom
fix/sparkline-derived-throughput

Conversation

@StefanZ8n

Copy link
Copy Markdown
Collaborator

Problem

Small runs (e.g. a 2-VM incremental) showed a flat sparkline and peak 0 right next to a real avgMBps. The series was the controller's 5 s snapshot of the agents' instantaneous fio rate, summed over VMs still working. A VM writes its few GiB between two snapshots and reports done before the next, so almost every sample is 0. The label also showed the latest sample, which is always 0 for a finished run.

Fix (UI only)

  • web/src/throughput.ts: derive MB/s (MiB, same as avgMBps) from the cumulative bytesWritten each sample already stores, averaged over ≥10 s so the 5 s agent report and the 5 s controller poll don't alias. Where the stored snapshot is higher (a real burst), use it instead. Existing runs benefit too, because no schema or backend change is needed.
  • Sparkline.vue: finished runs show peak N MB/s; running runs still show current rate · peak.

Testing

  • npm run build (vue-tsc + vite) passes.
  • Synthetic 2-VM / 8 GiB run: old series 0 … 0 363 0 …, new series 0 … 123 363 481 461 218 3.

🤖 Generated with Claude Code

StefanZ8n and others added 2 commits November 16, 2026 11:09
The sparkline plotted the controller's 5s snapshot of the agents'
instantaneous MB/s, summed over VMs still working. On short runs a VM
writes its few GiB between two snapshots and reports done before the
next, so the series was mostly 0 and "peak 0" sat next to a real
avgMBps. Derive the rate from the cumulative bytesWritten each sample
already stores (averaged over >=10s to avoid agent/poll aliasing), keep
the snapshot where it is higher, and show only the peak for finished
runs instead of an always-zero "latest".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StefanZ8n
StefanZ8n merged commit 890805d into main Nov 16, 2026
7 checks passed
@StefanZ8n
StefanZ8n deleted the fix/sparkline-derived-throughput branch November 16, 2026 13:38
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