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

fifocache: make queue1 size configurable #21301

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

reusee
Copy link
Contributor

@reusee reusee commented Jan 21, 2025

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #20296

What this PR does / why we need it:

make queue1 larger for the disk cache to prevent too aggressively eviction

Copy link
Contributor

@fengttt fengttt left a comment

Choose a reason for hiding this comment

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

Can you add comment in the PR description or in the issue (or linking issue), that what is the workload, what is the target/result that we hope this queue size to achieve, and what is the default, what is changed, and what is the impact to "general" workload.

Any I don't think the title of the PR is accurate -- I don't see any "configurable" parameters and it is still the magic /10, simply moved to a different place. It is fine to hard code magic numbers -- if we believe these numbers are reasonable and it does not make sense to let user/dba tune it. Actually this is preferred, the less knobs the better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement size/S Denotes a PR that changes [10,99] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants