-
Notifications
You must be signed in to change notification settings - Fork 13
[Upstreaming] Added memory mapped file support #63
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
Conversation
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.
@guptask Can you please cleanup commits and add some meaningful messages to them?
Also I think we are still missing support for temp shm mappings: https://github.com/pmem/CacheLib/blob/develop/cachelib/allocator/TempShmMapping.h as described in this issue:#26
We can probably send this patch to Meta as is and work on temp mapping separatly
Reviewable status: 0 of 21 files reviewed, all discussions resolved (waiting on @guptask)
Please consider using the type defined in CacheAllocatorConfg instead, e.g. CacheAllocatorConfig::MemoryTierConfigs |
Please consider calling the getter CacheAllocatorConfig::isUsingPosixShm() everywhere where you need to use usePosixShm. |
Would it make sense to use last two values as defaults for the last two parameters? Might help minimize the total number of changes . |
Does thgis code need to be here? If yes, could you clean up the comment so it makes more sense in the absence contxet? |
Make it false by default? |
I was unable to find any code in your changes which required this method to be changed to public. Could you double check please? |
Previously, victoria-mcgrath wrote…
As A general observation, I am not sure I fully understand why we keep sending posix/non-posix as a parameter to many methods instead of setting this once per object and then just accessing it as a member. |
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 7 files at r3, 6 of 16 files at r4, 14 of 14 files at r5, all commit messages.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on @guptask)
cachelib/allocator/CacheAllocator-inl.h
line 71 at r5 (raw file):
minimize
reduce
This change is