summaryrefslogtreecommitdiffstats
path: root/contrib/top/machine.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-06-27 18:08:48 +0000
committerjhb <jhb@FreeBSD.org>2012-06-27 18:08:48 +0000
commita461bd15071993dd2121ed8ddfaee9fef880cd56 (patch)
tree35d3ccc9768fc207017486150335cd6c1e66bfc4 /contrib/top/machine.h
parent31577c974349e71766902ec165bf02f12c744838 (diff)
downloadFreeBSD-src-a461bd15071993dd2121ed8ddfaee9fef880cd56.zip
FreeBSD-src-a461bd15071993dd2121ed8ddfaee9fef880cd56.tar.gz
Add a new line to top that provides a brief summary of the ZFS ARC memory
usage on hosts using ZFS. The new line displays the total amount of RAM used by the ARC along with the size of MFU, MRU, anonymous (in flight), headers, and other (miscellaneous) sub-categories. The line is not displayed on systems that are not using ZFS. Reviewed by: avg, fs@ MFC after: 3 days
Diffstat (limited to 'contrib/top/machine.h')
-rw-r--r--contrib/top/machine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/top/machine.h b/contrib/top/machine.h
index 3e1af16..699c755 100644
--- a/contrib/top/machine.h
+++ b/contrib/top/machine.h
@@ -16,6 +16,7 @@ struct statics
char **procstate_names;
char **cpustate_names;
char **memory_names;
+ char **arc_names;
char **swap_names;
#ifdef ORDER
char **order_names;
@@ -42,6 +43,7 @@ struct system_info
int *procstates;
int *cpustates;
int *memory;
+ int *arc;
int *swap;
struct timeval boottime;
int ncpus;
OpenPOWER on IntegriCloud