Skip to content

Conversation

@Skysheepwang
Copy link
Contributor

Proposed changes

#4995
Implementation of Separated Page Cache

  • Add config "index_page_cache_ratio" to set the ratio of capacity of index page cache
  • Change the member of StoragePageCache to maintain two type of cache
  • Change the interface of StoragePageCache for selecting type of cache
  • Change the usage of page cache in read_and_decompress_page in page_io.cpp
    • add page type as argument
    • check if current page type is available in StoragePageCache (cover the situation of ratio == 0 or 1)
  • Add type as argument in superior call of read_and_decompress_page
  • Change Unit Test

Types of changes

What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

  • [] Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [] Documentation Update (if none of the other choices apply)
  • Code refactor (Modify the code structure, format the code, etc...)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have create an issue on (Fix [Proposal] Separate Page Cache by page type #4995), and have described the bug/feature there in detail
  • Compiling and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • [] If this change need a document change, I have updated the document
  • Any dependent changes have been merged

acelyc111
acelyc111 previously approved these changes Dec 10, 2020
Copy link
Member

@acelyc111 acelyc111 left a comment

Choose a reason for hiding this comment

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

LGTM

morningman
morningman previously approved these changes Dec 16, 2020
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman
Copy link
Contributor

hi @Skysheepwang Could you please rebase the trunk to make UT the NewDorisTest happy?

@Skysheepwang
Copy link
Contributor Author

@morningman I 've already rebased but there is still something wrong in UT (Incubator Doris), but my local UT was passed so could you please help me check the problem?

@morningman
Copy link
Contributor

@morningman I 've already rebased but there is still something wrong in UT (Incubator Doris), but my local UT was passed so could you please help me check the problem?

It seems our proxy of github has some problem. I checked the UT, it works.

morningman
morningman previously approved these changes Dec 18, 2020
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman added the approved Indicates a PR has been approved by one committer. label Dec 18, 2020
acelyc111
acelyc111 previously approved these changes Dec 22, 2020
Copy link
Member

@acelyc111 acelyc111 left a comment

Choose a reason for hiding this comment

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

LGTM

@Skysheepwang
Copy link
Contributor Author

@morningman @acelyc111 Sorry I just made a mistake to push my code to this branch, which dismissed your approving review, please add again.

acelyc111
acelyc111 previously approved these changes Dec 22, 2020
Copy link
Member

@acelyc111 acelyc111 left a comment

Choose a reason for hiding this comment

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

LGTM

morningman
morningman previously approved these changes Dec 24, 2020
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman
Copy link
Contributor

Hi @Skysheepwang, Sorry for late review. Please resolve the conflict~

@Skysheepwang Skysheepwang dismissed stale reviews from morningman and acelyc111 via 140a8e5 December 24, 2020 02:07
@acelyc111
Copy link
Member

Hi @Skysheepwang, Sorry for late review. Please resolve the conflict~

@morningman conflicts have been resolved.

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman merged commit 6c098e4 into apache:master Jan 4, 2021
EmmyMiao87 pushed a commit to EmmyMiao87/incubator-doris that referenced this pull request Jan 26, 2021
apache#4995
**Implementation of Separated Page Cache**
- Add config "index_page_cache_ratio" to set the ratio of capacity of index page cache
- Change the member of StoragePageCache to maintain two type of cache
- Change the interface of StoragePageCache for selecting type of cache
- Change the usage of page cache in read_and_decompress_page in page_io.cpp
  - add page type as argument
  - check if current page type is available in StoragePageCache (cover the situation of ratio == 0 or 1)
- Add type as argument in superior call of read_and_decompress_page
- Change Unit Test
@yangzhg yangzhg mentioned this pull request Feb 9, 2021
Hastyshell pushed a commit to Hastyshell/doris that referenced this pull request Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. kind/improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] Separate Page Cache by page type

3 participants