Skip to content

A subset of further improvements to reduce lock contention#7105

Merged
pcanal merged 2 commits intoroot-project:masterfrom
bendavid:lockimprovementspartial
Jan 30, 2021
Merged

A subset of further improvements to reduce lock contention#7105
pcanal merged 2 commits intoroot-project:masterfrom
bendavid:lockimprovementspartial

Conversation

@bendavid
Copy link
Copy Markdown
Contributor

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.

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%.
@phsft-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@oshadura
Copy link
Copy Markdown
Collaborator

@phsft-bot build!

@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-fedora31/noimt.
See console output.

@phsft-bot
Copy link
Copy Markdown

Build failed on windows10/cxx14.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

@pcanal
Copy link
Copy Markdown
Member

pcanal commented Jan 28, 2021

@phsft-bot build just on windows10/cxx14

@phsft-bot
Copy link
Copy Markdown

Starting build on windows10/cxx14
How to customize builds

@eguiraud
Copy link
Copy Markdown
Contributor

@pcanal can we merge?

@pcanal
Copy link
Copy Markdown
Member

pcanal commented Jan 30, 2021

@bendavid Thank you very much!

@pcanal pcanal merged commit 2360952 into root-project:master Jan 30, 2021
bendavid added a commit to bendavid/root that referenced this pull request Mar 24, 2021
eguiraud pushed a commit that referenced this pull request Mar 25, 2021
eguiraud pushed a commit to eguiraud/root that referenced this pull request Mar 25, 2021
eguiraud pushed a commit that referenced this pull request Mar 25, 2021
nicknagi pushed a commit to nicknagi/root that referenced this pull request Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants