Page MenuHomeFreeBSD

Re-add the kstat.zfs.misc.arcstats.other_size sysctl.
ClosedPublic

Authored by markj on Aug 29 2018, 3:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 17 2024, 12:29 AM
Unknown Object (File)
Nov 4 2024, 10:27 PM
Unknown Object (File)
Nov 4 2024, 10:27 PM
Unknown Object (File)
Nov 4 2024, 10:27 PM
Unknown Object (File)
Nov 4 2024, 10:14 PM
Unknown Object (File)
Nov 1 2024, 5:16 PM
Unknown Object (File)
Nov 1 2024, 5:15 PM
Unknown Object (File)
Nov 1 2024, 5:15 PM
Subscribers

Details

Summary

It is used by top(1), among other things, and was removed in r337653,
where it was split into three finer-grained statistics. We aim to
provide backward compatibility for such utilities, so re-add the
other_size sysctl under COMPAT_FREEBSD11.

The reintegration is kind of ugly, but I don't see a better way to do it
without extending the kstat KPI.

Test Plan

Tested using top(1) with r337661 reverted.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added reviewers: allanjude, mmacy.
This revision is now accepted and ready to land.Aug 29 2018, 5:51 PM

LGTM (but are we expecting COMPAT_FREEBSD11 defined in places where FreeBSD is not defined?)

LGTM (but are we expecting COMPAT_FREEBSD11 defined in places where FreeBSD is not defined?)

I don't think so. I'm just following the existing convention of using #ifdef FreeBSD to delineate FreeBSD-specific modifications. Maybe it would be more clear as

#ifdef __FreeBSD__
#ifdef COMPAT_FREEBSD11
...

I don't have strong feelings either way.

I'd much rather have the ifdef on a single line.

This revision was automatically updated to reflect the committed changes.