Commit cdbbc96
fix(data-plane): a max below its own median, and a fraction above 1
Auditing the cross-process e2e output rather than reporting it turned up
two contradictions that shipped.
A maximum below its own median. The e2e printed
put: max_ms 133.5 p50_ms 175.0 p99_ms 248.5
get: max_ms 0.0063 p50_ms 0.050 p99_ms 0.099
and not one of those four percentiles is data: 100 + 150*0.50 = 175,
100 + 150*0.99 = 248.5, 0 + 0.1*0.50 = 0.05. Two causes. The percentiles
came off the cumulative histogram while the max was step-scoped, so they
described different windows; and interpolation spreads a bucket's samples
uniformly across it, so calls clustered low in a wide bucket read high --
160 calls of exactly 120 ms all land in (100, 250] and interpolate to a p50
of 175, above every call observed.
Both fixed. Percentiles are now differenced per step, so they share a
window with the max, and clamped to it, because a true percentile cannot
exceed the maximum and the maximum is measured exactly. They are withheld
below 50 calls in the window; on a wide DP degree a step clears that
easily, and on a narrow one silence beats bucket geometry.
A fraction above 1. `frac_of_step` read 1.054 -- correct arithmetic on a
`wall_ms` summed over ten processes that ran concurrently, and nonsense as
"105% of the step". Renamed to `busy_frac_mean` and divided by the process
count: the mean fraction of the step a process spent in the data plane,
bounded, and the question people actually ask.
The audit also found three ways the harness was lying, now fixed there:
workers "read" through `lambda: None` so their timings measured nothing;
the driver wrote the whole batch instead of the advantages delta, which is
why bytes_written was exactly 2x bytes_read; and the 131 ms/put denominator
is NoOpDataPlaneClient doing Python bookkeeping, not a wire. With those
corrected the driver's share drops to ~9% of cluster volume and
observability costs 1.2%.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Zhiyu Li <zhiyul@oci-aga-slurm-1-dm-02.cm.cluster>1 parent af257d1 commit cdbbc96
3 files changed
Lines changed: 111 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
459 | 474 | | |
460 | 475 | | |
461 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| |||
571 | 578 | | |
572 | 579 | | |
573 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
574 | 588 | | |
575 | 589 | | |
576 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
577 | 593 | | |
578 | 594 | | |
579 | 595 | | |
| |||
582 | 598 | | |
583 | 599 | | |
584 | 600 | | |
585 | | - | |
| 601 | + | |
586 | 602 | | |
587 | 603 | | |
588 | 604 | | |
| |||
595 | 611 | | |
596 | 612 | | |
597 | 613 | | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
603 | 641 | | |
604 | 642 | | |
605 | 643 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
746 | 763 | | |
747 | 764 | | |
748 | 765 | | |
| |||
765 | 782 | | |
766 | 783 | | |
767 | 784 | | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
0 commit comments