Commit Graph

214 Commits

Author SHA1 Message Date
christos 3ceb6c1c20 warns=4, pass lint. 2006-10-17 15:13:08 +00:00
christos c384594e4f use howmany(), instead of open-coding the calculation. 2006-10-16 16:44:20 +00:00
yamt 243b5d4a07 increase a chance to fit within 80 char width consoles.
- use PRWORD for dovmstat as well.
- reduce number of drives shown by default from 3 to 2.
2006-09-27 12:35:08 +00:00
yamt 08c96f5c24 sync with kernel after yamt-pdpolicy merge. 2006-09-15 15:53:42 +00:00
kardel 0da8c70aed PR 34205: workaround struct timeval tv_sec not being SUS compliant issue (reported by Takeshi Nakayama) 2006-08-15 07:09:12 +00:00
simonb 01d9f1263a Dump some column widths. 2006-07-21 05:26:53 +00:00
kardel e386d70092 accept either "time_second" or "time" as kernel timevariable in
order to support common userland in enviroments where
timecounter kernels and non timecounter kernel co-exist
(e.g. xen & i386)
2006-07-09 06:43:16 +00:00
yamt aa1d51179e include evcnt.h rather than device.h. 2006-07-08 14:58:51 +00:00
kardel 75418af90c support timecounters (struct time gone, use time_second then) 2006-06-07 20:56:19 +00:00
christos e649ae6adc Coverity CID 884: Avoid NULL deref. 2006-05-02 22:19:12 +00:00
christos 10a7a5fd96 Coverity CID 885: Avoid NULL deref. 2006-05-02 22:13:29 +00:00
christos 9b0f17533c Coverity CID 886: Avoid NULL deref. 2006-05-02 21:40:06 +00:00
simonb 47890115bd Unwrap a not too long line. 2006-04-27 09:04:41 +00:00
yamt 1c625a0e79 remove unused files. 2006-04-21 13:45:42 +00:00
blymn 10df330c85 Prefix iostat structure elements with io_ 2006-04-20 12:13:51 +00:00
blymn 7d866d268b Update statistics reporting to use new kernel framework, rename dkstats*
to a more generic name since it no longer just deals with disk.
2006-04-14 13:12:37 +00:00
dsl 228802f437 Split dkreadstats() into dkreadstats(), tkreadstats() and cpureadstats().
Similarly for dkswap().
Allows code to only call one of these.
Rename struct _disk to _vminfo to be nearer its contents.
Change 'systat vm' so that it always shows the 'current' cpu times, even
after ':run' or ':boot' commands. The code in vmstat.c doesn't support :run.
2006-02-05 09:54:50 +00:00
nonaka 0827467dac Don't forget original allocated memory address. 2005-10-22 15:32:48 +00:00
chs 9c47d944e4 optimize pool_caches similarly to how I optimized pools before:
split the single list of pool cache groups into three lists:
completely full, partially full, and completely empty.
use LIST instead of TAILQ where appropriate.
2005-10-02 17:29:31 +00:00
blymn 9e306bafdf Remove message when no tape drives found 2005-09-10 11:10:21 +00:00
blymn 64e76e4ea0 Don't error when tape drives are not configured on a system. 2005-08-08 11:31:48 +00:00
blymn 71c77b437a Add support for tape statistics. 2005-08-07 12:23:20 +00:00
blymn 681d2bb37b Add support for gathering tape statistics. 2005-08-07 12:21:46 +00:00
lukem 829384f829 appease gcc -Wuninitialized 2005-06-02 04:34:57 +00:00
chs 3f15e64c3c rename "kbucket" to "kmembuckets", for greater clarity.
don't forget to update vmstat this time.
2005-05-30 23:04:53 +00:00
chs d5b80101e7 do not rely on the pre-evcnt interrupt counter kernel symbols being present.
if they do not exist, then interrupt stats are all in evcnts.
2005-05-22 14:00:59 +00:00
yamt 627b0d5099 remove anon related statistics which are no longer used. 2005-05-15 08:01:06 +00:00
wiz 416aba1dc6 Bump date for -t. 2005-03-10 16:29:04 +00:00
wiz 96b620b365 Add -t to usage. 2005-03-10 16:28:54 +00:00
he 5f8555bc7c Add a '-t' option to print the contents of the vmtotal structure,
possibly repeatedly.
2005-03-10 16:23:42 +00:00
dsl 2229b6a79b WARNS=3 2005-02-26 21:19:18 +00:00
simonb f14df71842 Remove a blank line. 2005-01-30 23:38:17 +00:00
wiz 15f1332a67 Sync with manpage (add -W, sort). 2005-01-26 13:42:07 +00:00
wiz 2ad86c0bf3 Sort options. Remove some unnecessary Bk/Ek. Add some commas. 2005-01-26 13:41:47 +00:00
simonb 048c86fdf0 Add a "wide" mode output (selected with -W) to show more information
about memory pools, including pool page size, flags and utilisation.
2005-01-26 13:07:32 +00:00
dsainty 555352630f Correct typo in an error message: allocatior -> allocator 2004-12-20 08:20:50 +00:00
dsl 0e378e4772 Add (unsigned char) cast to ctype functions 2004-11-05 19:56:34 +00:00
enami 226c6eda62 Make vmstat -s prints:
- uvmexp.pdre{anon,file,exec}.
- real number of namecache stats.
2004-10-15 21:29:03 +00:00
junyoung 85b95abd1e pidhash and pgrphash should have been removed from here as well when the
new pid allocator was committed 3/2003.
2004-02-28 05:14:55 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
wiz f582138c1b Uppercase CPU. 2004-02-13 10:11:56 +00:00
dbj 6ea7ce87e3 fixes to keep default output under 80 columns
reduce default number of disks to 3 from 4
adjust widths of cpu stats if one of them is 100%
always put spaces between # of processes runnable (from pr 12691)
2004-01-22 21:47:55 +00:00
simonb e74fba6f88 Extra columns appeared in one line of the "Memory statistics by type"
header in '94 and '97.  Grow the other line a little so that it looks
pretty again.
2003-09-28 23:31:48 +00:00
itojun 407df6861c realloc pedant 2003-09-19 07:08:50 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 0cd65be2b9 snprintf 2003-07-15 05:52:48 +00:00
simonb c595e9c78e No need to cast the third argument of ioctl() to "char *". 2003-07-02 12:47:00 +00:00
drochner 96b62d8a69 no need to #include <sys/dkstat.h> 2003-06-11 17:26:31 +00:00
dsl 8e5fd09823 Actually update man page for change to not show unused pools. 2003-05-06 10:17:02 +00:00
dsl 615387287b Make vmstat -m skip memory pools that have never been used - unless -v given.
Update man page to match.
2003-05-06 10:10:11 +00:00