-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix memory leak in GenParticles2HepMCConverter #46203
Fix memory leak in GenParticles2HepMCConverter #46203
Conversation
cms-bot internal usage |
enable nano |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46203/42013 |
A new Pull Request was created by @hqucms for master. It involves the following packages:
@bbilin, @lviliani, @menglu21, @mkirsano can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 Size: This PR adds an extra 16KB to repository Comparison SummarySummary:
NANO Comparison SummarySummary:
Nano size comparison Summary:
|
Maxmem profiling shows expected reduction: |
Whoops, sorry for introducing this 🤦♂️ We should also have a backport to 14_1 so that it can be used for Rivet 4 development |
np :) I will do a backport after this is merged for master. |
@mseidel42 I opened the backport to 14_1_X in #46254. |
1f38bfa
to
19d6938
Compare
please test |
assign xpog |
New categories assigned: xpog @ftorrresd,@hqucms you have been requested to review this Pull request/Issue and eventually sign? Thanks |
+1 Size: This PR adds an extra 24KB to repository Comparison SummarySummary:
NANO Comparison SummarySummary:
Nano size comparison Summary:
|
+1 |
@cms-sw/generators-l2 Could you please review and sign? Thanks! |
ping @cms-sw/generators-l2 |
type bugfix |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @sextonkennedy, @mandrenguyen, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
When checking the NANO matrix tests I noticed some MC workflows show very high memory usage (~6GB). This was tracked down to a memory leak due to undeleted raw pointer in GenParticles2HepMCConverter. This PR fixes that by switching to
unique_ptr
.PR validation:
Tested with NANO matrix test and see much lower and stable memory usage after the fix.