fix top after arc accounting change

This commit is contained in:
Matt Macy 2018-08-11 22:11:12 +00:00
parent 9f3a171221
commit ef8e2d2d01

View File

@ -522,8 +522,12 @@ get_system_info(struct system_info *si)
GETSYSCTL("kstat.zfs.misc.arcstats.hdr_size", arc_stat);
GETSYSCTL("kstat.zfs.misc.arcstats.l2_hdr_size", arc_stat2);
arc_stats[4] = (arc_stat + arc_stat2) >> 10;
GETSYSCTL("kstat.zfs.misc.arcstats.other_size", arc_stat);
GETSYSCTL("kstat.zfs.misc.arcstats.bonus_size", arc_stat);
arc_stats[5] = arc_stat >> 10;
GETSYSCTL("kstat.zfs.misc.arcstats.dnode_size", arc_stat);
arc_stats[5] += arc_stat >> 10;
GETSYSCTL("kstat.zfs.misc.arcstats.dbuf_size", arc_stat);
arc_stats[5] += arc_stat >> 10;
si->arc = arc_stats;
}
if (carc_enabled) {