Date: Sat, 11 Aug 2018 22:11:13 +0000 (UTC) From: Matt Macy <mmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r337661 - head/usr.bin/top Message-ID: <201808112211.w7BMBDjT098292@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmacy Date: Sat Aug 11 22:11:12 2018 New Revision: 337661 URL: https://svnweb.freebsd.org/changeset/base/337661 Log: fix top after arc accounting change Modified: head/usr.bin/top/machine.c Modified: head/usr.bin/top/machine.c ============================================================================== --- head/usr.bin/top/machine.c Sat Aug 11 22:01:52 2018 (r337660) +++ head/usr.bin/top/machine.c Sat Aug 11 22:11:12 2018 (r337661) @@ -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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808112211.w7BMBDjT098292>