← Back to Pull requests

Presto Slurm: personal-account fixes — fast-fail exit, mmap-allocator override, quieter logs #427

Closed
unknown closed this pull request without merging on Sep 18, 2026 20:02 UTC
View on GitHub
unknown unknown commented on Sep 18, 2026 18:40 UTC
Author

Summary

The main goal here was to get the presto slurm scripts working with the new user accounts on the NVL72. There were some QOL improvements added as well.

Fixes found while switching the Presto NVL72 Slurm scripts over from an
always-prestouser assumption to support personal accounts, and while
debugging benchmark runs on that path:

  • launch-run.sh: the "Resolving first node IP" loop used to poll

  • squeue for up to 5 minutes even when the job had already failed and left
    the queue (e.g. a fast failure during setup — missing Hive schema, etc).
    It now checks job state each iteration and breaks immediately once the job
    is gone, instead of waiting out the full timeout before reporting failure.
  • New CLUSTER_GPU_USE_MMAP_ALLOCATOR / CLUSTER_CPU_USE_MMAP_ALLOCATOR

  • cluster-config override
    , wired through launcher_common.sh →
    build_common_export_vars → generate_presto_config.sh, which now sets
    use-mmap-allocator in the generated native worker config. Some
    GB200/ARM nodes use a 64KB kernel page size, and Velox's MmapAllocator
    (the Presto C++ default) asserts at startup on those hosts
    (isPageSizeSupported(), see MmapAllocator.cpp:76). Setting the new
    variable to false switches to MallocAllocator without touching any
    launcher scripts. Defaults to true everywhere else, so clusters with
    normal 4KB pages are unaffected.
  • Quieter job logs: dropped -x shell tracing from the two job

  • entrypoints (run-presto-benchmarks.sh, run-analyze-tables.sh), which
    was dumping every executed command into .err logs. Also silenced
    miniforge/venv/conda/pip setup noise (run_py_script.sh --quiet,
    captured-and-dumped-on-failure for the miniforge installer) and stray
    pushd/popd directory-stack echoes.
  • Color consistency: centralized echo_success/RED color helpers into

  • launcher_common.sh and applied them to the main pass/fail lines
    (Job completed / Job FAILED, Analyze tables complete!,
    Benchmark complete!, etc.), matching the existing green "Configs were
    generated successfully" convention.
  • Docs/comments fix: every script comment and the README referenced

  • ~/.cluster_config.env, but the actual default (defaults.env) has
    always been ~/presto_cluster_config.env — a stale, misleading path.
    Fixed everywhere, and added guidance to copy a cluster-wide default
    (e.g. /scratch/nvidia/presto_cluster_config.env) instead of starting
    from the blank template when one has already been published.

    Outstanding issues

    Testing showed that this worked for existing tpch-float workloads, but we ran into errors when testing on decimal. This does not seem to be an issue with the scripts, as it's a segfault in velox. Further investigation will be needed on that end, but otherwise we are working as expected.

    The default data directory still points at the existing data, where new users have read-only access - this is as intended for now. If we want to create new "official" data for now we will use prestouser, otherwise you can creat your own data and point the configs at it.

    Test plan

  • Reproduced the original "hangs for 5 minutes after a fast failure"

  • behavior, confirmed launch-run.sh now exits promptly once the job
    leaves the queue.
  • Reproduced the MmapAllocator startup crash on a 64KB-page GB200 node;

  • confirmed CLUSTER_GPU_USE_MMAP_ALLOCATOR=false avoids it and workers
    register successfully.
  • Verified the use-mmap-allocator sed substitution against the real

  • template file.
  • Full end-to-end TPC-H SF1000 benchmark run (blocked on a separate,

  • unrelated GPU-exchange correctness bug under investigation — not part
    of this PR).
  • Ran launch-analyze.sh and launch-run.sh on tpch-float and tpch-decimal workloads (1k, 3k). Worked as expected with the exception of the decimal benchmarks segfaulting in velox (as noted above).
  • Diff: 502 lines (+376 / -126) across 6 files Reviewer: misiugodfrey Review duration: 81m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 502 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.372
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #427"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.5% (MEDIUM) · Higher = larger blast radius
    47.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.8% · Safe to merge
    18.8%