-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Move freedBytes inside group reclaiming method #10375
Conversation
✅ Deploy Preview for meta-velox canceled.
|
@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
@tanjialiang thanks!
std::lock_guard<std::shared_mutex> exclusiveLock(arbitrationLock_); | ||
getCandidateStats(&op); | ||
uint64_t freedBytes = | ||
reclaimFreeMemoryFromCandidates(&op, targetBytes, false); | ||
reclaimFreeMemoryFromCandidates(&op, fastReclaimTargetBytes, false); |
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.
std::max(memoryPoolTransferCapacity_, requestBytes)? directly use it here?
@@ -475,32 +475,34 @@ TEST_F(DateTimeFunctionsTest, yearDate) { | |||
} | |||
|
|||
TEST_F(DateTimeFunctionsTest, yearTimestampWithTimezone) { |
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.
Why we need this change? Thanks!
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.
We don't need this change. Some unrelated changes slips through. I'll delete them
@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@tanjialiang merged this pull request in 562a7dc. |
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Move the freedBytes condition inside reclaiming method in shared arbitrator. At the same time rename targetBytes to requestBytes for future PR.