Skip to content

CMakeLists.txt: increase verbosity for selected allocator - #51851

Merged
athanatos merged 1 commit into
ceph:mainfrom
Matan-B:wip-matanb-cmake-allocator-status
Jun 1, 2023
Merged

athanatos merged 1 commit into
ceph:mainfrom
Matan-B:wip-matanb-cmake-allocator-status

Conversation

@Matan-B

@Matan-B Matan-B commented May 31, 2023

Copy link
Copy Markdown
Contributor

Following #46062,

Unless the allocator was set on command line, we will select one based on the following order:

"specify memory allocator to use. currently tcmalloc, tcmalloc_minimal, \
jemalloc, and libc is supported. if not specified, will try to find tcmalloc, \
and then jemalloc. If neither of then is found. use the one in libc.")

with this change, cmake will explicitly message the compiler selected,
otherwise we have no option to identify the one which is being used.

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

Unless the allocator was set on command line, we will select one based on the following order:
```
"specify memory allocator to use. currently tcmalloc, tcmalloc_minimal, \
jemalloc, and libc is supported. if not specified, will try to find tcmalloc, \
and then jemalloc. If neither of then is found. use the one in libc.")
```
with this change, cmake will explicitly message the compiler selected,
otherwise we have no option to identify the one which is being used.

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B

Matan-B commented May 31, 2023

Copy link
Copy Markdown
Contributor Author
-- Found gperftools: /usr/include (found suitable version "2.9.1", minimum required is "2.6.2") 
-- allocator selected: tcmalloc
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found suitable version "7.81.0", minimum required is "7.32")  

https://jenkins.ceph.com/job/ceph-pull-requests/116272/consoleFull

@Matan-B

Matan-B commented Jun 1, 2023

Copy link
Copy Markdown
Contributor Author

@athanatos
athanatos merged commit f76c446 into ceph:main Jun 1, 2023
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