-
Notifications
You must be signed in to change notification settings - Fork 13
Fixes issue #75 #76
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
Fixes issue #75 #76
Conversation
…y header size) when creating new memory pools
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.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @igchor and @victoria-mcgrath)
cachelib/allocator/CacheAllocator-inl.h
line 2391 at r1 (raw file):
for (TierId tid = 0; (tid < numTiers_) && remainingPoolSize; tid++, remainingPoolSize--) { tierPoolSizes[tid]++;
Can this be off only be one?
…s; added pool size validation to tests
Previously, igchor (Igor Chorążewicz) wrote…
I checked again manually and also added an extra check in tests. Could you review my last commit please? |
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.
Reviewed 1 of 3 files at r2, all commit messages.
Reviewable status: 1 of 3 files reviewed, all discussions resolved (waiting on @igchor)
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.
In such case, I think it would be good to add some more tests with different ratios. For example X:Y where X and Y are in range from 1 to 1000.
Reviewable status: 1 of 3 files reviewed, all discussions resolved (waiting on @igchor)
@victoria-mcgrath would you be able to add a few more tests with different ratios (e.g. all combinations from 1 to 100)? |
yes, I'll work on test coverage before merging. |
I reworked tests to make them go over a few more combinations of sizes and ratios. |
rebased version on: #88 |
Use actual tier sizes (rounded down to slab size and decreased by header size) when creating new memory pools
This change is