A subset of further improvements to reduce lock contention#7105
Merged
pcanal merged 2 commits intoroot-project:masterfrom Jan 30, 2021
Merged
A subset of further improvements to reduce lock contention#7105pcanal merged 2 commits intoroot-project:masterfrom
pcanal merged 2 commits intoroot-project:masterfrom
Conversation
On a small test with 256 threads the reduced lock contention reduces wall time from 25 minutes to 19 seconds, and increases CPU usage from 400% to 4000%.
|
Can one of the admins verify this patch? |
Collaborator
|
@phsft-bot build! |
|
Starting build on |
|
Build failed on ROOT-fedora31/noimt. |
|
Build failed on windows10/cxx14. |
Member
|
@phsft-bot build just on windows10/cxx14 |
|
Starting build on |
pcanal
approved these changes
Jan 28, 2021
Contributor
|
@pcanal can we merge? |
Member
|
@bendavid Thank you very much! |
bendavid
added a commit
to bendavid/root
that referenced
this pull request
Mar 24, 2021
This covers the changes in root-project#6857 root-project#7105 root-project#7260
eguiraud
pushed a commit
to eguiraud/root
that referenced
this pull request
Mar 25, 2021
This covers the changes in root-project#6857 root-project#7105 root-project#7260
nicknagi
pushed a commit
to nicknagi/root
that referenced
this pull request
Mar 30, 2021
This covers the changes in root-project#6857 root-project#7105 root-project#7260
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Further reduction in lock contention when using RDataFrame with a large number of threads and/or files, by migrating one hot spot in TBufferFile to use read-write locks instead of only write locks.
On a small test with 256 threads the reduced lock contention reduces wall time from 25 minutes to 19 seconds, and increases CPU usage from 400% to 4000%.
This PR also fixes an uninitialised variable potentially affecting the global read-write lock.