summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
Commit message (Collapse)AuthorAgeFilesLines
* The boottime variable in sys/kern/kern_tc.c is a struct timeval, not atmm2002-08-091-3/+4
| | | | | time_t, so do not use the latter as type when retrieving the variable via libkvm. This should fix vmstat on sparc64.
* The .Nm utilitycharnier2002-07-141-2/+5
|
* Replace /kernel with /boot/kernel/kernel.joe2002-05-091-3/+3
| | | | | PR: docs/37757 Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
* Remove malloc_type's ks_limit.jeff2002-04-151-71/+17
| | | | | | | | | | | | Updated the kmemzones logic such that the ks_size bitmap can be used as an index into it to report the size of the zone used. Create the kern.malloc sysctl which replaces the kvm mechanism to report similar data. This will provide an easy place for statistics aggregation if malloc_type statistics become per cpu data. Add some code ifdef'd under MALLOC_PROFILING to facilitate a tool for sizing the malloc buckets.
* Fix a missed conversion of lld to llu for the uint64_t ks_calls and castasmodai2002-04-131-6/+7
| | | | | | | | | | | to unsigned long long. Don't be too overzealous with the printing of ks_calls in the total statistics, cut back from 20 to 13 positions to print (which should last a couple of years easily (20 digits is enough for 3168 years of calls at a measly billion (10^9) calls per second.)). Submitted by: bde
* Cast totreq to unsigned long long, as needed on 64-bit machines.asmodai2002-04-081-1/+2
| | | | Pointed out by: jeff
* Change totreq to uint64_t from a long (the PR has an int64_t, which didn'tasmodai2002-04-081-3/+4
| | | | | | | | | | make sense to me) and change the printf argument from %8ld to %20llu to accompany the printing of the totals. Realigned the header printed above it as well. PR: 32342 Submitted by: ryan beasley <ryanb@goddamnbastard.org> Reviewed by: jeff, Tim J Robbins
* remove __Pimp2002-03-221-16/+16
|
* Remove the kmembuckets stats in preparation for the UMA commit.jeff2002-03-191-68/+9
|
* Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.markm2002-02-081-1/+0
|
* WARNS=2 fixes, but set NO_WERROR, as there are some HardToFix(tm)markm2001-12-112-55/+63
| | | | warnings originating in system headers.
* 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>
OpenPOWER on IntegriCloud