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

Fix memory leak in PandoraTranslator #9084

Merged
merged 1 commit into from May 18, 2015

Conversation

mark-grimes
Copy link

This fixes a memory leak of about 0.2 Mb/event in the pandora<->CMSSW translator. Plots below are for 0 pileup HGCal, since the leak is for each generator particle I don't think it's proportional to pileup (only have gen particles for the signal event).

@lgray says the check for integer charge is unnecessary so the original daughter particle address can used instead of creating a copy.
@lgray, can you check this PR is okay? As I understand it Pandora needs to be told explicitly about relationships, so the SetMCParentDaughterRelationship is still required even though the original particle has a pointer to the daughter, right?

Both plots are the memory retained by each module (top 25 only) after event execution, excluding the products they put in the event.
Before:
pandorafixbefore
And after:
pandorafixafter

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mark-grimes (Mark Grimes) for CMSSW_6_2_X_SLHC.

Fix memory leak in PandoraTranslator

It involves the following packages:

RecoParticleFlow/PandoraTranslator

The following packages do not have a category, yet:

RecoParticleFlow/PandoraTranslator

@cmsbuild, @nclopezo can you please review it and eventually sign? Thanks.
@mmarionncern, @bachtis, @lgray this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@fratnikov, @mark-grimes you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@fratnikov
Copy link

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@fratnikov
Copy link

merge

cmsbuild added a commit that referenced this pull request May 18, 2015
Fix memory leak in PandoraTranslator
@cmsbuild cmsbuild merged commit b05c72d into cms-sw:CMSSW_6_2_X_SLHC May 18, 2015
@mark-grimes mark-grimes deleted the pandoraMemoryFix branch May 18, 2015 15:54
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.

None yet

3 participants