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

RepeatingCachedRootSource #33332

Merged
merged 5 commits into from Apr 7, 2021
Merged

Conversation

Dr15Jones
Copy link
Contributor

PR description:

Created the RepeatingCachedRootSource which allows performance tests which are not dependent upon the read speed of the storage medium.

PR validation:

The added unit test passes.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33332/21883

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2021

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

FWCore/Framework
FWCore/TFWLiteSelector
IOPool/Input

@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @wddgit this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5c5d34/13992/summary.html
COMMIT: f213f96
CMSSW: CMSSW_11_3_X_2021-04-04-0000/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/33332/13992/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2640868
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2640845
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 36 files compared)
  • Checked 155 log files, 37 edm output root files, 37 DQM output files
  • TriggerResults: no differences found

IOPool/Input/src/RepeatingCachedRootSource.cc Outdated Show resolved Hide resolved
IOPool/Input/src/RepeatingCachedRootSource.cc Outdated Show resolved Hide resolved
IOPool/Input/src/RepeatingCachedRootSource.cc Outdated Show resolved Hide resolved
std::shared_ptr<edm::WrapperBase> getProduct_(edm::BranchID const& k, edm::EDProductGetter const* ep) final {
return m_source->getProduct(m_streamIndex, k, ep);
}
void mergeReaders_(edm::DelayedReader*) final { assert(false); }
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this function be ever called?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This DelayedReader is only used on EventPrincipals and events do not do mergers. Therefore it should never be called.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2021

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33332/21893

ERROR: Build errors found during clang-tidy run.

--
FWCore/Framework/src/Worker.h:975:9: error: unknown type name 'ServiceWeakToken'; did you mean 'ServiceToken'? [clang-diagnostic-error]
        ServiceWeakToken weakToken = token;
        ^~~~~~~~~~~~~~~~
        ServiceToken
--
FWCore/Framework/src/Worker.h:979:56: error: no member named 'lock' in 'edm::ServiceToken' [clang-diagnostic-error]
              ServiceRegistry::Operate guard(weakToken.lock());
                                                       ^
FWCore/Framework/src/Worker.h:981:42: error: no member named 'lock' in 'edm::ServiceToken' [clang-diagnostic-error]
                               weakToken.lock(),
                                         ^
FWCore/Framework/src/Worker.h:1046:7: error: unknown type name 'ServiceWeakToken'; did you mean 'ServiceToken'? [clang-diagnostic-error]
      ServiceWeakToken weakToken = serviceToken;
      ^~~~~~~~~~~~~~~~
      ServiceToken
--
FWCore/Framework/src/Worker.h:1052:52: error: no member named 'lock' in 'edm::ServiceToken' [clang-diagnostic-error]
          ServiceRegistry::Operate guard(weakToken.lock());
                                                   ^
Suppressed 930 warnings (928 in non-user code, 2 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2021

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33332/21896

ERROR: Build errors found during clang-tidy run.

--
FWCore/Framework/src/Worker.h:975:9: error: unknown type name 'ServiceWeakToken'; did you mean 'ServiceToken'? [clang-diagnostic-error]
        ServiceWeakToken weakToken = token;
        ^~~~~~~~~~~~~~~~
        ServiceToken
--
FWCore/Framework/src/Worker.h:979:56: error: no member named 'lock' in 'edm::ServiceToken' [clang-diagnostic-error]
              ServiceRegistry::Operate guard(weakToken.lock());
                                                       ^
FWCore/Framework/src/Worker.h:981:42: error: no member named 'lock' in 'edm::ServiceToken' [clang-diagnostic-error]
                               weakToken.lock(),
                                         ^
FWCore/Framework/src/Worker.h:1046:7: error: unknown type name 'ServiceWeakToken'; did you mean 'ServiceToken'? [clang-diagnostic-error]
      ServiceWeakToken weakToken = serviceToken;
      ^~~~~~~~~~~~~~~~
      ServiceToken
--
FWCore/Framework/src/Worker.h:1052:52: error: no member named 'lock' in 'edm::ServiceToken' [clang-diagnostic-error]
          ServiceRegistry::Operate guard(weakToken.lock());
                                                   ^
Suppressed 930 warnings (928 in non-user code, 2 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@Dr15Jones
Copy link
Contributor Author

code-checks

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33332/21909

  • This PR adds an extra 52KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2021

Pull request #33332 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5c5d34/14019/summary.html
COMMIT: 8ef445b
CMSSW: CMSSW_11_3_X_2021-04-05-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/33332/14019/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2640868
  • DQMHistoTests: Total failures: 12
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2640833
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 36 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 155 log files, 37 edm output root files, 37 DQM output files
  • TriggerResults: no differences found

@makortel
Copy link
Contributor

makortel commented Apr 6, 2021

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2021

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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@makortel
Copy link
Contributor

makortel commented Apr 6, 2021

@fwyzard This might be of interest to you as well (I recall you were asking about a Source that would do the real I/O prior to event loop and recycle the Events).

@fwyzard
Copy link
Contributor

fwyzard commented Apr 7, 2021

Thanks for the mention!
Is the decompression cached as well ?

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit e4e9af0 into cms-sw:master Apr 7, 2021
@Dr15Jones
Copy link
Contributor Author

Is the decompression cached as well ?

Yes

@Dr15Jones Dr15Jones deleted the RepeatingCachedRootSource branch April 7, 2021 11:42
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

6 participants