Skip to content
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

Feature: Persist disk granular space accounting #38

Merged
merged 15 commits into from
May 25, 2023

Conversation

jwuensche
Copy link
Contributor

This PR implements two essential features, first it finalized space accounting previously introduced with #2 as it now also stores the disk space information in the root tree based on their 12bit global identifier. Second, this information is then used to start the Segment map search to find satisfying slots for the next allocation. This brings us a better scalability when not using Parity setups, second it allows for a more holistic overview of the current storage state, also helpful for user inspection.

In the process of this, we clean up the root tree keys by centralizing them in a separate module. Documentation for this is provided as module level documentation, easing the introduction of future keys.

@jwuensche jwuensche force-pushed the feature/disk-utilization-equalization branch from e7b99ba to ab67573 Compare March 8, 2023 16:11
@jwuensche jwuensche changed the title Feature: Disk Utilization Equalization Feature: Persist disk granular space accounting May 16, 2023
@jwuensche jwuensche marked this pull request as ready for review May 17, 2023 08:34
@jwuensche jwuensche requested a review from SajadKarim May 17, 2023 08:34
@jwuensche jwuensche force-pushed the feature/disk-utilization-equalization branch from bd8008d to d462930 Compare May 24, 2023 14:28
@jwuensche jwuensche force-pushed the feature/disk-utilization-equalization branch from d462930 to aa022bf Compare May 24, 2023 14:41
Another identifier was introduced for the internal-api feature flag for this method.
Copy link
Collaborator

@SajadKarim SajadKarim left a comment

Choose a reason for hiding this comment

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

Reviewed!

@jwuensche jwuensche merged commit c2d8fa3 into parcio:main May 25, 2023
@jwuensche jwuensche deleted the feature/disk-utilization-equalization branch September 20, 2023 06:58
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.

2 participants