summaryrefslogtreecommitdiff
path: root/usr.bin/vmstat/vmstat.c
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/4.8.0_cvscvs2svn2003-04-031-1/+1
| | | | | | | 'RELENG_4_8_0_RELEASE'. This commit was manufactured to restore the state of the 4.8-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* MFC of rev. 1.49: correct type for the 3rd argument to sysctl().Thomas Moestl2001-07-311-1/+2
| | | | Notes: svn path=/stable/4/; revision=80752
* MFC: incorporate all changes made in current:Jens Schweikhardt2001-07-031-66/+29
| | | | | | | | | | | | | | - make all fields space separated to avoid run-together columns - rename macro pgtok conflicting with machine/param.h - increase field widths for -i - axe unused variables Approved by: joerg (in parts) Requested by: bde (in parts) Hoorayed by: greg (in parts) Notes: svn path=/stable/4/; revision=79156
* MFC: Add mibs to hold the number of forks since boot. New mibs are:Hajimu UMEMOTO2001-02-181-0/+8
| | | | | | | | | | | | | | | | | | | vm.stats.vm.v_forks vm.stats.vm.v_vforks vm.stats.vm.v_rforks vm.stats.vm.v_kthreads vm.stats.vm.v_forkpages vm.stats.vm.v_vforkpages vm.stats.vm.v_rforkpages vm.stats.vm.v_kthreadpages sys/kern/kern_fork.c: 1.92->1.93 sys/sys/vmmeter.h: 1.21->1.22 sys/vm/vm_meter.c: 1.43->1.44 usr.bin/vmstat/vmstat.c: 1.41->1.42 Notes: svn path=/stable/4/; revision=72660
* MFC: [rev 1.39] Remove unneeded include.Paul Saab2000-07-021-1/+0
| | | | Notes: svn path=/stable/4/; revision=62386
* unifdef -Uvax -Uhp300 -Uluna68k -Umips -UtahoePoul-Henning Kamp1999-09-011-48/+0
| | | | Notes: svn path=/head/; revision=50743
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Convert interrupt count from signed to unsigned and the totalNick Hibma1999-07-261-4/+6
| | | | | | | | | | | from signed long to unsigned lon long. PR: 12808 Submitted by: Kevin Day toasty@dragondata.com Reviewed by: bde Notes: svn path=/head/; revision=49107
* Backed out the previous commit, except for the parts that reducedBruce Evans1999-05-121-11/+5
| | | | | | | | | | the magicness of 200. Cleaned up the remaining parts. Circularisation of the list of malloc types was a kernel bug (now fixed). Interfering with applications' definitions of pgtok is a system header bug (not fixed). Notes: svn path=/head/; revision=47068
* Sometime since this file was written, the list of kernel malloc typesWarner Losh1999-05-101-4/+15
| | | | | | | | | | | | changed from a simple list to a circular one. We compensate by only looping until we see the first address again. Before, things would terminate because it was limited to 200 iterations. This lead to bogus statistics and repeating stats for memory types. This should be merged into 3.2, as the same bug is there. Notes: svn path=/head/; revision=46852
* Fixed bitrot in usage message and disordering of options in previous commit.Bruce Evans1999-02-151-7/+7
| | | | | | | | | | I'm not sure why we have `mvstat -z'. `sysctl vm.zone' gives more information. OTOH, `sysctl vm.zone' shouldn't return ASCII data, and reporting of memory use should be integrated, at least as an option. Notes: svn path=/head/; revision=44067
* Add -z option to vmstat to dump data from the zone allocatorMatthew Dillon1999-02-131-10/+73
| | | | Notes: svn path=/head/; revision=43962
* Fix vmstat display problems. The header printout wasn't quite right, andKenneth D. Merry1999-02-101-11/+8
| | | | | | | | | | | | the display wrapped around. This decreases the default maximum number of disks shown to 2, so things don't wrap around so easily. Also, it fixes the header display issues. Submitted by: Bruce Evans <bde@FreeBSD.ORG> Notes: svn path=/head/; revision=43822
* Add a prioritization field to the devstat_add_entry() call so thatKenneth D. Merry1999-02-101-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | peripheral drivers can determine where in the devstat(9) list they are inserted. This requires recompilation of libdevstat, systat, vmstat, rpc.rstatd, and any ports that depend on the devstat code, since the size of the devstat structure has changed. The devstat version number has been incremented as well to reflect the change. This sorts devices in the devstat list in "more interesting" to "less interesting" order. So, for instance, da devices are now more important than floppy drives, and so will appear before floppy drives in the default output from systat, iostat, vmstat, etc. The order of devices is, for now, kept in a central table in devicestat.h. If individual drivers were able to make a meaningful decision on what priority they should be at attach time, we could consider splitting the priority information out into the various drivers. For now, though, they have no way of knowing that, so it's easier to put them in an easy to find table. Also, move the checkversion() call in vmstat(8) to a more logical place. Thanks to Bruce and David O'Brien for suggestions, for reviewing this, and for putting up with the long time it has taken me to commit it. Bruce did object somewhat to the central priority table (he would rather the priorities be distributed in each driver), so his objection is duly noted here. Reviewed by: bde, obrien Notes: svn path=/head/; revision=43819
* Back out previous work-around for "vmstat -i" failing on ELFJohn Polstra1998-10-281-1/+1
| | | | | | | | kernels. A better fix is now committed to "src/lib/libc/gen/nlist.c" and "src/usr.sbin/kvm_mkdb/nlist.c". Notes: svn path=/head/; revision=40690
* Work around some variables having N_UNDF types but valid values; thisMike Smith1998-10-241-2/+2
| | | | | | | | makes vmstat work on ELF kernels again. Submitted by: Daniel Rock <rock@cs.uni-sb.de> Notes: svn path=/head/; revision=40631
* Change the devstat generation number from an int to a long. The int-sizedKenneth D. Merry1998-09-201-3/+5
| | | | | | | | | | | | | generation was causing unaligned access faults on the Alpha. I have incremented the devstat version number, since this is an interface change. You'll need to recompile libdevstat, systat, iostat, vmstat and rpc.rstatd along with your kernel. Partially Submitted by: Andrew Gallatin <gallatin@cs.duke.edu> Notes: svn path=/head/; revision=39498
* vmstat shows all manually-specified devices rather then just the firstMatthew Dillon1998-09-161-1/+6
| | | | | | | three. Notes: svn path=/head/; revision=39372
* Update system to new device statistics code.Justin T. Gibbs1998-09-151-121/+198
| | | | | | | Submitted by: "Kenneth D. Merry" <ken@plutotech.com> Notes: svn path=/head/; revision=39230
* Fixed printf format errors.Bruce Evans1998-07-061-15/+20
| | | | Notes: svn path=/head/; revision=37453
* Support a couple of new "-s" stats.John Dyson1998-03-071-1/+3
| | | | Notes: svn path=/head/; revision=34214
* Const poisoning from ks_shortdesc.Bruce Evans1997-12-051-2/+2
| | | | Notes: svn path=/head/; revision=31560
* struct kmemstats was renamed.Poul-Henning Kamp1997-10-101-3/+3
| | | | Notes: svn path=/head/; revision=30287
* Make vmstat understand the dynamic malloc stuff. There are a numberPoul-Henning Kamp1997-10-101-15/+23
| | | | | | | of ugly hardcoded constants in there. Notes: svn path=/head/; revision=30279
* Be more specific about -f/-t options (they're not yet implemented),Dima Ruban1997-10-061-11/+16
| | | | | | | | | | not just exit with 0 status. This definitely should go to 2.2.5. If i won't have any objections - I'll commit it tonight. Notes: svn path=/head/; revision=30180
* Use err(3). Add some %d to %ld changes.Philippe Charnier1997-08-251-43/+34
| | | | Notes: svn path=/head/; revision=28693
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Slight visual formatting change to the output so that:Marc G. Fournier1997-03-161-3/+3
| | | | | | | | | | | | | | | procs memory page disks faults cpu r b w avm fre flt re pi po fr sr w0 w1 in sy cs us sy id 1 0 04135184 6016 180 2 1 0 158 135 10 0 386 1820 77 20 6 74 looks like: procs memory page disks faults cpu r b w avm fre flt re pi po fr sr w0 w1 in sy cs us sy id 1 0 0 4135188 6016 180 2 1 0 158 135 10 0 387 1821 77 20 6 74 Notes: svn path=/head/; revision=23952
* Print number of second-level cache hits as per-directory, not per-processJordan K. Hubbard1996-03-031-1/+1
| | | | | | | | (since they're per-directory now). Learned from: Kirk McKusick's OS internals course.. :-) Notes: svn path=/head/; revision=14353
* Reduced vm dependencies. Only `struct vmmeter.h' is required.Bruce Evans1995-12-131-2/+4
| | | | | | | | | Unfortunately, the sysctl number for reading this struct is bogusly placed in <vm/vm_param.h> instead of with the declaration of the struct. Notes: svn path=/head/; revision=12811
* add a #include <sys/vmmeter.h> since we are using the vmmeter structuresPeter Wemm1995-12-131-0/+1
| | | | | | | | and this was once (but no longer it seems) included by <vm/vm.h> It should now compile again. Notes: svn path=/head/; revision=12804
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8874
* Removed object lookup/hit count and changed the order of things a little.David Greenman1995-03-251-4/+2
| | | | Notes: svn path=/head/; revision=7351
* Removed printing of cnt.v_nzfod: we don't implement this in the kernel.David Greenman1995-03-251-1/+0
| | | | Notes: svn path=/head/; revision=7347
* Added 'pages in VM cache' statistic.David Greenman1995-01-101-0/+1
| | | | Notes: svn path=/head/; revision=5463
* Made zero-fill stats a bit more clear.David Greenman1994-10-181-2/+2
| | | | Notes: svn path=/head/; revision=3695
* Updated to changes in struct vmmeter and reorganized -s stats to be moreDavid Greenman1994-10-181-13/+15
| | | | | | | logical. Notes: svn path=/head/; revision=3693
* Restore all of my changes that Garrett clobbered in the previous commit.David Greenman1994-10-171-72/+19
| | | | Notes: svn path=/head/; revision=3659
* New way of getting disk drive names.Garrett Wollman1994-10-161-21/+74
| | | | Notes: svn path=/head/; revision=3642
* Updated to changes in struct vmmeter. Nuked !NEWVM code. Fixed roundingDavid Greenman1994-10-151-72/+19
| | | | | | | bug when interval is 1 second. Notes: svn path=/head/; revision=3613
* Realigned the output of "vmstat -m", "MSDOSFS mount" was too wide for thePoul-Henning Kamp1994-10-051-11/+21
| | | | | | | | field. Saved some space and gained a little clarity by printing "128K" instead of 131072 (and so on). Notes: svn path=/head/; revision=3372
* Add read_names support for i386, based on my original work from FreeBSDRodney W. Grimes1994-05-291-1/+5
| | | | | | | and cleaned up slightly. Notes: svn path=/head/; revision=1620
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+873
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590