Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-35575] Disable PERF_CONTEXT by default in compilation #76

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

mayuehappy
Copy link

No description provided.

Makefile Outdated
@@ -429,6 +429,12 @@ ifndef DISABLE_JEMALLOC
PLATFORM_CCFLAGS += $(JEMALLOC_INCLUDE)
endif

DISABLE_PERF_CONTEXT ?= 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be 1? by default?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rkhachatryan
I initially set it to 1, but since there are some UTs depending on perf_context, so it may cause CI to fail.
So the way I used is to set the default value to 0 in the Makefile and then set it to 1 in the build script of frocksdb , it's that ok ?

Copy link
Collaborator

@rkhachatryan rkhachatryan Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarifying, I'd be fine with that, but I don't see this change in the PR:

and then set it to 1 in the build script of frocksdb

Or am I missing something?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rkhachatryan I added DISABLE_PERF_CONTEXT=1 in the compilation script for Mac (FROCKSDB_VERSION=1.0 PORTABLE=1 ROCKSDB-DISMABLE_JEMALLOC=true DEBUG_LEVEL=0) to take effect in Mac products, and then added a commit to take effect in Docker compiled products (changes in docker-build-linux-centos.sh and docker-build-linux-alpine.sh)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rkhachatryan I added DISABLE_PERF_CONTEXT=1 in the compilation script for Mac (FROCKSDB_VERSION=1.0 PORTABLE=1 ROCKSDB-DISMABLE_JEMALLOC=true DEBUG_LEVEL=0)

Did you add it in this PR? I couldn't find this change.

added a commit to take effect in Docker compiled products (changes in docker-build-linux-centos.sh and docker-build-linux-alpine.sh)

Should we also update non-Docker scripts?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zakelly I would like to ask,if I want to add DISABLE_PERF_CONTEXT=1 to the compilation script of all frocksdb environments. What do you think about this, or do you have any better suggestions?

Copy link
Collaborator

@Zakelly Zakelly Aug 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zakelly I would like to ask,if I want to add DISABLE_PERF_CONTEXT=1 to the compilation script of all frocksdb environments. What do you think about this, or do you have any better suggestions?

@mayuehappy I'd be OK with this.

@@ -195,7 +195,7 @@ To start the crossbuild within a Mac OSX environment:
cp <path-to-ppc64le-musl-lib-so>/librocksdbjni-linux-ppc64le-musl.so java/target/librocksdbjni-linux-ppc64le-musl.so
cp <path-to-arm-lib-so>/librocksdbjni-linux-aarch64.so java/target/librocksdbjni-linux-aarch64.so
cp <path-to-arm-musl-lib-so>/librocksdbjni-linux-aarch64-musl.so java/target/librocksdbjni-linux-aarch64-musl.so
FROCKSDB_VERSION=1.0 PORTABLE=1 ROCKSDB_DISABLE_JEMALLOC=true DEBUG_LEVEL=0 make frocksdbjavastaticreleasedocker
FROCKSDB_VERSION=1.0 PORTABLE=1 ROCKSDB_DISABLE_JEMALLOC=true DEBUG_LEVEL=0 DISABLE_PERF_CONTEXT=1 make frocksdbjavastaticreleasedocker
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rkhachatryan I think changing this place will enable DISABLE_PERF_CONTEXT when compiling on Mac?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but only for Linux I believe. It would be nice to update for OSX too, but not mandatory IMObecause OSX isn't used in production and in benchmarks.

@mayuehappy
Copy link
Author

@rkhachatryan @Zakelly
I have resubmitted the PR
I default to setting the value of DISABLE-PERF-CONTEXT to 1, so that all environments can take effect when in use, and I have fixed the CI that cannot pass
Please help check if this is okay :)

Copy link
Collaborator

@rkhachatryan rkhachatryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the PR, LGTM

@Zakelly
Copy link
Collaborator

Zakelly commented Aug 13, 2024

Thanks for the update, LGTM+1

@Zakelly Zakelly merged commit 7a76723 into ververica:FRocksDB-8.10.0 Aug 13, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants