summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2011-09-19 14:48:05 +0000
committerBob Beck <beck@cvs.openbsd.org>2011-09-19 14:48:05 +0000
commit371d1886fcd07af378f7149e9b287f39750f4fa3 (patch)
treead5a8aa6aee6d961ae8c2d01e2e7d275810fc958 /usr.bin
parente5866955255cba4325c7e748748da94671665e74 (diff)
clean up buffer cache statistics somewhat to
remove some now useless statistics, and add some relevant ones regarding kva usage in the cache. make systat io and show bcstats in ddb both show these counters. ok deraadt@ krw@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/iostat.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c
index 6157d16397a..fc61a1c9b19 100644
--- a/usr.bin/systat/iostat.c
+++ b/usr.bin/systat/iostat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iostat.c,v 1.39 2011/07/06 00:11:57 beck Exp $ */
+/* $OpenBSD: iostat.c,v 1.40 2011/09/19 14:48:04 beck Exp $ */
/* $NetBSD: iostat.c,v 1.5 1996/05/10 23:16:35 thorpej Exp $ */
/*
@@ -222,14 +222,26 @@ showbcache(void)
print_fld_ssize(FLD_IO_SVAL, bccur.numbufpages);
end_line();
- print_fld_str(FLD_IO_SSTR, "dma pages");
- print_fld_ssize(FLD_IO_SVAL, bccur.dmapages);
- end_line();
-
print_fld_str(FLD_IO_SSTR, "dirty pages");
print_fld_ssize(FLD_IO_SVAL, bccur.numdirtypages);
end_line();
+ print_fld_str(FLD_IO_SSTR, "delwri bufs");
+ print_fld_ssize(FLD_IO_SVAL, bccur.delwribufs);
+ end_line();
+
+ print_fld_str(FLD_IO_SSTR, "busymap bufs");
+ print_fld_ssize(FLD_IO_SVAL, bccur.busymapped);
+ end_line();
+
+ print_fld_str(FLD_IO_SSTR, "avail kvaslots");
+ print_fld_ssize(FLD_IO_SVAL, bccur.kvaslots_avail);
+ end_line();
+
+ print_fld_str(FLD_IO_SSTR, "kvaslots");
+ print_fld_ssize(FLD_IO_SVAL, bccur.kvaslots);
+ end_line();
+
print_fld_str(FLD_IO_SSTR, "pending writes");
print_fld_ssize(FLD_IO_SVAL, bccur.pendingwrites);
end_line();