Commit 8113786
Bake t43 c7 defaults; convert env knobs to CLI flags (#711)
Summary:
Pull Request resolved: #711
Locks in the t43 Matrix B c7 configuration as the default for `feedsim_autoscale_dlrm` and converts the env-var-driven knobs that grew during the t41/t43 sweeps into proper CLI flags (visible in `--help`, surfaced in `jobs.yml`).
c7 (`dlrm_batch_size=64`, `mock_zstd_frac=0.75`, `server_zstd=0`, `mock_tls=1`, `rpc_fanout_scale=0.05`, `mock_keepalive=200ms`, `sla=700ms`) is the only Matrix B cell that ranks top-5 on both axes the team cares about: gen-over-gen correlation (BGM/CPL = 4.25x, 2nd best of 12) AND prod hot-function gap (CPL 4th, BGM 5th). The bs=32 cells win peak QPS alone but stretch BGM/CPL to 4.75x. See dashboard https://pxl.cl/b7TcH for the 12-cell sweep + per-cell prod gap table.
# Flag promotions (env -> CLI)
LeafNodeRank `LeafNodeRankCmdline.ggo`:
- `--mock_tls` (was `MOCK_TLS` env), default on
- `--mock_zstd_frac` (was `MOCK_ZSTD_FRAC` env + `MOCK_COMPRESS_ZSTD` legacy), default 0.75
- `--mock_keepalive_interval_ms` default 0 -> 200 (t29/t30 calibration)
- `--rpc_fanout_scale` default 0.10 -> 0.05 (c7)
- `--server_zstd` (was `FEEDSIM_SERVER_ZSTD` env), default off
- `--tls_cert` / `--tls_key` (was `FEEDSIM_TLS_CERT/KEY` env)
- `--dlrm_batch_size` default 256 -> 64 (c7)
DriverNodeRank `DriverNodeRankCmdline.ggo`:
- `--driver_tls` (was `FEEDSIM_DRIVER_TLS` env)
run.sh adds matching user-level flags: `--mock-tls`, `--mock-zstd-frac`, `--mock-keepalive-interval-ms`, `--rpc-fanout-scale`, `--server-zstd`, `--driver-tls`, `--tls-cert`, `--tls-key`, `--sla-p95-ms`.
# Stale params removed
- `--use_legacy_sleep` ggo flag + LeafNodeRank handler + run.sh wiring -- diagnostic isolation knob from t8/t9 era; mock_services is the permanent path
- `MOCK_COMPRESS_ZSTD` legacy env fallback in `MockServicesClient.cc` -- superseded by `--mock_zstd_frac=0|1`
- `FEEDSIM_NO_RPC_ZSTD` env wrapper in `run.sh` -- same
- `envBoolTrue()`, `envFloat()`, `resolveZstdFraction()` helpers in `MockServicesClient.cc` -- no longer needed after env reads were dropped
# C++ wiring
- `MockServicesClient` ctor now takes `use_tls` + `zstd_frac` params instead of reading env vars in the body
- `FeedSimServer::setTlsConfig(cert, key)` replaces the in-`run()` env reads
- `FeedSimDriver::setTlsEnabled(bool)` flips an atomic that the OpenSSL `SSL_CTX` factory reads (still lazy-init on first use, so no cost when TLS off)
- `LeafNodeRank.cc` `compressThrift`/`compressPayload` now read `args.server_zstd_flag` directly instead of `static const bool kServerZstd = readServerZstdEnv()` pattern
# jobs.yml
`feedsim_autoscale_dlrm` and `feedsim_autoscale_dlrm_mini` get the c7 defaults baked in via 7 new vars + 7 new `args` entries. `feedsim_dlrm` and `feedsim_default` continue to use whatever `run.sh` defaults (which now also match c7), so single-host jobs inherit the same baseline without explicit jobs.yml entries.
Reviewed By: YifanYuan3
Differential Revision: D1083549791 parent efcdc49 commit 8113786
2 files changed
Lines changed: 144 additions & 90 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
726 | 728 | | |
727 | 729 | | |
728 | 730 | | |
| |||
747 | 749 | | |
748 | 750 | | |
749 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
750 | 759 | | |
751 | 760 | | |
752 | 761 | | |
753 | 762 | | |
754 | 763 | | |
755 | 764 | | |
756 | 765 | | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
761 | 771 | | |
762 | 772 | | |
763 | 773 | | |
| |||
780 | 790 | | |
781 | 791 | | |
782 | 792 | | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
783 | 802 | | |
784 | 803 | | |
785 | 804 | | |
| |||
833 | 852 | | |
834 | 853 | | |
835 | 854 | | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
836 | 862 | | |
837 | 863 | | |
838 | 864 | | |
839 | 865 | | |
840 | 866 | | |
841 | 867 | | |
842 | 868 | | |
843 | | - | |
| 869 | + | |
844 | 870 | | |
845 | 871 | | |
846 | 872 | | |
| |||
866 | 892 | | |
867 | 893 | | |
868 | 894 | | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
869 | 902 | | |
870 | 903 | | |
871 | 904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
289 | 295 | | |
290 | 296 | | |
291 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
292 | 319 | | |
293 | 320 | | |
294 | 321 | | |
| |||
575 | 602 | | |
576 | 603 | | |
577 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 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 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
578 | 647 | | |
579 | 648 | | |
580 | 649 | | |
| |||
726 | 795 | | |
727 | 796 | | |
728 | 797 | | |
729 | | - | |
| 798 | + | |
730 | 799 | | |
731 | 800 | | |
732 | 801 | | |
733 | 802 | | |
734 | 803 | | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
735 | 813 | | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
775 | 824 | | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | 825 | | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
799 | 836 | | |
800 | 837 | | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
| 838 | + | |
| 839 | + | |
818 | 840 | | |
819 | 841 | | |
820 | 842 | | |
| |||
931 | 953 | | |
932 | 954 | | |
933 | 955 | | |
934 | | - | |
935 | | - | |
| 956 | + | |
936 | 957 | | |
937 | 958 | | |
938 | 959 | | |
| |||
0 commit comments