sunchao commented on code in PR #7835:
URL: https://github.com/apache/datafusion-comet/pull/7835#discussion_r4778509433
##########
native/core/Cargo.toml:
##########
@@ -129,7 +129,7 @@ opendal = { version = "0.58.1", features =
["services-memory"] }
[features]
backtrace = ["datafusion/backtrace"]
-default = ["hdfs-opendal", "delta"]
+default = ["hdfs-opendal", "delta", "jemalloc"]
Review Comment:
The [documented macOS
command](https://github.com/apache/datafusion-comet/blob/8c58b665b1e82c2180ff9655ddee0768ccf68d50/docs/source/contributor-guide/benchmarking_macos.md#L123-L127),
`make release COMET_FEATURES=mimalloc`, now enables both features. Make only
checks the explicit flags, so it misses the conflict and [the Rust
cfg](https://github.com/apache/datafusion-comet/blob/8c58b665b1e82c2180ff9655ddee0768ccf68d50/native/core/src/lib.rs#L88-L115)
silently selects `System`. Can we preserve the explicit mimalloc choice and
test the selected backend? For example, that Make path could pass
`--no-default-features --features hdfs-opendal,delta,mimalloc`.
##########
native/core/Cargo.toml:
##########
@@ -129,7 +129,7 @@ opendal = { version = "0.58.1", features =
["services-memory"] }
[features]
backtrace = ["datafusion/backtrace"]
-default = ["hdfs-opendal", "delta"]
+default = ["hdfs-opendal", "delta", "jemalloc"]
Review Comment:
The [release
script](https://github.com/apache/datafusion-comet/blob/8c58b665b1e82c2180ff9655ddee0768ccf68d50/dev/release/comet-rm/build-comet-native-libs.sh#L60-L76)
builds once with defaults and once with `--features jemalloc`. Both now select
jemalloc. If the libraries match, `cmp` aborts the release. If they differ, we
still ship jemalloc twice, and only the second build pins the page size. Can we
set `JEMALLOC_SYS_WITH_LG_PAGE=12` before building the default library and
update the packaging script to either drop the redundant classifier or
explicitly build a system-allocator variant?
##########
docs/source/about/faq.md:
##########
@@ -83,8 +83,8 @@ includes AVX2, on amd64, and Arm Neoverse N1 or newer cores
on arm64. If Comet c
(illegal instruction), the CPU is older than that. Build Comet from source for
it, and please
[open an issue](https://github.com/apache/datafusion-comet/issues) describing
your environment.
-The jars with the `jemalloc` classifier are built for 4 KiB memory pages and
fail on arm64 kernels that use
-64 KiB pages, such as the kernel of RHEL 8. On those machines, use the jar
with the system allocator or
+The jars use the jemalloc allocator, built for 4 KiB memory pages, and fail on
arm64 kernels that
Review Comment:
Since the default jar now ships the statically linked jemalloc library, can
we include its [copyright, conditions, and
disclaimer](https://github.com/tikv/jemalloc/blob/09ad115bc02db60cc9d9338cf0067074d3135fb4/COPYING#L4-L27)
in `dev/licenses/LICENSE-binary.txt`? Clause 2 covers binary redistribution.
[Maven packages that file as
`META-INF/LICENSE`](https://github.com/apache/datafusion-comet/blob/8c58b665b1e82c2180ff9655ddee0768ccf68d50/spark/pom.xml#L815-L819),
and it currently has no jemalloc entry. The existing jar contents check could
cover it alongside zstd.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]