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

feat: support to use jemalloc while building pegasus #1050

Merged
merged 13 commits into from
Jul 19, 2022

Conversation

empiredan
Copy link
Contributor

@empiredan empiredan commented Jul 15, 2022

This PR is for #819.

Previously we've supported jemalloc while building rDSN (XiaoMi/rdsn#910). However, building pegasus with jemalloc enabled will lead to the following problem:
image

The reason can be described like this: cmake file for RocksDB had been generated to enable jemalloc (JeMalloc::JeMalloc);
on the other hand, however, rDSN was not told that jemalloc should be enabled, since pegasus didn't pass USE_JEMALLOC to rDSN.

Enabling jemalloc while building pegasus can be implemented in this way: since dsn_common_setup() are called in src/CMakeLists.txt before building executables, using jemalloc for pegasus can be supported by passing the option USE_JEMALLOC to rdsn/bin/dsn.cmake.

@foreverneverer
Copy link
Contributor

Great!

foreverneverer
foreverneverer previously approved these changes Jul 16, 2022
@foreverneverer foreverneverer mentioned this pull request Jul 18, 2022
@empiredan empiredan marked this pull request as draft July 18, 2022 04:11
@empiredan empiredan closed this Jul 18, 2022
@empiredan empiredan reopened this Jul 18, 2022
src/CMakeLists.txt Outdated Show resolved Hide resolved
@empiredan empiredan marked this pull request as ready for review July 18, 2022 13:29
@empiredan empiredan merged commit 785b3b7 into apache:master Jul 19, 2022
ZhongChaoqiang pushed a commit to ZhongChaoqiang/incubator-pegasus that referenced this pull request Nov 28, 2022
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