-
Notifications
You must be signed in to change notification settings - Fork 1.8k
arc_summary shows negative value for MFU data target #17210
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
Comments
It seems the issue is not only a cosmetic one. From what I see inside Lines 4224 to 4256 in ba03054
@amotin can this skew ARC MFU/MRU adjustments? |
@shodanshok I don't understand your question. But it is true that |
With certain combinations of target ARC states balance and ghost hit rates it was possible to get the fractions outside of allowed range. This patch limits maximum balance adjustment speed, which should make it impossible, and also asserts it. Fixes openzfs#17210
With certain combinations of target ARC states balance and ghost hit rates it was possible to get the fractions outside of allowed range. This patch limits maximum balance adjustment speed, which should make it impossible, and also asserts it. Fixes openzfs#17210 Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc.
I wonder if this overflow can negatively alter MRU / MFU balancing.
Can you elaborate on which circumstances are needed? I only noticed it on a backup box running ZFS 2.2.7 (with 2.1.x it never happened).
Thanks. |
Likely so. Up to total eviction of one of them.
The fraction affected should be between 1/5 and 1/4 or 3/4 and 4/5 in respective direction, and the amount of ghost hits in that direction should be less than 1/4 of total, but bigger than left till fraction overflow in that direction (down to 1/5). |
With certain combinations of target ARC states balance and ghost hit rates it was possible to get the fractions outside of allowed range. This patch limits maximum balance adjustment speed, which should make it impossible, and also asserts it. Fixes openzfs#17210 Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc.
System information
Describe the problem you're observing
arc_summary
shows negative value forMFU data target
:Poking inside
arc_summary
itself, I can see the following lines:zfs/cmd/arc_summary
Lines 626 to 627 in 7be9fa2
As on this machine
pd
is currently equal to20883106811
,v
becomes negative.Describe how to reproduce the problem
Not sure. It seems related to
prefetch, but what doesARC states balance, related to the fixed-point arithmetic. From my understanding,s
means in this context?pd
orpm
should never be bigger than4294967296
Include any warning/errors/backtraces from the system logs
None.
The text was updated successfully, but these errors were encountered: