Skip to content

Maven and program-run JVMs start C1-only, one GC thread (Part of #5882) - #5922

Merged
squid-protocol merged 1 commit into
mainfrom
perf/5882-maven-c1
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
perf/5882-maven-c1

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5882 (CI speed). Follow-up to #5920, which did the same for javac; the two merge cleanly in either order.

What it does: maven_exe.JVM_SHORT_RUN_FLAGS (-XX:TieredStopAtLevel=1 -XX:+UseSerialGC) on:

  • Maven's own JVM: MAVEN_OPTS through maven_utf8_env, so every harness Maven run, CICS Crucible's included
  • the equivalence run's argLine: the direct java ... EquivalenceMain run and surefire's fork alike, which keeps test_mutation_tooling's "direct flags = Maven's" check true
  • the --one-jvm session JVM's command (its per-run stdin only forwards -D properties)
  • CICS Crucible's -DargLine

The owner OK'd applying it to the program-run JVM. The JIT tier changes speed, not what the program computes (Java 17 floating point is strict at every tier).

Measured on 4 pinned cores with --jobs 4 (a det shard's shape), baseline = #5920's tree, two interleaved runs each:

baseline this PR
java_direct, non-Db2 (3 cases) 88 / 81 s 64 / 61 s
java_direct, Db2 (5 cases) 117 / 90 s 52 / 71 s
whole sweep, non-Db2 105 / 94 s 81 / 76 s
4 cold Maven test-compiles of a generated project 20.9 / 21.0 s 8.4 / 10.1 s

Same results: 16/16 case comparisons SAME (ab_compare.py: verdicts, outputs, coverage, every task's COBOL files). The Maven class files are identical.

On CI run 39658216307, java_direct was 816 s and java_maven 239 s of shard 1/6. The det job's Shard timings will show the effect.

Evidence: editing equivalence_java.py marks evidence records stale on "harness" (re-proven by the scheduled job), as any harness change and #5920 already do. maven_exe.py is not in HARNESS.

Tests: the 44 test files that reference maven_utf8_env / MAVEN_OPTS / JVM_UTF8_FLAGS / start_session / run_maven / cics_crucible, plus test_mutation_tooling: 1075 passed, 45 skipped. Ruff: no new findings.

🤖 Generated with Claude Code

…5882)

JVM_SHORT_RUN_FLAGS (-XX:TieredStopAtLevel=1 -XX:+UseSerialGC) on Maven's own JVM
(MAVEN_OPTS via maven_utf8_env: every harness Maven run, CICS Crucible's included),
the equivalence run's argLine (the direct java run and surefire's fork alike), the
--one-jvm session JVM, and CICS Crucible's -DargLine. A run lives seconds: C2 never
pays back, and its threads take the cores the other parallel cases need.

Measured on 4 pinned cores, det sweep --jobs 4 (the CI shard shape), 2 runs each:
java_direct non-Db2 88/81 s -> 64/61 s, Db2 117/90 s -> 52/71 s; whole sweep
non-Db2 105/94 s -> 81/76 s. 16/16 case comparisons SAME (verdicts, outputs,
coverage, COBOL files). Four cold Maven test-compiles: 20.9 s -> 8.4-10.1 s,
class files identical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 321c647 into main Oct 21, 2026
45 checks passed
@squid-protocol
squid-protocol deleted the perf/5882-maven-c1 branch October 21, 2026 22:51
squid-protocol added a commit that referenced this pull request Oct 21, 2026
…art of #5882) (#5926)

* CICS Crucible: a shard measures four cases at once (--jobs, Part of #5882)

A shard ran its ~11 cases one after another on a 4-vCPU runner: the case times
add up to the shard's wall time (154 s of 155 s locally). cics_crucible.py --jobs N
measures N cases at once, each in a spawned process (quiet() redirects a whole
process's fds, so not threads); the parent prints each case's lines in case order
and merges cells, coverage and the ports' actual / entries collectors, so results
and log are the sequential run's. The workflow passes --jobs 4.

Shard 1/4 on 4 pinned cores: 155 s -> 101 s; with #5922's C1 flags 57 s (2.7x).
results.json cells / coverage / oracle / shard SAME at --jobs 2, 3 and 4; the log
line for line the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* CICS Crucible: two shards, not four, now that a shard runs four cases at once (Part of #5882)

Each measure job costs ~40 s of setup (checkout, clone, pip, JDK, Maven cache, oracle
image) and a runner slot of the shared pool; with --jobs 4 two shards (22 / 21 cases,
607 / 608 recorded seconds) finish about with runner-tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant