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 lock contention in source (14_0_X backport) #45098

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

smorovic
Copy link
Contributor

PR description:

Fixes lock contention in source. Lock is used for setting up waiting on the condition variable, but it should be released after.
However, the lock is automatically reacquired at the end of wait as described:
https://en.cppreference.com/w/cpp/thread/condition_variable/wait

In production HLT this is seen to take significant time in the source (8-20% depending on data flow conditions and configuration) and could be the cause preventing using top ~10% of the CPU capacity in HLT.

Also, more logging (destination info) is added for the case of file broker connection issues.

PR validation:

Tested in daq3val system with both FedRawDataInputSource and DAQSource.

If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:

Backport of #45097
for 14_0_X release cycle.
Reason: performance bugfix in DAQ/HLT

- more logging details for DAQ Director connection to filebroker
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @smorovic for CMSSW_14_0_X.

It involves the following packages:

  • EventFilter/Utilities (daq)

@smorovic, @emeschi, @cmsbuild can you please review it and eventually sign? Thanks.
@missirol, @Martin-Grunewald this is something you requested to watch as well.
@rappoccio, @sextonkennedy, @antoniovilela you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented May 30, 2024

cms-bot internal usage

@smorovic
Copy link
Contributor Author

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f30099/39626/summary.html
COMMIT: 5c7f19b
CMSSW: CMSSW_14_0_X_2024-05-30-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/45098/39626/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@smorovic
Copy link
Contributor Author

+daq

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_14_0_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_14_1_X is complete. This pull request will now be reviewed by the release team before it's merged. @antoniovilela, @rappoccio, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@smorovic
Copy link
Contributor Author

@cms-sw/orp-l2

Potentially this could improve HLT performance inefficiency (as seen in throughput tests where we try to saturate HLT farm and notice source spending time on this lock).
After this is merged in 14_0_X, we would like to ask for a patch release (or a full release if that is scheduled in the next days) that will include this PR as well as:
#44980

@rappoccio
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 6f041f7 into cms-sw:CMSSW_14_0_X Jun 3, 2024
10 checks passed
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.

3 participants