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
increase size of buffer in InitMsgBuilder
#37937
increase size of buffer in InitMsgBuilder
#37937
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37937/29988
|
A new Pull Request was created by @missirol (Marino Missiroli) for master. It involves the following packages:
@cmsbuild, @smuzaffar, @Dr15Jones, @makortel can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Attn: @smorovic |
@missirol thanks for debugging the problem! |
urgent Targets |
type bugfix |
(much) help from @fwyzard is acknowledged :) |
please test |
+1 |
Thanks for debugging and fixing it. Are you also planning to create a backport for 12_3_X? |
Also, it looks like 'core' needs to sign-off Streamer directory, I don't have the rights. |
Yes, definitely. I can prepare this tomorrow. |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4cb6ea/24690/summary.html Comparison SummarySummary:
|
+1 |
PR description:
This PR fixes a problem reported by @fwyzard when running the full HLT GRun menu using
GlobalEvFOutputModule
ascms.OutputModule
(which is how the HLT produces output files online).The issue occurs in the
beginRun
stage, when serializing the content of the "INI" streamer files: the size of the buffer given byInitMsgBuilder
toEventMsgBuilder
can be too small if the number of L1 and HL triggers is above certain values.The current size of
256
is insufficient, for example, in the presence of 500 L1T seeds and 500 HLT paths.The issue leads to a crash, and it can be reproduced with this minimal update of the relevant DAQ unit test.
To my knowledge, this problem affects both
GlobalEvFOutputModule
andEvFOutputModule
.Given the deadline for
12_4_0_pre4
(and possible need for a patch release in12_3_X
), this PR applies a minimal fix increasing the buffer size.A buffer size of
640
should be sufficient for 512 L1T seeds and 2000 HLT paths (the current HLT menu for pp collisions has approx. 800 paths).In the near future, the algorithm could be improved to find an optimal buffer size based on the number of L1 and HL triggers in the configuration.
This PR will need to be backported at least to
12_3_X
.Debugged with @fwyzard.
PR validation:
Manual tests. This fix solves the original issue found when testing the full GRun menu.
If this PR is a backport, please specify the original PR and why you need to backport that PR:
N/A