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

pacific: mgr/BaseMgrModule: Optimize CPython Call in Finish Function #55109

Merged
merged 1 commit into from Feb 6, 2024

Conversation

k0ste
Copy link
Contributor

@k0ste k0ste commented Jan 9, 2024

backport tracker: https://tracker.ceph.com/issues/63978


backport of #54634
parent tracker: https://tracker.ceph.com/issues/59580

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

@k0ste k0ste requested a review from a team as a code owner January 9, 2024 16:28
@github-actions github-actions bot added this to the pacific milestone Jan 9, 2024
@ljflores
Copy link
Contributor

ljflores commented Jan 10, 2024

If this is a must for 16.2.15, please add it to https://github.com/ceph/ceph/milestone/17 since Pacific is going EOL.

@k0ste
Copy link
Contributor Author

k0ste commented Jan 10, 2024

If this is a must for 16.2.15, please add it to https://github.com/ceph/ceph/milestone/17 since Pacific is going EOL.

Only developers can edit labels and milestones, I'm not

@ljflores
Copy link
Contributor

This changeset wasn't staging in the main branch enough to observe long-term behavior. As the .15 is the last minor release of the series (pacific goes EOL), there won't be more time. Let's close it.

@ljflores ljflores closed this Jan 17, 2024
@ljflores
Copy link
Contributor

Thanks for your contribution!

@ljflores ljflores reopened this Feb 1, 2024
@ljflores
Copy link
Contributor

ljflores commented Feb 1, 2024

Will see how this goes in testing since there is a little more time for 16.2.15.

@yuriw yuriw modified the milestones: pacific, v16.2.15 Feb 1, 2024
Remove CPython overhead packing tuple during the 'finish' function to
improve memory consumption when we deal with long-string outputs.
When modules like Restful return large amounts of output the use
of PyObject_CallFunction without createing PyObject will reduce the
time the memory held by the mgr.

Fixes: https://tracker.ceph.com/issues/59580
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit 247ace1)
Copy link
Contributor

@tchaikov tchaikov left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@ljflores ljflores left a comment

Choose a reason for hiding this comment

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

@NitzanMordhai
Copy link
Contributor

Blocking merging until @rzarzynski and @NitzanMordhai can take a final look.

The rados suite passed though: https://tracker.ceph.com/projects/rados/wiki/PACIFIC#httpstrellocomcN8lquGmt1946-wip-yuri2-testing-2024-02-01-0939-pacific

looks good to me, although only 1 test was for the rest module, but it cover all options. @rzarzynski any thoughts?

Copy link
Contributor

@ljflores ljflores left a comment

Choose a reason for hiding this comment

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

We discussed it; this can be included.

@ljflores ljflores merged commit 88626a7 into ceph:pacific Feb 6, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants