Skip to content

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

Closed
wants to merge 9 commits into from
Closed

Fixes issue #75 #76

wants to merge 9 commits into from

Conversation

victoria-mcgrath
Copy link
Collaborator

@victoria-mcgrath victoria-mcgrath commented Jun 7, 2022

Use actual tier sizes (rounded down to slab size and decreased by header size) when creating new memory pools


This change is Reviewable

…y header size) when creating new memory pools
Copy link

@igchor igchor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

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?

@victoria-mcgrath
Copy link
Collaborator Author

cachelib/allocator/CacheAllocator-inl.h line 2391 at r1 (raw file):

Previously, igchor (Igor Chorążewicz) wrote…

Can this be off only be one?

I checked again manually and also added an extra check in tests. Could you review my last commit please?

Copy link

@igchor igchor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 3 files at r2, all commit messages.
Reviewable status: 1 of 3 files reviewed, all discussions resolved (waiting on @igchor)

@byrnedj
Copy link
Collaborator

byrnedj commented Jun 10, 2022

totalCacheSize overflows with ratio 1:3 using graph cache leader fbobj config 8GB total memory
image

Copy link

@igchor igchor left a 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)

@igchor
Copy link

igchor commented Jun 13, 2022

@victoria-mcgrath would you be able to add a few more tests with different ratios (e.g. all combinations from 1 to 100)?

@victoria-mcgrath
Copy link
Collaborator Author

yes, I'll work on test coverage before merging.

@victoria-mcgrath
Copy link
Collaborator Author

I reworked tests to make them go over a few more combinations of sizes and ratios.

@igchor
Copy link

igchor commented Jun 29, 2022

rebased version on: #88

@igchor igchor closed this Jun 29, 2022
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.

3 participants