comphead commented on code in PR #7835:
URL: https://github.com/apache/datafusion-comet/pull/7835#discussion_r4788832833


##########
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:
   Done in 0692e4d8ae. The release now builds one native library per 
architecture, with `JEMALLOC_SYS_WITH_LG_PAGE=12` exported before the build, 
and publishes one jar per Spark and Scala combination. The `jemalloc` 
classifier jar would only duplicate the artifact, so it is gone, along with the 
unreleased `jemalloc` Maven profile. `check_native_libs` still checks that each 
jar holds the libraries the script built, and the snapshot workflow pins the 
page size the same way. Users on 64 KiB-page kernels build from source, as the 
FAQ and `source.md` say.
   



##########
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:
   Done in 0692e4d8ae. `lib.rs` now selects mimalloc whenever its feature is 
on, so `make release COMET_FEATURES=mimalloc` and a plain `cargo build 
--features mimalloc` both get mimalloc while jemalloc stays a default feature. 
`jni_api.rs` reads jemalloc's stats only when jemalloc is the selected backend. 
The new `selects_the_requested_allocator_backend` test asserts the backend, and 
the `rust-test` action now lints and runs the `alloc_accounting` tests over the 
system allocator (`--no-default-features --features hdfs-opendal,delta`) and 
over mimalloc. The Makefile's jemalloc and mimalloc conflict check is removed, 
since that combination now resolves to mimalloc.
   



##########
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:
   Done in 0692e4d8ae. `LICENSE-binary.txt` now has jemalloc 5.3.0's copyright 
notices, conditions and disclaimer. `tikv-jemalloc-sys` 0.6.1 vendors 5.3.0 
plus one build-script commit, and its `COPYING` matches the one at 5.3.0. 
`ensure-jars-have-correct-contents.sh` reads the vendored version from 
`tikv-jemalloc-sys` in `Cargo.lock` and fails if the LICENSE names another one. 
`test-jar-contents.py` covers version drift, an unreadable version and a 
missing copyright line.
   



-- 
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]

Reply via email to