vmstat -s: report cpu pagealloc hits/misses.

This commit is contained in:
ad 2008-06-04 12:47:47 +00:00
parent cbbf514e2c
commit e7fbdbbaf0
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmstat.c,v 1.158 2008/04/28 20:24:15 martin Exp $ */
/* $NetBSD: vmstat.c,v 1.159 2008/06/04 12:47:47 ad Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@ -70,7 +70,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1986, 1991, 1993\n\
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 3/1/95";
#else
__RCSID("$NetBSD: vmstat.c,v 1.158 2008/04/28 20:24:15 martin Exp $");
__RCSID("$NetBSD: vmstat.c,v 1.159 2008/06/04 12:47:47 ad Exp $");
#endif
#endif /* not lint */
@ -839,6 +839,10 @@ dosum(void)
uvmexp.colorhit);
(void)printf("%9u pagealloc desired color not avail\n",
uvmexp.colormiss);
(void)printf("%9u pagealloc local cpu avail\n",
uvmexp.cpuhit);
(void)printf("%9u pagealloc local cpu not avail\n",
uvmexp.cpumiss);
(void)printf("%9u faults with no memory\n", uvmexp.fltnoram);
(void)printf("%9u faults with no anons\n", uvmexp.fltnoanon);