Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2018 07:47:44 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337680 - head/usr.bin/systat
Message-ID:  <201808120747.w7C7liwS096247@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Sun Aug 12 07:47:44 2018
New Revision: 337680
URL: https://svnweb.freebsd.org/changeset/base/337680

Log:
  Chasing r337661, fix systat after arc accounting change.

Modified:
  head/usr.bin/systat/main.c

Modified: head/usr.bin/systat/main.c
==============================================================================
--- head/usr.bin/systat/main.c	Sun Aug 12 03:36:09 2018	(r337679)
+++ head/usr.bin/systat/main.c	Sun Aug 12 07:47:44 2018	(r337680)
@@ -260,6 +260,7 @@ labels(void)
 void
 display(void)
 {
+	uint64_t arc_stat;
 	int i, j;
 
 	/* Get the load average over the last minute. */
@@ -293,7 +294,11 @@ display(void)
 		    GETSYSCTL("vfs.zfs.anon_size", arc[3]);
 		    GETSYSCTL("kstat.zfs.misc.arcstats.hdr_size", arc[4]);
 		    GETSYSCTL("kstat.zfs.misc.arcstats.l2_hdr_size", arc[5]);
-		    GETSYSCTL("kstat.zfs.misc.arcstats.other_size", arc[6]);
+		    GETSYSCTL("kstat.zfs.misc.arcstats.bonus_size", arc[6]);
+		    GETSYSCTL("kstat.zfs.misc.arcstats.dnode_size", arc_stat);
+		    arc[6] += arc_stat;
+		    GETSYSCTL("kstat.zfs.misc.arcstats.dbuf_size", arc_stat);
+		    arc[6] += arc_stat;
 		    wmove(wload, 0, 0); wclrtoeol(wload);
 		    for (i = 0 ; i < nitems(arc); i++) {
 			if (arc[i] > 10llu * 1024 * 1024 * 1024 ) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808120747.w7C7liwS096247>