summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat/vmstat.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-10-21 09:08:35 +0000
committerglebius <glebius@FreeBSD.org>2006-10-21 09:08:35 +0000
commit8f073c1e7121ca5f1d7422bcb71002bca19a6290 (patch)
treefd1065f429088631cac81667391cf6f783ab241b /usr.bin/vmstat/vmstat.c
parent7e0c59262e5e401a3513d8e86697b9e2307d87b6 (diff)
downloadFreeBSD-src-8f073c1e7121ca5f1d7422bcb71002bca19a6290.zip
FreeBSD-src-8f073c1e7121ca5f1d7422bcb71002bca19a6290.tar.gz
Print the number of allocation failures in UMA zones.
PR: kern/102940
Diffstat (limited to 'usr.bin/vmstat/vmstat.c')
-rw-r--r--usr.bin/vmstat/vmstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 6ffb099..66c83ce 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -969,16 +969,16 @@ domemstat_zone(void)
memstat_strerror(error));
}
}
- printf("%-15s %-8s %-9s %-7s %-5s %-8s\n\n", "ITEM", "SIZE", "LIMIT",
- "USED", "FREE", "REQUESTS");
+ printf("%-15s %-8s %-9s %-7s %-5s %-8s %-8s\n\n", "ITEM", "SIZE",
+ "LIMIT", "USED", "FREE", "REQUESTS", "FAILURES");
for (mtp = memstat_mtl_first(mtlp); mtp != NULL;
mtp = memstat_mtl_next(mtp)) {
strlcpy(name, memstat_get_name(mtp), MEMTYPE_MAXNAME);
strcat(name, ":");
- printf("%-15s %4llu, %8llu, %7llu, %6llu, %8llu\n", name,
+ printf("%-15s %4llu, %8llu, %7llu, %6llu, %8llu %8llu\n", name,
memstat_get_size(mtp), memstat_get_countlimit(mtp),
memstat_get_count(mtp), memstat_get_free(mtp),
- memstat_get_numallocs(mtp));
+ memstat_get_numallocs(mtp), memstat_get_failures(mtp));
}
memstat_mtl_free(mtlp);
printf("\n");
OpenPOWER on IntegriCloud