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

Remove hash_elements_max accounting from DBUF and ARC #16759

Merged
merged 1 commit into from
Nov 19, 2024

Commits on Nov 14, 2024

  1. Remove hash_elements_max accounting from DBUF and ARC

    Those values require global atomics to get current hash_elements
    values in few of the hottest code paths, while in all the years I
    never cared about it.  If somebody wants, it should be easy to
    get it by periodic sampling, since neither ARC header nor DBUF
    counts change so fast that it would be difficult to catch.
    
    For now I've left hash_elements_max kstat for ARC, since it was
    used/reported by arc_summary and it would break older versions,
    but now it just reports the current value.
    
    Signed-off-by:	Alexander Motin <[email protected]>
    Sponsored by:	iXsystems, Inc.
    amotin committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    1856bf9 View commit details
    Browse the repository at this point in the history