summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-03-26 11:01:45 +0000
committerru <ru@FreeBSD.org>2004-03-26 11:01:45 +0000
commita05bd8e51a2dd4d99901add51fa4d62117d2bcc7 (patch)
treea695e0e5763911cf78ad2cff84f4ee792c24e03a /usr.bin/vmstat
parenta27854b6a761e87a59a35b6ae99fe5c717217941 (diff)
downloadFreeBSD-src-a05bd8e51a2dd4d99901add51fa4d62117d2bcc7.zip
FreeBSD-src-a05bd8e51a2dd4d99901add51fa4d62117d2bcc7.tar.gz
Properly document the -M and -N options.
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.826
-rw-r--r--usr.bin/vmstat/vmstat.c2
2 files changed, 19 insertions, 9 deletions
diff --git a/usr.bin/vmstat/vmstat.8 b/usr.bin/vmstat/vmstat.8
index dbd6ceb..52ce2d8 100644
--- a/usr.bin/vmstat/vmstat.8
+++ b/usr.bin/vmstat/vmstat.8
@@ -43,8 +43,7 @@
.\" .Op Fl fimst
.Op Fl afimsz
.Op Fl c Ar count
-.Op Fl M Ar core
-.Op Fl N Ar system
+.Op Fl M Ar core Op Fl N Ar system
.Op Fl w Ar wait
.Op Fl n Ar devs
.Oo
@@ -60,6 +59,16 @@ The
utility reports certain kernel statistics kept about process, virtual memory,
disk, trap and cpu activity.
.Pp
+If the
+.Fl M
+option is not specified, information is obtained from
+the currently running kernel via the
+.Xr sysctl 3
+interface.
+Otherwise, information is read from the specified core file,
+using the name list from the specified kernel image (or from
+the default image).
+.Pp
The options are as follows:
.Bl -tag -width indent
.It Fl a
@@ -90,14 +99,15 @@ Report on the number of interrupts taken by each device since system
startup.
.It Fl M
Extract values associated with the name list from the specified
-.Ar core
-instead of the default
-.Pa /dev/kmem .
+.Ar core .
.It Fl N
-Extract the name list from the specified
+If
+.Fl M
+is also specified,
+extract the name list from the specified
.Ar system
-instead of the default
-.Pa /boot/kernel/kernel .
+instead of the default,
+which is the kernel image the system has booted from.
.It Fl m
Report on the usage of kernel dynamic memory listed first by size of
allocation and then by type of usage.
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index ea16ee2..d7a7f0e 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -951,7 +951,7 @@ static void
usage(void)
{
(void)fprintf(stderr, "%s%s",
- "usage: vmstat [-aimsz] [-c count] [-M core] [-N system] [-w wait]\n",
+ "usage: vmstat [-aimsz] [-c count] [-M core [-N system]] [-w wait]\n",
" [-n devs] [disks]\n");
exit(1);
}
OpenPOWER on IntegriCloud