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)
Sat, Apr 4, 10:37 AM
Unknown Object (File)
Wed, Apr 1, 1:02 PM
Unknown Object (File)
Tue, Mar 31, 9:33 PM
Unknown Object (File)
Thu, Mar 26, 11:37 AM
Unknown Object (File)
Tue, Mar 24, 3:34 AM
Unknown Object (File)
Sat, Mar 14, 10:16 PM
Unknown Object (File)
Mar 1 2026, 9:30 AM
Unknown Object (File)
Feb 7 2026, 6:22 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.