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

Optimize NanoAOD buffers at 1k events. #119

Closed
wants to merge 1 commit into from

Conversation

gpetruc
Copy link

@gpetruc gpetruc commented Mar 15, 2018

copy of cms-sw#22445 in this repo so that I can have the bot run the tests on it and see if it affects compression

ROOT will automatically add 16 bytes per branch buffer per event in the
event cluster; in the case of NanoAOD files, we've seen up to 143k events
per cluster (and 800 branches), resulting in an excess of 900MB of memory usage.

With this change, we explicitly optimize NanoAOD buffers after 1k events, then
subsequently flush at more appropriate intervals.  To achieve this, we
disable the ROOT auto-flush mechanism and explicitly optimize / flush from
the NanoAOD output module itself.
@gpetruc-bot
Copy link

Copy link

@gpetruc-bot gpetruc-bot left a comment

Choose a reason for hiding this comment

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

Automatic test report for 331820

Code integration

Code checks passed for this PR

Tests

  • Long test data80X (10000 events): passed, no significant changes; dqm plots: all, diff
  • Long test data80Xhip (3000 events): passed, no significant changes; dqm plots: all, diff
  • Long test data94X (10000 events): passed, no significant changes; dqm plots: all, diff
  • Long test mc80X (10000 events): passed, no significant changes; dqm plots: all, diff
  • Long test mc94X (10000 events): passed, no significant changes; dqm plots: all, diff
  • Test mc_94X: passed
  • Test mc_80X: passed
  • Test mc_92X: passed
  • Test data_92X: passed
  • Test data_80X: passed

Disk size report

Sample kb/event ref kb/event diff
TTbar MC 94X 1.452 1.510 -0.058 ( -3.9% )
TTbar MC 80X 1.501 1.557 -0.056 ( -3.6% )
Data 94X 0.588 0.611 -0.022 ( -3.6% )
Data 80X 0.556 0.577 -0.021 ( -3.7% )
Data 80X, Mu Run2016E 0.556 0.507 0.049 ( +9.7% )

@gpetruc
Copy link
Author

gpetruc commented Mar 19, 2018

merged upstream, no need to merge here (PR was made just to run the bot)

@gpetruc gpetruc closed this Mar 19, 2018
peruzzim pushed a commit that referenced this pull request Apr 25, 2019
Sync with 10_5_0_pre2
Only one trivial conflict solved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants