HomeFreeBSD

Remove hash_elements_max accounting from DBUF and ARC

Description

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.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16759

Details

Provenance
mavAuthored on Nov 19 2024, 3:00 PM
GitHub <noreply@github.com>Committed on Nov 19 2024, 3:00 PM
Parents
rGffe211279556: Move "no name changes" from compression to checksum table
Branches
Unknown
Tags
Unknown