Commit Graph

245 Commits

Author SHA1 Message Date
christos 9a6801b5cd fix pool_allocator fallout. bad boy jason! 2002-03-10 01:48:25 +00:00
enami 41e1be38c5 - Kill whitespaces at the end of line.
- Wrap long line.
2002-02-25 00:39:04 +00:00
enami 2c0bf8440e Don't forget to fetch pool cache group. 2002-02-20 07:52:43 +00:00
enami 6af26372f1 When printing pool stats, print pool cache stats also if -v is given. 2002-02-20 07:43:30 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
simonb 0f944ef22b Use the new disk and tty stats sysctls when operating on a live kernel,
dk*() don't need to worry about setgid() games anymore.
2002-01-28 02:15:15 +00:00
chs 8e9cdbbd63 replace "vnode" and "vtext" with "file" and "exec" in uvmexp field names. 2001-12-09 03:07:43 +00:00
lukem 379a7b9d91 print average chain length as %8.2f instead of %8d 2001-12-06 03:48:56 +00:00
thorpej 235d97a465 KERNBASE is a constant that kernland has no business using; it's
existence and value are machine-dependent, and using KERNBASE
either breaks binary compatibility across the same MACHINE_ARCH
or prevents this program from compiling at all.
2001-11-29 21:22:25 +00:00
jmc 96316bebb6 Cast the printf'ing of the 2 size_t vars in dohashstat to unsigned long long as
some ports have size_t's which are larger than int's.
2001-11-26 21:04:49 +00:00
lukem 31c1ed8952 - Separate hashstat namelist into separate hashnl[], and don't barf if
some of the symbols can't be found
- Only kvm_nlist() hashnl[] and histnl[] once
- Add a description to struct kernel_hash, and print with -L
- Sort entries in khashes[]
- Don't exit on unknown hashes; just display a warning and move on
2001-11-26 14:06:31 +00:00
lukem ef4781fc59 add stats for nchash & ncvhash 2001-11-26 10:38:59 +00:00
lukem ff1761be8e - Use -H (instead of -h) to list all hash stats.
- Add '-h hashname' to only list the stats for hashname.
- Add -L to list valid hashes
- Fix up some whitespace
2001-11-26 10:18:08 +00:00
wiz d5d43c487a Sort sections, and be consistent in each-vs-every usage at least in this
man page.
2001-11-26 07:52:46 +00:00
lukem 9ba7f648bb - replace -h uvmhist with -u uvmhist, and -H with -U, since uvm history stuff
isn't generally enabled by default, and i wanted -h for something else.
- implement -h, which displays statistics for various kernel hash tables
- add deref_kptr(), which does the hard work of kvm_read() et al
- various minor cleanups
2001-11-26 07:40:01 +00:00
enami 31b84bf30a Check array boundary correctly. 2001-11-21 00:40:56 +00:00
enami 5413315441 Print evcnt/intrcnt as unsigned. 2001-11-21 00:38:50 +00:00
bjh21 7a29a41680 When summarizing pool memory usage, account for PR_RECURSIVE pools
specially so as to avoid counting the same memory twice.
2001-10-07 12:50:54 +00:00
wiz 9fa0b17629 Give initiali[sz]e all the "i"s it deserves. 2001-09-18 18:15:49 +00:00
matt 531338f3ce Adjust vmstat -i / -e for wider event names 2001-08-26 02:50:37 +00:00
lukem 4e8c51f7aa when printing "avm fre" fields, use " %5ld %5ld " instead of "%6ld%6ld ",
because it's better to slightly right-shift the display than run numbers
together when you've got > 99999KB avm or fre.
2001-06-13 08:18:30 +00:00
christos 717b628383 move extern at a global scope. 2001-06-03 04:02:34 +00:00
ross 65dd7f43a3 Update the -s description for the uvm era. (It was stuck in the pre-mach
bsd-vax-vm days. :-)
2001-05-19 00:36:15 +00:00
wiz 553c8f83e4 Move vmstat.8 to vmstat.1, since the program lives in /usr/bin now and is
not super-user-only.
Cf. short discussion on tech-userlevel.
2001-05-06 23:37:36 +00:00
thorpej e0d3747f72 Move the number of page colors to the top of the display. 2001-05-02 01:26:04 +00:00
thorpej 01e2971ba2 Add the number of page colors to uvmexp. 2001-05-01 19:36:56 +00:00
thorpej a553aade18 Print print color bucket hit/miss stats. 2001-04-29 05:56:47 +00:00
wiz a3c62eec08 Fix date and two whitespace nits. 2001-04-26 23:16:47 +00:00
wiz 53ff5059ee vmstat(8), not (1). 2001-04-09 12:35:26 +00:00
jhawk 350c31eeb0 Make -c and -w work properly when printing non-default statistics. 2001-04-05 20:04:03 +00:00
simonb 21425f4507 Show number of pages used by executables now that they're are counted
by UVM.
2001-03-09 02:42:23 +00:00
enami 0a3cd3740b Prevent integer overflow. 2001-01-27 11:10:18 +00:00
enami 1afed7103d Cosmetic changes. 2001-01-27 11:08:23 +00:00
simonb 198d7bfbee Don't "extern" variables and function in dkstats.c, declare them in
dkstats.h instead.
2000-12-01 02:08:26 +00:00
simonb 80bd9216d2 ANSIfy. 2000-11-30 23:59:03 +00:00
simonb f982391188 Use a better description for the vnode page cache pages. 2000-11-30 12:02:19 +00:00
simonb 21abd388e9 Show anonpages and vnodepages in "vmstat -s". 2000-11-30 11:50:15 +00:00
ad e0ffdbe290 - mdocify
- misc clean ups
2000-11-13 12:16:28 +00:00
sommerfeld e970dc32cd Move cpu header right 3 spaces to match grouping in man page 2000-09-28 14:56:52 +00:00
sommerfeld 4d7c61e467 Synch with implementation (correct problem reported in misc/11086) 2000-09-28 14:51:15 +00:00
enami f676ab58c4 Make vmstat -m to put at least one space between each numbers. 2000-09-23 00:39:19 +00:00
thorpej c938e2e7cd Display number of zero page aborts. 2000-09-21 22:38:28 +00:00
itojun bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
mrg 8d4795719a remove include of <vm/vm.h> 2000-06-29 06:26:33 +00:00
cgd cffb580806 Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +00:00
thorpej 13ba787e60 Use kern.cp_time to fetch cp_time[]. Don't support fetching it from
crash dumps yet, as that requires determining which CPU we should fetch
it from, etc.
2000-06-04 16:06:25 +00:00
itojun 872ae35bf5 cp_time is no longer available in the kernel.
remove it from namelist[] to make vmstat work.
2000-06-04 08:07:36 +00:00
perry 0da76771e9 include sys/sched.h to get definition of CPUSTATES 2000-06-04 02:25:40 +00:00
thorpej ae67003975 Need to include <sys/sched.h> to get cp_time-related constants. 2000-06-03 21:00:42 +00:00
simonb cc0dc305fc cp_time[] and the terminal chars in/out counters are u_int64_t's now. 2000-05-29 11:36:43 +00:00
fair 69de15b2b2 Remove documentation of bogus "-t" option, per PR 10036. 2000-05-17 09:49:32 +00:00
thorpej bb06f77483 Print the zero page statistics. 2000-04-24 17:40:31 +00:00
simonb d88dfea295 Don't declare 'extern opt*' getopt variables. 2000-04-14 06:11:07 +00:00
kleink a3c6c197a2 Cast timeval members to types we know the printf conversions of. 2000-03-27 17:03:25 +00:00
fredb 2cfe71bc9a More fallout from CL* purge. 1999-12-05 18:54:34 +00:00
soren 6df42c85a5 Make pool output fit in 80 columns on most machines. 1999-11-02 06:23:50 +00:00
thorpej 0bd35e4157 This program has to use KVM alrady, so use that to read uvmexp, rather
than sysctl.  This can now read VM stats from crash dumps.
1999-10-30 22:49:58 +00:00
chs 21eedb0ec1 the PMAP_NEW option is gone as the new interface is no longer optional. 1999-09-12 01:19:23 +00:00
thorpej ed8849cd5a Define __POOL_EXPOSE to get at the guts of the pool descriptor. 1999-03-31 23:25:46 +00:00
mrg d2397ac5f7 completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
kleink b75d68301e <sys/fcntl.h> -> <fcntl.h> 1999-02-12 15:04:00 +00:00
thorpej 04767647ca Nuke all mentions of vmstat -t. PR #6433, Geoff Wing. 1999-01-11 23:03:06 +00:00
perry bfd526219d bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:57:23 +00:00
thorpej 10be977794 Display the number of idle pages per pool. 1998-08-01 23:45:05 +00:00
pk c84a4e8823 Print memory pool statistics. 1998-07-27 10:26:11 +00:00
mycroft 0c4d98ae35 const poisoning. 1998-07-26 17:53:10 +00:00
drochner b2058e2f38 Fix handling of privileges - the gid was given up before dkinit()
was called.
Pass the gid to use for KVM access explicitely to dkinit(), the caller
decides whether to call setgid(getgid()) or not.
1998-07-19 17:47:07 +00:00
mrg 80efe80bc9 - change setgid kmem programs (that lend themselves to this) so setegid(getgid())
and the top, and then set the effective gid back to kmem around the call to
  kvm_openfiles().  this reduces the time group kmem is available.
