-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Evicting too many bytes from MFU metadata #16546
Conversation
Signed-off-by: Theera K. <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are right here. My fault. Without updating m
there we evict from MFU metadata all that we wanted to evict from all metadata, including already evicted MRU metadata (m
is the total amount of metadata we had at the beginning, and w
is the total amount of metadata we want to have).
Since you already have reproduction for the issue, could you test that it behaves better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good find, yes I believe you're right. If you could provide some of your test results that would be very helpful.
Without updating 'm' we evict from MFU metadata all that we wanted to evict from all metadata, including already evicted MRU metadata ('m' is the total amount of metadata we had at the beginning, and 'w' is the total amount of metadata we want to have). Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Theera K. <[email protected]> Closes openzfs#16521 Closes openzfs#16546
Without updating 'm' we evict from MFU metadata all that we wanted to evict from all metadata, including already evicted MRU metadata ('m' is the total amount of metadata we had at the beginning, and 'w' is the total amount of metadata we want to have). Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Theera K. <[email protected]> Closes openzfs#16521 Closes openzfs#16546
Without updating 'm' we evict from MFU metadata all that we wanted to evict from all metadata, including already evicted MRU metadata ('m' is the total amount of metadata we had at the beginning, and 'w' is the total amount of metadata we want to have). Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Theera K. <[email protected]> Closes openzfs#16521 Closes openzfs#16546
Motivation and Context
I am not so sure about this PR. Consider this as a small bug report. ^^"
From reading the code, it seems some
bytes
has been evicted from MRU metadata so it probably should be subtracted fromm
.How Has This Been Tested?
Has not been tested.
Types of changes
Checklist:
Signed-off-by
.