-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Cap compaction_readahead_size by max_sectors_kb #12937
base: main
Are you sure you want to change the base?
Conversation
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
2b50e35
to
f466156
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
f466156
to
ab10ea6
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
ab10ea6
to
75a659c
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
75a659c
to
dbfd2ff
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
dbfd2ff
to
1b972c0
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
Rebase |
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1b972c0
to
27a4c77
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Context/Summary:
#12038 reported a regression where compaction read ahead does not work when
compaction_readahead_size
is greater thanmax_sectors_kb
defined in linux (i.e, largest I/O size that the OS issues to a block device, see https://www.kernel.org/doc/Documentation/block/queue-sysfs.txt for more).This PR fixes it by capping the
compaction_readahead_size
bymax_sectors_kb
if any. A refactoring of reading queue sys file is also included to reuse existing code.Test:
#12038 (comment) verified the regression was fixed