Skip to content

[Subtask]: Attribute warm-query critical paths and scaling limits before scheduling changes #30852

Open

Description

@aunjgr

Parent Issue

#30838

Detail of Subtask

Evidence reassessment — 2026-10-26

Current delivery/performance status: CAUSAL DIAGNOSIS REQUIRED; increased CPU occupancy is not the objective.

Observed: Historical all-memory SF100 uses about 44.99 busy logical CPUs for MO and 52.86 for DuckDB out of 64; at SF10 the values are 6.75 and 6.85 out of eight. The 5.1447 = 4.3791 x 1.1748 ratio identity is descriptive. Different hosts cannot provide a scaling curve. MO filesystem-wait timers can include decode CPU.

Not yet established: The foreground critical path, worker skew, dependency barriers and runnable-versus-running time. Explicit mergeObjectsTask ancestry is 11.27%/7.10%/7.82% of archived SF10 Q1/Q9/Q18 user samples. A cold-run exclusion or zero physical I/O does not establish background quiescence. Occupancy or wait timer labels alone cannot identify scheduler overhead.

Next discriminating experiment: On one host/configuration, distinguish operator CPU, maintenance CPU, kernel work and genuine waits; inspect per-worker work and dependency paths. Record maintenance state without input/result verification; compare matched quiescent prepared images or explicitly label retained background work, without silently subtracting it from whole-application totals. Vary CPU count on that host only when a scaling experiment is needed.

Measured target: A shorter measured critical path and lower uninstrumented latency, with total CPU/resources reported; no occupancy-only performance PASS.

Mandatory controls and total cost boundary: Already-saturated and small/short queries, low-parallelism plans, skew, SMT/NUMA, cancellation/early stop, pressure and matched maintenance conditions.

Performance acceptance and rejection

  • Freeze current-main/candidate sources, executables, real caller shapes and effective settings. Use the unchanged qualification SQL and complete result consumption; exclude cold runs and keep profiles separate from latency scoring.
  • Demonstrate the named work/CPU reduction and an attributable uninstrumented target-query improvement. Include the controls below and full Q1-Q22 comparison; component wins, source changes, functional tests, SCA, merging and profile percentages are separate evidence.
  • A confirmed affected/control slowdown fails; unresolved slower signals are inconclusive. Confirm with an independent longer balanced run. No gain elsewhere, favorable average or self-approved tolerance waives a regression.
  • Complete applicable SF10/SF100 and memory/mixed-I/O acceptance before issue closure under the umbrella protocol. Report uncertainty, absolute CPU/instructions/work, allocations/copies and the same whole-application budget, effective cache, I/O/spill/swap/pressure evidence. Benchmark scripts do not verify input/table/schema/row counts/reference results/checksums.

Semantics and lifecycle requirements retained

  • Identify at least one measured critical-path bottleneck and the producer/consumer or wait-for path before changing scheduling.
  • Report OS CPU, uninstrumented wall time, per-worker imbalance and relevant waits; an increase in CPU occupancy alone is not acceptance.
  • A selected fix preserves bounded backpressure, completion/error/cancel/early-stop and reset/reuse, with focused deterministic lifecycle tests.
  • Show the same-host benefit and an unaffected/no-benefit control; retain hardware/build/PSI limitations and avoid a cross-host scaling claim.

Describe implementation you've considered

Choose the actual owner: work reduction, skew/finalization, a barrier, bounded dispatch/backpressure or allocation stalls. Use scheduling changes only for demonstrated scheduling limitations. Less work and lower occupancy can still produce the desired faster query.

Coordination: #30851 owns allocation/kernel diagnosis; #30845 shuffle materialization; optimizer work reduction remains separate. Preserve both foreground and whole-application accounting.

Additional information

Pinned implementation / plan references

Activity

  1. self-assigned this
    on Oct 22, 2026
  2. added
    severity/s0
    on Oct 22, 2026
  3. changed the title [-][Subtask]: Explain and improve warm pipeline CPU occupancy under equal CPU budgets[/-] [+][Subtask]: Attribute warm-query critical paths and scaling limits before scheduling changes[/+] on Oct 25, 2026
  4. assigned and unassigned on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/subtaskseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions