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
F135147165: D16943.id47441.diff
Thu, Nov 6, 10:23 PM
F135146592: D16943.id.diff
Thu, Nov 6, 10:15 PM
Unknown Object (File)
Thu, Nov 6, 9:29 AM
Unknown Object (File)
Thu, Nov 6, 12:28 AM
Unknown Object (File)
Sat, Nov 1, 6:57 PM
Unknown Object (File)
Thu, Oct 30, 2:37 PM
Unknown Object (File)
Sat, Oct 18, 4:34 PM
Unknown Object (File)
Mon, Oct 13, 6:22 AM
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.