Skip to content

GH-42140: [C++] Avoid invalid accesses in parquet-encoding-benchmark - #42141

Merged
pitrou merged 1 commit into
apache:mainfrom
pitrou:gh42140-encoding-valgrind
Jun 13, 2024
Merged

pitrou merged 1 commit into
apache:mainfrom
pitrou:gh42140-encoding-valgrind

Conversation

@pitrou

@pitrou pitrou commented Jun 13, 2024 •

Copy link
Copy Markdown
Member

Rationale for this change

parquet-encoding-benchmark would make invalid memory accesses if more than one repetition per benchmark is requested by the user.

This was initially noticed in #41205 : switching to jemalloc would crash the specific benchmark(s) on a macOS ARM machine.

What changes are included in this PR?

Make sure benchmark data initialization is idempotent.

Are these changes tested?

Locally using Valgrind.

Are there any user-facing changes?

No.

@pitrou
pitrou requested a review from wgtmac as a code owner June 13, 2024 12:17
@pitrou

pitrou commented Jun 13, 2024

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit -g cpp

@pitrou

pitrou commented Jun 13, 2024

Copy link
Copy Markdown
Member Author

@ursabot please benchmark lang=C++

@ursabot

ursabot commented Jun 13, 2024

Copy link
Copy Markdown

Benchmark runs are scheduled for commit a8d1141. Watch https://buildkite.com/apache-arrow and https://conbench.ursa.dev for updates. A comment will be posted here when the runs are complete.

@github-actions

Copy link
Copy Markdown

Revision: a8d1141

Submitted crossbow builds: ursacomputing/crossbow @ actions-3d4611851b

Task Status
test-alpine-linux-cpp GitHub Actions
test-build-cpp-fuzz GitHub Actions
test-conda-cpp GitHub Actions
test-conda-cpp-valgrind GitHub Actions
test-cuda-cpp GitHub Actions
test-debian-12-cpp-amd64 GitHub Actions
test-debian-12-cpp-i386 GitHub Actions
test-fedora-39-cpp GitHub Actions
test-ubuntu-20.04-cpp GitHub Actions
test-ubuntu-20.04-cpp-bundled GitHub Actions
test-ubuntu-20.04-cpp-minimal-with-formats GitHub Actions
test-ubuntu-20.04-cpp-thread-sanitizer GitHub Actions
test-ubuntu-22.04-cpp GitHub Actions
test-ubuntu-22.04-cpp-20 GitHub Actions
test-ubuntu-22.04-cpp-emscripten GitHub Actions
test-ubuntu-22.04-cpp-no-threading GitHub Actions
test-ubuntu-24.04-cpp GitHub Actions
test-ubuntu-24.04-cpp-gcc-14 GitHub Actions

@pitrou

pitrou commented Jun 13, 2024

Copy link
Copy Markdown
Member Author

The CI failures are all unrelated. I'll still wait for benchmarking runs to finish to make sure they didn't fail.

@conbench-apache-arrow

Copy link
Copy Markdown

Thanks for your patience. Conbench analyzed the 4 benchmarking runs that have been run so far on PR commit a8d1141.

There were 9 benchmark results indicating a performance regression:

The full Conbench report has more details.

@pitrou
pitrou merged commit fc7b800 into apache:main Jun 13, 2024
@pitrou
pitrou deleted the gh42140-encoding-valgrind branch June 13, 2024 19:11
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit fc7b800.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 6 possible false positives for unstable benchmarks that are known to sometimes produce them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants