aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/vmstat
Commit message (Collapse)AuthorAgeFilesLines
* Remove extraneous charactersCraig Rodrigues2015-12-231-2/+2
| | | | | | | | Noticed by: markj Reviewed by: allanjude Notes: svn path=/head/; revision=292646
* Some problems were introduced during the libxo-ification of vmstat, fix themAllan Jude2015-12-011-7/+17
| | | | | | | | | | | | | | | | | | | | | stop vmstat -i segfaulting remove duplicate header from vmstat -i do not pad the name of the interupt in encoded outputs fix stray % and missing } in the header for vmstat -i add outer container to vmstat -i add missing xo_flush in vmstat -i (when run with an interval or delay) add outer container to vmstat -m do not pad the name of malloc areans add outer container to vmstat -z do not pad the name of memory zones Reviewed by: rodrigc Approved by: bapt (mentor) Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4263 Notes: svn path=/head/; revision=291595
* Update dependencies after r291406 added libelf to libkvm.Bryan Drewery2015-12-011-0/+2
| | | | | | | | | | | Unfortunately filemon/meta mode tracks all indirect dependencies here since ld(1) is reading libelf when linking in libkvm. Churn would be reduced if this was able to be limited to direct dependencies. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291558
* Add a missing brace to fix vmstat -s output.Mark Johnston2015-11-211-1/+1
| | | | Notes: svn path=/head/; revision=291148
* Convert vmstat to use libxo.Craig Rodrigues2015-11-203-193/+339
| | | | | | | | | | | | | | This patch was based on this patch: https://github.com/Juniper/libxo/blob/master/patches/vmstat.patch by Phil Shafer at Juniper Networks, but updated to the latest vmstat code. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D3935 Notes: svn path=/head/; revision=291090
* Remove the v_cache_min and v_cache_max sysctls. They are unused and haveMark Johnston2015-09-111-2/+0
| | | | | | | | | | no effect. Reviewed by: alc Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=287640
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-42/+114
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=283595
| * \ Merge from head@274682Simon J. Gerraty2014-11-192-37/+70
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ \ Merge head from 7/28Simon J. Gerraty2014-08-191-1/+11
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync with HEAD.David E. O'Brien2013-02-081-0/+3
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Trim spurious colon.John Baldwin2015-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=283630
* | | | | | Export a list of VM objects in the system via a sysctl. The list can beJohn Baldwin2015-05-272-3/+137
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | examined via 'vmstat -o'. It can be used to determine which files are using physical pages of memory and how much each is using. Differential Revision: https://reviews.freebsd.org/D2277 Reviewed by: alc, kib MFC after: 2 weeks Sponsored by: Norse Corp, Inc. (forward porting to HEAD/10) Notes: svn path=/head/; revision=283624
* | | | | Use clock_gettime to measure the time that we spent asleep duringWill Andrews2015-01-231-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "vmstat -i" instead of assuming it's what we asked for. Submitted by: asomers MFC after: 1 week Sponsored by: Spectra Logic MFSpectraBSD: 1066751 on 2014/06/04 Notes: svn path=/head/; revision=277571
* | | | | Use CLOCK_UPTIME to get the uptime instead of CLOCK_MONOTONIC.Will Andrews2015-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: asomers MFC after: 1 week Sponsored by: Spectra Logic MFSpectraBSD: 1066740 on 2014/06/04 Notes: svn path=/head/; revision=277570
* | | | | Make "vmstat -i" respect the -c <count> and -i <interval> options together.Will Andrews2015-01-231-35/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: asomers MFC after: 1 week Sponsored by: Spectra Logic MFSpectraBSD: 1066735 on 2014/06/04 Notes: svn path=/head/; revision=277569
* | | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | | Replace update from -r271410 accidentally lost in -r273575.Kirk McKusick2014-10-261-3/+3
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=273709
* | | | Fix formatting of vmstat (1) so that it looks cleaner on standard 80Kirk McKusick2014-10-241-23/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | column displays. In particular it wraps far less often. Submitted by: Andy Kosela <akosela@andykosela.com> PR: 191976 Notes: svn path=/head/; revision=273575
* | | | Fix header output when -P is specified and (ncpus - 1) != maxid.Hiroki Sato2014-09-101-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: Hiroaki Shimizu PR: 152738 Notes: svn path=/head/; revision=271410
* | | | Update vmstat usage for last-argument count/wait parametersBenjamin Kaduk2014-08-082-11/+26
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Correct the usage in both the manpage and in usage() to indicate that the wait interval and repetition count may be given either with the respective -w/-c arguments, or as the final positional arguments. [0] The corresponding code to implement the positional arguments has been conditional on the (always-enabled) BACKWARD_COMPATIBILITY macro since the original 4.4-lite import. It's no longer reasonable to remove the functionality, so remove the macro and conditional instead. Note that multiple disks may be given on the command line. While here, sort arguments and apply minor mdoc fixes. PR: 184755 [0] Approved by: hrs (mentor, src committer) Notes: svn path=/head/; revision=269727
* | | Fix vmstat -M after r263620 renamed 'cnt' to 'vm_cnt'.Bryan Drewery2014-07-111-1/+11
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | This was showing as: vmstat: undefined symbols: _cnt To remain backwards compatible with older dumps, if 'vm_cnt' symbol is not found then try again with 'cnt'. Reported by: pho Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=268533
* | - Show page faults requiring I/O when -s invoked.Andrey Zonov2013-01-281-0/+3
|/ | | | | | | | Reviewed by: alc MFC after: 2 weeks Notes: svn path=/head/; revision=246034
* Garbage collect defunct nlist(3) symbols.Sergey Kandaurov2012-03-221-14/+8
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=233298
* In usr.bin/vmstat/vmstat.c, cast several printf field widths to int, andDimitry Andric2011-12-171-8/+10
| | | | | | | | | use printf format specifiers from inttypes.h for uint64_t's. MFC after: 1 week Notes: svn path=/head/; revision=228654
* sintrcnt/sintrnames is the address of the size, not the actual size.Sergey Kandaurov2011-07-181-2/+2
| | | | | | | | | | | Use them appropriately to fetch the actual size. That fixes vmstat -i with kvm backend. Submitted by: peter Approved by: re (kib) Notes: svn path=/head/; revision=224198
* - Remove the eintrcnt/eintrnames usage and introduce the concept ofAttilio Rao2011-07-181-8/+6
| | | | | | | | | | | | | | | | | | | sintrcnt/sintrnames which are symbols containing the size of the 2 tables. - For amd64/i386 remove the storage of intr* stuff from assembly files. This area can be widely improved by applying the same to other architectures and likely finding an unified approach among them and move the whole code to be MI. More work in this area is expected to happen fairly soon. No MFC is previewed for this patch. Tested by: pluknet Reviewed by: jhb Approved by: re (kib) Notes: svn path=/head/; revision=224187
* Remove duplicated header filesKevin Lo2011-06-241-1/+0
| | | | Notes: svn path=/head/; revision=223493
* Remove uptime validity check that hasn't been necessary since r151417Ed Maste2011-03-171-5/+1
| | | | | | | | switched to clock_gettime. vmstat will now not exit with an error if run on a system with 10 years of uptime. Notes: svn path=/head/; revision=219708
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-112-8/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Remove unused variableKevin Lo2010-11-201-1/+1
| | | | Notes: svn path=/head/; revision=215569
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-081-1/+0
| | | | | | | They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
* Add a new column to the output of vmstat -z to indicate the numberSean Bruno2010-06-151-4/+5
| | | | | | | | | | | | | | | | of times the system was forced to sleep when requesting a new allocation. Expand the debugger hook, db_show_uma, to display these results as well. This has proven to be very useful in out of memory situations when it is not known why systems have become sluggish or fail in odd ways. Reviewed by: rwatson alc Approved by: scottl (mentor) peter Obtained from: Yahoo Inc. Notes: svn path=/head/; revision=209215
* Allow sub-second interval timings for iostat and vmstat.Sean Bruno2010-05-212-6/+17
| | | | | | | | | | | | | | e.g. vmstat -w.5 iostat -w.5 Reviewed by: jhb Approved by: scottl (mentor) Obtained from: Yahoo Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=208389
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* When fetching sum stats (vmstat -s) from a crash dump, fetch per-CPU countsJohn Baldwin2009-10-291-0/+81
| | | | | | | | | | | and sum them to form the total counts. PR: bin/135893 Submitted by: Mikolaj Golub to my trociny of gmail MFC after: 1 week Notes: svn path=/head/; revision=198620
* Utilize calloc() instead of bzero'ing manually.Xin LI2009-02-211-8/+4
| | | | Notes: svn path=/head/; revision=188888
* Fix comment typo that managed to sneak in when I copy pasted someGiorgos Keramidas2008-11-041-1/+1
| | | | | | | comments & code from iostat. Notes: svn path=/head/; revision=184646
* Repeat vmstat header after window.rows instead of a hardcoded 20.Giorgos Keramidas2008-11-041-9/+69
| | | | | | | | | | | | | | | Use ioctl() to get the window size in vmstat(8), and force a new header to be prepended to the output every time the current window size changes. Change the number of lines before each header to the current lines of the terminal when the terminal is resized, so that the full terminal length can be used for output lines. Inspired by: svn change 175562 (same feature for iostat) Reviewed by: ru (who fixed some of my bugs too) MFC after: 1 week Notes: svn path=/head/; revision=184645
* Use kvm_getcptime(3) to fetch the global CPU time stats from a crashdumpJohn Baldwin2008-08-191-15/+14
| | | | | | | | | | since the 'cp_time' symbol doesn't exist in recent kernels. This fixes iostat and vmstat on crash dumps. MFC after: 1 week Notes: svn path=/head/; revision=181881
* Add forgotten -H, -h, and -P to usage().Ruslan Ermilov2008-04-101-1/+1
| | | | Notes: svn path=/head/; revision=178063
* Fix some boolean logic errors. && vs & and other sillyness. *blush*Peter Wemm2008-01-181-3/+3
| | | | | | | | | This would prevent it from skipping non-present cpus in -P output. Submitted by: Pieter de Goeje <pieter@degoeje.nl> Notes: svn path=/head/; revision=175465
* Add the -H, -h and -P flags to vmstat. -P causes per-cpu output ofPeter Wemm2007-12-133-20/+207
| | | | | | | | | user/system/idle stats. -h feeds the memory column through humanize_number() to reduce the amount of column overflowing. -H turns this off. -h is turned on by default if stdout is a tty. Notes: svn path=/head/; revision=174573
* Add a counter for the total number of pages cached and support forAlan Cox2007-07-271-0/+2
| | | | | | | | | reporting the value of this counter in the program "vmstat". Approved by: re (rwatson) Notes: svn path=/head/; revision=171633