-
Notifications
You must be signed in to change notification settings - Fork 302
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
HPCC-32791 Partition the index LRU cache to reduce contention #19200
base: master
Are you sure you want to change the base?
Conversation
Pushed for initial review. It needs more cleanup - particularly adding some functions into CNodeMRUCache to remove the iterators from the CNodeCache functions. I will test fully later, and paste some concrete numbers. |
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-32791 Jirabot Action Result: |
Signed-off-by: Gavin Halliday <[email protected]>
I have rebased and rerun tests after sorting out the confusing inconsistent timings (HPCC-32814) |
Signed-off-by: Gavin Halliday <[email protected]>
Signed-off-by: Gavin Halliday <[email protected]>
Signed-off-by: Gavin Halliday <[email protected]>
{ | ||
if (ctx) ctx->noteStatistic(addStatId[cacheType], 1); | ||
if (unlikely(alreadyExists)) | ||
ctx->noteStatistic(hitStatId[cacheType], 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these backwards ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unlikely() is correct - because the code only reaches this point if there was a match in the cache, but the node associated with that entry has not been loaded yet.
I will add a comment to clarify why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a great addition.
Just one ques about if alreadyExists is a more typical a likely or unlikely expectation.
Signed-off-by: Gavin Halliday <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved.
Type of change:
Checklist:
Smoketest:
Testing: