diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2011-07-06 00:11:58 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2011-07-06 00:11:58 +0000 |
commit | f9c99804a7bd30bb1fbbaf28002236b73ad09245 (patch) | |
tree | c3425bb53359582521f576df028edcba227a5ecf /usr.bin | |
parent | 552adc01bec1b81861f6a2c3e76e27867ace71e8 (diff) |
add a couple of fields needed for buffer flipping, and change systat to
show useful info in systat io instead of goo
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/systat/iostat.c | 40 |
1 files changed, 8 insertions, 32 deletions
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c index a917f33858d..6157d16397a 100644 --- a/usr.bin/systat/iostat.c +++ b/usr.bin/systat/iostat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iostat.c,v 1.38 2011/03/02 06:48:17 jasper Exp $ */ +/* $OpenBSD: iostat.c,v 1.39 2011/07/06 00:11:57 beck Exp $ */ /* $NetBSD: iostat.c,v 1.5 1996/05/10 23:16:35 thorpej Exp $ */ /* @@ -218,51 +218,27 @@ showdrive(int dn) void showbcache(void) { - print_fld_str(FLD_IO_SSTR, "numbufs"); - print_fld_ssize(FLD_IO_SVAL, bccur.numbufs); - end_line(); - - print_fld_str(FLD_IO_SSTR, "freebufs"); - print_fld_ssize(FLD_IO_SVAL, bccur.freebufs); - end_line(); - - print_fld_str(FLD_IO_SSTR, "numbufpages"); + print_fld_str(FLD_IO_SSTR, "total pages"); print_fld_ssize(FLD_IO_SVAL, bccur.numbufpages); end_line(); - print_fld_str(FLD_IO_SSTR, "numfreepages"); - print_fld_ssize(FLD_IO_SVAL, bccur.numfreepages); + print_fld_str(FLD_IO_SSTR, "dma pages"); + print_fld_ssize(FLD_IO_SVAL, bccur.dmapages); end_line(); - print_fld_str(FLD_IO_SSTR, "numdirtypages"); + print_fld_str(FLD_IO_SSTR, "dirty pages"); print_fld_ssize(FLD_IO_SVAL, bccur.numdirtypages); end_line(); - print_fld_str(FLD_IO_SSTR, "numcleanpages"); - print_fld_ssize(FLD_IO_SVAL, bccur.numcleanpages); - end_line(); - - print_fld_str(FLD_IO_SSTR, "pendingwrites"); + print_fld_str(FLD_IO_SSTR, "pending writes"); print_fld_ssize(FLD_IO_SVAL, bccur.pendingwrites); end_line(); - print_fld_str(FLD_IO_SSTR, "pendingreads"); + print_fld_str(FLD_IO_SSTR, "pending reads"); print_fld_ssize(FLD_IO_SVAL, bccur.pendingreads); end_line(); - print_fld_str(FLD_IO_SSTR, "numwrites"); - print_fld_ssize(FLD_IO_SVAL, bccur.numwrites - bclast.numwrites); - end_line(); - - print_fld_str(FLD_IO_SSTR, "numreads"); - print_fld_ssize(FLD_IO_SVAL, bccur.numreads - bclast.numreads); - end_line(); - - print_fld_str(FLD_IO_SSTR, "cachehits"); + print_fld_str(FLD_IO_SSTR, "cache hits"); print_fld_ssize(FLD_IO_SVAL, bccur.cachehits - bclast.cachehits); end_line(); - - print_fld_str(FLD_IO_SSTR, "busymapped"); - print_fld_ssize(FLD_IO_SVAL, bccur.busymapped); - end_line(); } |