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)
Fri, Nov 28, 2:36 PM
Unknown Object (File)
Thu, Nov 27, 4:51 AM
Unknown Object (File)
Fri, Nov 21, 2:07 AM
Unknown Object (File)
Fri, Nov 21, 2:06 AM
Unknown Object (File)
Fri, Nov 21, 2:06 AM
Unknown Object (File)
Fri, Nov 21, 2:02 AM
Unknown Object (File)
Fri, Nov 21, 12:33 AM
Unknown Object (File)
Tue, Nov 18, 8:34 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

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 19262
Build 18875: arc lint + arc unit

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.