Skip to content

Conversation

@igchor
Copy link

@igchor igchor commented Dec 20, 2021

Based on #16 with a few fixes

Right now, there are a few features missing:

  • support for chained items
  • exposing per-tier statistics
  • support for temporary mappings (CacheAllocator ctor without ShmSharedNew/Atttach)

This change is Reviewable

igchor and others added 4 commits December 23, 2021 23:33
Now it's size is 8 bytes intead of 4.

Original CompressedPtr stored only some offset with a memory Allocator.
For multi-tier implementation, this is not enough. We must also store
tierId and when uncompressing, select a proper allocator.

An alternative could be to just resign from CompressedPtr but they
are leveraged to allow the cache to be mapped to different addresses on shared memory.

Changing CompressedPtr impacted CacheItem size - it increased from 32 to 44 bytes.
Copy link
Collaborator

@victoria-mcgrath victoria-mcgrath left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 11 files at r1, 8 of 10 files at r2, 9 of 10 files at r3, 3 of 3 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @igchor)

@victoria-mcgrath victoria-mcgrath merged commit a043394 into pmem:develop Dec 30, 2021
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