summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
Commit message (Collapse)AuthorAgeFilesLines
* SECURITY: Drop `setgid kmem' bit as early as possible.ru2001-08-311-0/+1
|
* Change the compute_stats() call to the new devstat_compute_statistics()ken2001-08-111-21/+21
| | | | | | | | interface. Cast the return of the rest of the printfs in here to void. Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
* Correct the old length argument passed to sysctl to be a pointer to atmm2001-07-291-1/+2
| | | | | | size_t (not to an int). MFC after: 2 days
* Remove whitespace at EOL.dd2001-07-151-9/+9
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Increase column widths when using -i (they are now wide enough toschweikh2001-06-261-3/+3
| | | | | | | | | hold a 64bit or 32bit ~0 value, i.e. 20 and 10; this anticipates soon-to-be machines with Exahertz rtc interrupt frequencies. :-) PR: bin/16206 Submitted by: John Capo <jc@irbs.com> MFC after: 1 week
* Reduce field width for some columns so that the default output fits in <= 79schweikh2001-06-231-3/+3
| | | | | | | columns. 80 columns + newline is a problem for some terminals including syscons. Requested by: bde MFC after: 1 week
* Made all fields in default output be space separated. Run-togetherschweikh2001-06-191-11/+6
| | | | | | | | | | columns confuse the heck out of other apps trying to parse vmstat output (eg sscope). I made sure we're still <= 80 cols per line. Fixed warnings about unused vars and printf %format mismatches. Requested by: Eugene Aleynikov <eugenea@infospace.com> Reviewed by: joerg (implicitly) MFC after: 2 weeks
* Avoid the avm field joining the w field when avm is > 9.999.999 pagesschweikh2001-06-131-1/+1
| | | | | | | | which is slightly less than 4GB. To use a quote from someone who shall remain nameless "No one will ever need more than 4 GB" :-) But FreeBSD is prepared if we one day will. Requested by: Eugene Aleynikov <eugenea@infospace.com>
* Increase field width by one for 'fre' to accomodate today's memory sizes.schweikh2001-06-121-3/+3
| | | | | | | PR: 25267 Submitted by: Eugene Aleynikov <eugene@infospace.com> Reviewed by: joerg MFC after: 2 weeks
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-181-1/+0
|
* MAN[1-9] -> MAN.ru2001-03-271-2/+2
|
* fix usage statement (add missing [-n devs] option)alfred2001-02-221-4/+5
| | | | | | | Submitted by: Maxim Konovalov <maxim@macomnet.ru> Silence a warning by renaming the 'pgtok' #define to 'vmstat_pgtok' so as not to conflict with the 'pgtok' #define in sys/param.h
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+6
|
* Add mibs to hold the number of forks since boot. New mibs are:ume2001-01-231-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 Submitted by: Paul Herman <pherman@frenchfries.net> Reviewed by: alfred
* Document that the -z option is equivalent to 'sysctl vm.zone'.des2001-01-231-1/+5
|
* Use the vm.zone sysctl rather that grope through the zone allocator'sdes2001-01-231-52/+15
| | | | internal data structures.
* Update vm zone list traversal for changes made to kernel. Note that thismjacob2001-01-231-2/+6
| | | | | | is ultimately silly because no locks are held in user space while traversing the list via kvm_reads... really, this should use the sysctl interface which *is* protected by a lock in the kernel.
* Prepare for mdoc(7)NG.ru2000-12-191-5/+5
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Remove unneeded #include <sys/buf.h>phk2000-05-051-1/+0
|
* unifdef -Uvax -Uhp300 -Uluna68k -Umips -Utahoephk1999-09-011-48/+0
|
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Convert interrupt count from signed to unsigned and the totaln_hibma1999-07-261-4/+6
| | | | | | | | from signed long to unsigned lon long. PR: 12808 Submitted by: Kevin Day toasty@dragondata.com Reviewed by: bde
* Correct description of -c and -w optionskris1999-06-061-8/+10
| | | | | Inspired by: PR docs/11774 Submitted by: Chad R. Larson <chad@freeway.dcfinc.com>
* Backed out the previous commit, except for the parts that reducedbde1999-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).
* Sometime since this file was written, the list of kernel malloc typesimp1999-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.
* Move an option outside of a nested list and up a bit to live free amongkris1999-04-261-3/+3
| | | | its brothers and sisters.
* Fixed bitrot in usage message and disordering of options in previous commit.bde1999-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.
* Fixed disordering of options in previous commit.bde1999-02-151-4/+4
|
* Add -z option to vmstat to dump data from the zone allocatordillon1999-02-132-12/+77
|
* Fix vmstat display problems. The header printout wasn't quite right, andken1999-02-102-13/+10
| | | | | | | | | 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>
* Add a prioritization field to the devstat_add_entry() call so thatken1999-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
* Back out previous work-around for "vmstat -i" failing on ELFjdp1998-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".
* Work around some variables having N_UNDF types but valid values; thismsmith1998-10-241-2/+2
| | | | | makes vmstat work on ELF kernels again. Submitted by: Daniel Rock <rock@cs.uni-sb.de>
* Change the devstat generation number from an int to a long. The int-sizedken1998-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>
* vmstat shows all manually-specified devices rather then just the firstdillon1998-09-161-1/+6
| | | | three.
* Delete unused code. This has been obsoleted by the new devstat code.ken1998-09-161-271/+0
| | | | Reviewed by: imp
* Update system to new device statistics code.gibbs1998-09-153-127/+294
| | | | Submitted by: "Kenneth D. Merry" <ken@plutotech.com>
* Terminate the defdrives array correctly. (Shame, Rod!)msmith1998-09-091-1/+1
| | | | Submitted by: Scott Michel <scottm@cs.ucla.edu>
* Fixed printf format errors.bde1998-07-061-15/+20
|
* Support a couple of new "-s" stats.dyson1998-03-071-1/+3
|
* Const poisoning from ks_shortdesc.bde1997-12-051-2/+2
|
* struct kmemstats was renamed.phk1997-10-101-3/+3
|
* Make vmstat understand the dynamic malloc stuff. There are a numberphk1997-10-101-15/+23
| | | | of ugly hardcoded constants in there.
* Be more specific about -f/-t options (they're not yet implemented),dima1997-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.
* Use err(3). Add some %d to %ld changes.charnier1997-08-252-47/+38
|
* Cleanup inconsistencies in the manpage.steve1997-08-231-5/+7
| | | | | PR: docs/3709 Submitted by: Takahiro Yugawa <yugawa@orleans.rim.or.jp>
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Slight visual formatting change to the output so that:scrappy1997-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
OpenPOWER on IntegriCloud