Skip to content

Native image: the full-text index build at perf scale M takes over 30 minutes, the JVM build 163 s #12839

Closed

Description

@robfrank

Found by the nightly performance run (#12427) on perf-01.

What happens

The bench case fulltext/build at scale M times out (30-minute case cap) on the native server, while the JVM server built from the same commit finishes it in 163 s:

run commit jvm native
nightly 2026-11-21 0f8f74e ok, build_s 163 timeout > 1800 s
release 26.11.1 (M) 0f3bb22 ok timeout > 1800 s

Every other case of the same runs, including vector build and the full-text queries, completes on native. Raw results: https://github.com/ArcadeData/arcadedb-perf/tree/main/data/2026/11 (*-native.json).

It also pushes the nightly past its 3-hour budget (3h16 on 2026-11-21).

Where to look

Reproduce

bench run --workload fulltext --scale M --image arcadedata/arcadedb:latest-native --variant native --reps 1 --warmup 0 against the JVM image as the control.

Activity

  1. added
    native-image
    severity:minor
    on Nov 21, 2026
  2. added this to the 26.12.1 milestone on Nov 21, 2026
  3. self-assigned this
    on Nov 22, 2026
  4. added
    in progress
    on Nov 22, 2026
  5. robfrank commented on Nov 22, 2026

    @robfrank
    CollaboratorAuthor

    I investigated this and did not find a native-specific defect in the full-text index build. The timeout comes from how the bench counts time.

    The 1800 s cap covers the whole case, not one build

    BenchRunner.runCase sets a single deadline (caseTimeout, 30 min) for all of execute():

    • prepare(), which for fulltext/build also inserts the 500k documents (with 128-dim embeddings) when they are not present yet
    • 2 warmup builds
    • 5 measured builds

    The reported build_s is the median of a single build, so the two numbers in the issue are not comparable:

    • JVM: 7 x 163 s = 1141 s, under the cap, reported as ok with build_s 163
    • Native at scale S builds in 22.7 s vs 14.9 s on the JVM (about 1.5x). The same ratio at M gives about 245 s per build, and 7 x 245 s is about 1715 s before the data load, so the case passes 1800 s and reports a timeout with no metrics
    • The JVM also times out at scale L, which fits the same per-case cap

    Measurement

    Native server image built from main at b805606 (macOS arm64, GraalVM CE 25.0.2), -Xms8g -Xmx8g -XX:+PrintGC, 500k documents of 200 words from the bench's 10k-word dictionary (scale M):

    • CREATE INDEX ON Doc (body) FULL_TEXT: 136.4 s, linear at about 27 s per 100k records
    • GC pauses short (max about 1.2 s for a full GC), no superlinear growth

    That is in the same range as the JVM's 149-163 s on perf-01. Caveat: this was not run on perf-01's Linux x86_64 image or in Docker.

    Where the fix belongs

    The bench harness, not the engine. Options:

    • make the timeout per repetition instead of per case
    • use fewer warmups/reps for build-type cases
    • raise the cap for this case
    • load the data outside the case's deadline

    If native build_s is still far above the JVM once the cap no longer hides it, we reopen the investigation on the Linux image.

  6. removed
    in progress
    on Nov 22, 2026
  7. added
    in progress
    on Nov 22, 2026
  8. robfrank commented on Nov 22, 2026

    @robfrank
    CollaboratorAuthor

    Fixed by #13095, shipping in 26.12.1.

    There was no engine problem here. The benchmark runner applied its 30-minute limit to a whole case (data load, 2 warm-up builds and 5 measured builds together), not to one build. A native full-text build at scale M takes about 245 s, so 7 builds plus the load went past 30 minutes and the case was reported as a timeout without metrics, while the faster JVM build stayed just under the cap.

    What changes:

    • --timeout-min (default 30) now limits each warm-up and each measured repetition separately.
    • New --prepare-timeout-min (default: same as --timeout-min) limits the data load.
    • New --case-timeout-min (default 120, 0 = no cap) caps the whole case as a hang detector.
    • A timeout message now says which step ran over, for example rep 3/5 exceeded 1800000 ms.

    If native build_s still turns out far above the JVM's now that the case completes, the engine investigation can be reopened on the Linux image. The nightly script in arcadedb-perf-infra passes no timeout flag, so it picks up the new defaults; only a stale comment there needs updating.


    ❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.

  9. removed
    in progress
    on Nov 22, 2026
  10. added a commit that references this issue on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

native-imageperformanceseverity:minor

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions