From 371d1886fcd07af378f7149e9b287f39750f4fa3 Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Mon, 19 Sep 2011 14:48:05 +0000 Subject: 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@ --- usr.bin/systat/iostat.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'usr.bin') 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(); -- cgit v1.2.3