From 547611e0221328adee0e7a8abefb3b3ddfa1045f Mon Sep 17 00:00:00 2001 From: Gahow Wang Date: Sat, 23 May 2026 20:57:32 +0800 Subject: [PATCH] scripts: archive obsolete one-off shell/python scripts to legacy/ (D2, D3) D2: run_benchmark.sh and run_experiments.sh still pass --time-scale and --max-inflight-sessions to the replayer, but those flags were removed when the project moved to trace-driven dispatch. The scripts cannot run as-is. D3: ~25 ad-hoc analyze_* / compare_* / profile_* / final_* scripts and a handful of single-experiment run_*.sh point at /home/admin/cpfs paths, deleted output directories, or a sampled trace file that no longer exists. Keep them in scripts/legacy/ for historical reference; the scripts that remain in scripts/ (analyze_trace, analyze_breakdown, analyze_cache_hit, analyze_eviction, compare_results, compute_roofline, sample_trace, analyze_agentic_patterns, simulate_cache_policies, plus launch_*.sh, gpu_monitor.sh, bench.sh) cover the current workflow. Adds scripts/legacy/README.md to document the archival policy. --- scripts/legacy/README.md | 20 +++++++++++++++++++ scripts/{ => legacy}/ab_gpu_test.sh | 0 scripts/{ => legacy}/analyze_3way.py | 0 scripts/{ => legacy}/analyze_ablations.py | 0 scripts/{ => legacy}/analyze_aggregation.py | 0 scripts/{ => legacy}/analyze_gpu_ab.py | 0 scripts/{ => legacy}/analyze_h4_results.py | 0 scripts/{ => legacy}/analyze_h5_rdma.py | 0 scripts/{ => legacy}/analyze_p2p_cache.py | 0 scripts/{ => legacy}/compare_ab_final.py | 0 scripts/{ => legacy}/compare_adaptive.py | 0 scripts/{ => legacy}/compare_aggregation.py | 0 scripts/{ => legacy}/compare_balanced.py | 0 scripts/{ => legacy}/compare_elastic_v4.py | 0 scripts/{ => legacy}/compare_p2p.py | 0 scripts/{ => legacy}/final_all_comparison.py | 0 scripts/{ => legacy}/final_comparison.py | 0 scripts/{ => legacy}/final_gpu_comparison.py | 0 scripts/{ => legacy}/plot_gpu_timeline.py | 0 scripts/{ => legacy}/profile_fnf.py | 0 .../{ => legacy}/profile_why_pdsep_loses.py | 0 scripts/{ => legacy}/run_benchmark.sh | 0 .../run_elastic_stability_test.sh | 0 scripts/{ => legacy}/run_experiments.sh | 0 scripts/{ => legacy}/run_h4_cache_gate.sh | 0 scripts/{ => legacy}/run_lmetric_ab.sh | 0 scripts/{ => legacy}/run_ps_ablation.sh | 0 scripts/{ => legacy}/run_ps_flexd.sh | 0 scripts/{ => legacy}/run_ps_remaining.sh | 0 scripts/{ => legacy}/run_v2_offload.sh | 0 30 files changed, 20 insertions(+) create mode 100644 scripts/legacy/README.md rename scripts/{ => legacy}/ab_gpu_test.sh (100%) rename scripts/{ => legacy}/analyze_3way.py (100%) rename scripts/{ => legacy}/analyze_ablations.py (100%) rename scripts/{ => legacy}/analyze_aggregation.py (100%) rename scripts/{ => legacy}/analyze_gpu_ab.py (100%) rename scripts/{ => legacy}/analyze_h4_results.py (100%) rename scripts/{ => legacy}/analyze_h5_rdma.py (100%) rename scripts/{ => legacy}/analyze_p2p_cache.py (100%) rename scripts/{ => legacy}/compare_ab_final.py (100%) rename scripts/{ => legacy}/compare_adaptive.py (100%) rename scripts/{ => legacy}/compare_aggregation.py (100%) rename scripts/{ => legacy}/compare_balanced.py (100%) rename scripts/{ => legacy}/compare_elastic_v4.py (100%) rename scripts/{ => legacy}/compare_p2p.py (100%) rename scripts/{ => legacy}/final_all_comparison.py (100%) rename scripts/{ => legacy}/final_comparison.py (100%) rename scripts/{ => legacy}/final_gpu_comparison.py (100%) rename scripts/{ => legacy}/plot_gpu_timeline.py (100%) rename scripts/{ => legacy}/profile_fnf.py (100%) rename scripts/{ => legacy}/profile_why_pdsep_loses.py (100%) rename scripts/{ => legacy}/run_benchmark.sh (100%) rename scripts/{ => legacy}/run_elastic_stability_test.sh (100%) rename scripts/{ => legacy}/run_experiments.sh (100%) rename scripts/{ => legacy}/run_h4_cache_gate.sh (100%) rename scripts/{ => legacy}/run_lmetric_ab.sh (100%) rename scripts/{ => legacy}/run_ps_ablation.sh (100%) rename scripts/{ => legacy}/run_ps_flexd.sh (100%) rename scripts/{ => legacy}/run_ps_remaining.sh (100%) rename scripts/{ => legacy}/run_v2_offload.sh (100%) diff --git a/scripts/legacy/README.md b/scripts/legacy/README.md new file mode 100644 index 0000000..0a0a41f --- /dev/null +++ b/scripts/legacy/README.md @@ -0,0 +1,20 @@ +# scripts/legacy + +One-shot scripts kept for historical reference. They were tied to specific +experiments (cluster paths, deleted output dirs, removed CLI flags such as +`--time-scale` / `--max-inflight-sessions`) and are no longer expected to +run as-is. + +For new experiments use `scripts/bench.sh`. Pre-existing structured +analyses still live in `scripts/` (e.g. `analyze_trace.py`, +`analyze_breakdown.py`, `analyze_cache_hit.py`, `analyze_eviction.py`, +`compare_results.py`, `compute_roofline.py`). + +If you need to revive a legacy script, expect to: + +- update hardcoded paths (cluster `/home/admin/cpfs/...`, deleted trace + files, missing `outputs//...` directories); +- adapt to the current replayer CLI (`--time-scale` and + `--max-inflight-sessions` were removed when methodology moved to + trace-driven dispatch); +- re-verify the assumptions documented in `REPORT.md`. diff --git a/scripts/ab_gpu_test.sh b/scripts/legacy/ab_gpu_test.sh similarity index 100% rename from scripts/ab_gpu_test.sh rename to scripts/legacy/ab_gpu_test.sh diff --git a/scripts/analyze_3way.py b/scripts/legacy/analyze_3way.py similarity index 100% rename from scripts/analyze_3way.py rename to scripts/legacy/analyze_3way.py diff --git a/scripts/analyze_ablations.py b/scripts/legacy/analyze_ablations.py similarity index 100% rename from scripts/analyze_ablations.py rename to scripts/legacy/analyze_ablations.py diff --git a/scripts/analyze_aggregation.py b/scripts/legacy/analyze_aggregation.py similarity index 100% rename from scripts/analyze_aggregation.py rename to scripts/legacy/analyze_aggregation.py diff --git a/scripts/analyze_gpu_ab.py b/scripts/legacy/analyze_gpu_ab.py similarity index 100% rename from scripts/analyze_gpu_ab.py rename to scripts/legacy/analyze_gpu_ab.py diff --git a/scripts/analyze_h4_results.py b/scripts/legacy/analyze_h4_results.py similarity index 100% rename from scripts/analyze_h4_results.py rename to scripts/legacy/analyze_h4_results.py diff --git a/scripts/analyze_h5_rdma.py b/scripts/legacy/analyze_h5_rdma.py similarity index 100% rename from scripts/analyze_h5_rdma.py rename to scripts/legacy/analyze_h5_rdma.py diff --git a/scripts/analyze_p2p_cache.py b/scripts/legacy/analyze_p2p_cache.py similarity index 100% rename from scripts/analyze_p2p_cache.py rename to scripts/legacy/analyze_p2p_cache.py diff --git a/scripts/compare_ab_final.py b/scripts/legacy/compare_ab_final.py similarity index 100% rename from scripts/compare_ab_final.py rename to scripts/legacy/compare_ab_final.py diff --git a/scripts/compare_adaptive.py b/scripts/legacy/compare_adaptive.py similarity index 100% rename from scripts/compare_adaptive.py rename to scripts/legacy/compare_adaptive.py diff --git a/scripts/compare_aggregation.py b/scripts/legacy/compare_aggregation.py similarity index 100% rename from scripts/compare_aggregation.py rename to scripts/legacy/compare_aggregation.py diff --git a/scripts/compare_balanced.py b/scripts/legacy/compare_balanced.py similarity index 100% rename from scripts/compare_balanced.py rename to scripts/legacy/compare_balanced.py diff --git a/scripts/compare_elastic_v4.py b/scripts/legacy/compare_elastic_v4.py similarity index 100% rename from scripts/compare_elastic_v4.py rename to scripts/legacy/compare_elastic_v4.py diff --git a/scripts/compare_p2p.py b/scripts/legacy/compare_p2p.py similarity index 100% rename from scripts/compare_p2p.py rename to scripts/legacy/compare_p2p.py diff --git a/scripts/final_all_comparison.py b/scripts/legacy/final_all_comparison.py similarity index 100% rename from scripts/final_all_comparison.py rename to scripts/legacy/final_all_comparison.py diff --git a/scripts/final_comparison.py b/scripts/legacy/final_comparison.py similarity index 100% rename from scripts/final_comparison.py rename to scripts/legacy/final_comparison.py diff --git a/scripts/final_gpu_comparison.py b/scripts/legacy/final_gpu_comparison.py similarity index 100% rename from scripts/final_gpu_comparison.py rename to scripts/legacy/final_gpu_comparison.py diff --git a/scripts/plot_gpu_timeline.py b/scripts/legacy/plot_gpu_timeline.py similarity index 100% rename from scripts/plot_gpu_timeline.py rename to scripts/legacy/plot_gpu_timeline.py diff --git a/scripts/profile_fnf.py b/scripts/legacy/profile_fnf.py similarity index 100% rename from scripts/profile_fnf.py rename to scripts/legacy/profile_fnf.py diff --git a/scripts/profile_why_pdsep_loses.py b/scripts/legacy/profile_why_pdsep_loses.py similarity index 100% rename from scripts/profile_why_pdsep_loses.py rename to scripts/legacy/profile_why_pdsep_loses.py diff --git a/scripts/run_benchmark.sh b/scripts/legacy/run_benchmark.sh similarity index 100% rename from scripts/run_benchmark.sh rename to scripts/legacy/run_benchmark.sh diff --git a/scripts/run_elastic_stability_test.sh b/scripts/legacy/run_elastic_stability_test.sh similarity index 100% rename from scripts/run_elastic_stability_test.sh rename to scripts/legacy/run_elastic_stability_test.sh diff --git a/scripts/run_experiments.sh b/scripts/legacy/run_experiments.sh similarity index 100% rename from scripts/run_experiments.sh rename to scripts/legacy/run_experiments.sh diff --git a/scripts/run_h4_cache_gate.sh b/scripts/legacy/run_h4_cache_gate.sh similarity index 100% rename from scripts/run_h4_cache_gate.sh rename to scripts/legacy/run_h4_cache_gate.sh diff --git a/scripts/run_lmetric_ab.sh b/scripts/legacy/run_lmetric_ab.sh similarity index 100% rename from scripts/run_lmetric_ab.sh rename to scripts/legacy/run_lmetric_ab.sh diff --git a/scripts/run_ps_ablation.sh b/scripts/legacy/run_ps_ablation.sh similarity index 100% rename from scripts/run_ps_ablation.sh rename to scripts/legacy/run_ps_ablation.sh diff --git a/scripts/run_ps_flexd.sh b/scripts/legacy/run_ps_flexd.sh similarity index 100% rename from scripts/run_ps_flexd.sh rename to scripts/legacy/run_ps_flexd.sh diff --git a/scripts/run_ps_remaining.sh b/scripts/legacy/run_ps_remaining.sh similarity index 100% rename from scripts/run_ps_remaining.sh rename to scripts/legacy/run_ps_remaining.sh diff --git a/scripts/run_v2_offload.sh b/scripts/legacy/run_v2_offload.sh similarity index 100% rename from scripts/run_v2_offload.sh rename to scripts/legacy/run_v2_offload.sh