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

feat(hummock): introduce aligned allocator and cache file skeleton #3250

Merged
merged 7 commits into from
Jun 17, 2022

Conversation

MrCroxx
Copy link
Contributor

@MrCroxx MrCroxx commented Jun 15, 2022

What's changed and what's your intention?

This is a one of the PRs for the file cache system, to avoid sending a huge PR all at once.

  1. Introduce AlignedAllocator for direct I/O buffer allocation.
  2. Introduce cache file skeleton.

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)

#198

@MrCroxx MrCroxx changed the title [WIP] feat(hummock): introduce file cache system (p1) feat(hummock): introduce aligned allocator and cache file skeleton Jun 16, 2022
@codecov
Copy link

codecov bot commented Jun 16, 2022

Codecov Report

Merging #3250 (cd8d224) into main (c9bc4c6) will increase coverage by 0.02%.
The diff coverage is 81.81%.

@@            Coverage Diff             @@
##             main    #3250      +/-   ##
==========================================
+ Coverage   73.22%   73.24%   +0.02%     
==========================================
  Files         748      753       +5     
  Lines      101994   102280     +286     
==========================================
+ Hits        74686    74920     +234     
- Misses      27308    27360      +52     
Flag Coverage Δ
rust 73.24% <81.81%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/storage/src/hummock/file_cache/error.rs 0.00% <0.00%> (ø)
src/storage/src/hummock/mod.rs 84.21% <ø> (ø)
src/storage/src/lib.rs 100.00% <ø> (ø)
src/storage/src/hummock/file_cache/file.rs 78.53% <78.53%> (ø)
src/storage/src/hummock/file_cache/manager.rs 81.81% <81.81%> (ø)
src/storage/src/hummock/file_cache/mod.rs 88.88% <88.88%> (ø)
src/storage/src/hummock/file_cache/alloc.rs 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@MrCroxx MrCroxx self-assigned this Jun 16, 2022
@MrCroxx MrCroxx marked this pull request as ready for review June 16, 2022 09:39
@MrCroxx
Copy link
Contributor Author

MrCroxx commented Jun 16, 2022

Maybe this PR is too immature, but I want to keep each PR small and easy to review, QwQ.

@TennyZhuang
Copy link
Collaborator

TennyZhuang commented Jun 16, 2022

LGTM for the allocator part. I haven't enough background knowledge to review the PR (

Copy link
Contributor

@fuyufjh fuyufjh left a comment

Choose a reason for hiding this comment

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

Generally LGTM. Since it's not completed yet, we may improve later.

src/storage/src/hummock/file_cache/mod.rs Show resolved Hide resolved
src/storage/src/hummock/file_cache/manager.rs Show resolved Hide resolved
@MrCroxx MrCroxx merged commit 9d040ba into main Jun 17, 2022
@MrCroxx MrCroxx deleted the xx/file-cache-system-p1 branch June 17, 2022 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants