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

CA-399396: Adjust the jemalloc parameters for memory performance #6093

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephenchengCloud
Copy link
Contributor

@stephenchengCloud stephenchengCloud commented Oct 30, 2024

The new version (5.3.0) jemalloc caused a significant increase of memory usage compared to the version 3.6.0.
Adjust the parameters to fix the memory usage issue.

The modification has two parts, the other PR is in the spec repo.

  • dom0mem test:
    -- xenopsd-xc
    image
    -- qemu
    image
    -- xapi (the config is not changed for xapi service)
    image

The new version (5.3.0) jemalloc caused a significant increase of
memory usage compared to the version 3.6.0.

Signed-off-by: Stephen Cheng <[email protected]>
@stephenchengCloud
Copy link
Contributor Author

@edwintorok @psafont @mg12
Please review.

Copy link
Contributor

@lindig lindig left a comment

Choose a reason for hiding this comment

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

The change looks consistent. The actual parameters are difficult to review - they are are the result of the experiments. For xenopsd the effect of no jemalloc is dramatic - to my surprise.

Copy link
Contributor

@edwintorok edwintorok left a comment

Choose a reason for hiding this comment

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

There are quite a few more daemons in Dom0 (especially the newly split RRDD ones) that do not have this parameter.
We should eventually find a way to easily share the same config between multiple daemons.

For now this changes the existing MALLOC_CONF. We should probably have a separate PR that adds LD_PRELOAD+MALLOC_CONF to all the other OCaml daemons that don't have it yet, and use the settings from xenopsd-xc.service for that.

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