- for those above that also allow this, setgid(getgid()) after the call to
  kvm_openfiles() to fully revoke priviledges.
- some KNF
- use err(3) over fprintf(3) in some places
1998-07-06 07:50:18 +00:00
mrg 5dfbe405c5 KNF. 1998-07-05 08:02:34 +00:00
kleink 21a53ba722 Don't assume that an inclusion of <sys/time.h> makes visible all definitions
from <sys/types.h>.
1998-04-01 16:41:31 +00:00
kleink 08f1edf858 Update the EXAMPLES section to reflect that the interval between display
updates is not set using the `-w' option (was `-i'); from Brian Grayson
in PR bin/5241.
1998-04-01 16:32:54 +00:00
mrg 4c67898a4f use the uvmexp.pageins member for "pi". 1998-03-05 02:47:05 +00:00
perry ba7b5f16ff add -DPMAP_NEW if PMAP_NEW is on in mk.conf 1998-02-18 03:54:58 +00:00
thorpej 2ca4a3f1c2 Add support for listing and dumping UVM history buffers. 1998-02-13 05:10:32 +00:00
mrg 4e8c1720a8 print almost all of uvmexp with -s. do pagein/pageout counts correctly.
also include freed pages count (that was missing from mach vm, but present
in the "output" but hard coded to 0 in vmstat.c.
1998-02-09 13:11:26 +00:00
mrg 279ce528ce add -DUVM to CPPFLAGS if defined(UVM) 1998-02-09 06:25:15 +00:00
mrg 52bb2f5ba0 print out the contents of uvmexp for "vmstat -s" 1998-02-07 16:50:59 +00:00
mrg 3ff646f56e flesh out standard vmstat output with UVM. 1998-02-07 16:18:14 +00:00
mrg a705b928fd GC old old old "NEWVM". make run under UVM, if not report everything yet.. 1998-02-07 15:42:32 +00:00
thorpej faa8ffb044 Revive the -f option: report fork statistics. 1998-01-04 03:59:04 +00:00
lukem 3e8e744696 getopt returns -1 not EOF 1997-11-01 06:49:14 +00:00
mrg 035e984ada WARNSify; deprecate register; fix some broken fprintf() statements found from WARNS. 1997-10-20 03:11:57 +00:00
mrg 0026c9e93a merge lite-2. 1997-10-18 14:34:39 +00:00
is c0515bc6f2 Repair the formatting of the by-memory-type table of "vmstat -m"
("MSDOSFS mount" is too big for %12s).
Note that this breaks naive parser scripts, but they would not parse
the earlier "MSDOSFS mount" line correctly, anyway.
1997-04-10 15:49:30 +00:00
is f70c0e95c8 "undefined" -> "undef/%d" for memory type names. Similar, but not identical
to Ken Raeburns proposal from PR 1012, herewith closed.
1997-04-10 15:23:50 +00:00
thorpej a7883a4d79 If kmem stats are not being gathered by the kernel, print a useful
message to that effect.  Fixes PR #3187, submitted by
Guenther Grau <s_grau@ira.uka.de> (fix by me).
1997-02-22 02:04:42 +00:00
thorpej 3d130af5dc Compute `halfuptime' correctly when `uptime' == 1.
From Lennart Augustsson <augustss@cs.chalmers.se>, PR #2944.
1996-11-29 19:40:56 +00:00
cgd 72f7358ea7 print all evcnt structures, not just those which have the name "intr".
Printing only those with the name "intr" is too restrictive, because it
means that devices can only have one interrupt, which makes little
sense for many devices and absolutely no sense for several common busses.
1996-11-25 22:55:59 +00:00
mycroft 916902678d Remove straggling references to dk_ndrive and dk_xfer. 1996-08-08 04:11:27 +00:00
cgd cbeadd1248 the kernel 'boottime' variable is a timeval. copy it out of kernel
memory as such (not as a time_t).
1996-06-05 00:18:58 +00:00
thorpej 1eaf5ee379 New userland code to read the statistics kept by the NetBSD generic
disk framework, from John M. Vinopal <banshee@gabriella.resort.com>
1996-05-10 23:16:30 +00:00
cgd acf9d62a7b update for the fact that 'allevents' is now a TAILQ. 1996-04-04 00:27:50 +00:00
mark 6acb166069 Provide a read_names() function for the arm32 port. 1996-04-01 21:45:25 +00:00
jonathan 96d023c99d Fix pmax read_names() to compile with updated (release 1.1) names for
pmax device-driver structures.
1995-12-17 05:30:05 +00:00
cgd 47b01b6b9c print interrupt names in 14 cols. really should be dynamic. 1995-10-10 01:17:35 +00:00
cgd dc9363b197 don't forget to accumulate interrupt counts found via allevents. 1995-10-08 06:54:36 +00:00
cgd 7d7362b02f fix spacing problem in interrupt/total/rate output line of vmstat -i 1995-10-08 06:39:16 +00:00
phil d706482f56 For the pc532, get struct iv from the protected part of <machine/psl.h>. 1995-09-24 06:34:47 +00:00
phil d096b0e5e1 pc532 specific interrupt code. (From Matthias Pfaller.) 1995-08-27 06:20:27 +00:00
jtc 3619016374 Moved from section 1 to section 8; PR #1298 1995-08-10 23:29:47 +00:00
ragge fcd02a4fbe read_names() for vax needed... 1995-07-23 18:09:27 +00:00
jtc 9e981c23ff sys/signal.h -> signal.h 1995-06-27 00:31:00 +00:00
cgd 1b397d5648 fix up RCS ids 1995-05-07 22:16:23 +00:00
cgd 8aa3aa9d93 always add sys/arch to include path 1995-05-07 22:15:57 +00:00
cgd 096459aaec cast pointers to longs, not ints. 1995-04-29 05:59:11 +00:00
cgd 8e7f92fee8 add stub read_names() for the alpha 1995-04-24 07:43:17 +00:00
ragge e1a75f1fbc VAX machine dependent defs removed. 1995-04-17 00:00:27 +00:00
pk 4df02dd0c1 Make use of the new kernel event counters; from Theo. 1995-03-14 07:35:49 +00:00
mycroft 88c838412f Put back the -I/sys/arch. 1994-12-28 18:39:53 +00:00
cgd 0765b1c716 size is a size_t! 1994-12-24 17:02:20 +00:00
cgd 9e97520947 specify man pages the new way. 1994-12-22 12:30:38 +00:00
mycroft b2329b6229 Fix RCS id format. 1994-10-06 15:54:02 +00:00
mycroft ff5dbe5d15 If we don't -I/sys, then don't -I/sys/arch, either. 1994-10-06 15:53:14 +00:00
phil 88eb03c015 someone forgot the pc532. 1994-06-09 05:36:29 +00:00
chopps 4a64dd7c10 update default system name. 1994-06-05 01:43:13 +00:00
hpeyerl 8360c5f4ab ${.CURDIR} works better. 1994-05-30 19:12:36 +00:00
hpeyerl c05316e969 Make this compile under hp300. 1994-05-30 17:10:14 +00:00
chopps d4672d4405 add machine define if m68k arch. 1994-05-21 10:12:29 +00:00
chopps a26293d757 add stub read_names()'s for non hp300 m68k's 1994-05-21 10:08:27 +00:00
deraadt eee9ec00bb cannot read sparc disk names 1994-05-18 23:11:14 +00:00
cgd 968fe31b75 re-enable new bucket foo, also widen type name field by one for miscfs mount 1994-05-13 08:41:12 +00:00
cgd 8169628f13 rcsids 1994-05-11 07:35:54 +00:00
cgd c5a09332b5 clean up import. also, stub read_names for the i386, and comment out
some refs to kmem stats fields that we don't have yet.  This will need
hacking, (1) for the various ports, (2) for the kmem stuff, and won't
work completely right until those happen, and until the new vm system
is integrated.
1994-05-11 07:34:05 +00:00
cgd 2a83433d4e clean, exported variable (and contents) changes 1994-04-15 07:07:23 +00:00
cgd 68e9ccd936 screw it. #ifdef out the i386 disk-name-getting routine. 1994-03-30 01:37:04 +00:00
cgd 2ef3f89f23 i386: completely punt on getting disk names until charles is done
config hacking.  better to punt than to do something really abnormal.
1994-03-27 12:26:33 +00:00
cgd 9d26d3af36 get section right; from Luke Mewburn <lm@rmit.edu.au> 1994-03-19 08:04:16 +00:00
cgd 4198f66135 fix to work with new config. SCSI device name support is totally hosed. 1994-03-13 03:38:30 +00:00
cgd da1d84230b needs -lkvm, not -lutil 1994-01-28 00:48:33 +00:00
cgd aacc00e1f9 get rid of __386BSD__ and replace as appropriate with __NetBSD__ and i386 1993-12-06 09:21:56 +00:00
deraadt 2576177364 some nice new things 1993-11-10 15:00:41 +00:00
jtc c39233bfc4 Got bored, converted yet another manpage to use the -mandoc macroes. 1993-10-06 19:16:41 +00:00
cgd 1ac3fb6639 widen "Type" field of vmstat -m by 2 characters 1993-10-02 03:26:52 +00:00
pk 0915419517 -I/sys --> -I${DESTDIR}/sys, to support cross-compilation. 1993-09-25 13:19:49 +00:00
cgd f0ba70d26a make various vm counters part of the "standard" nlist (for mw) 1993-08-23 10:33:07 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft d0f8d5d2bb Add RCS identifiers. 1993-07-30 22:28:22 +00:00
mycroft 77f1922b02 Fix up FILES sections. 1993-06-13 23:06:41 +00:00
mycroft e52e93dd80 Update file names. 1993-06-13 22:36:44 +00:00
cgd 8d3024e280 clean up interrupt count printing a bit... 1993-06-06 17:15:59 +00:00
cgd a8a67cbfaf fix dependencies on M_LAST's old off-by-one error...
(arguably, the old error wasn't an error, but, given some
of the old usage of M_LAST and its name, i say it was)
1993-05-25 18:04:17 +00:00
cgd 188696dbcb add rcs ids, and update for "arch" 1993-05-21 08:53:22 +00:00
deraadt 2820a4755d iostat and vmstat being taught about drives.. 1993-05-04 07:38:29 +00:00
cgd dab5e017db added, from net/2 (patch 124). 1993-04-09 12:58:42 +00:00