OpenBSD CVS

CVS log for src/usr.bin/vmstat/vmstat.c


[BACK] Up to [local] / src / usr.bin / vmstat

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.158 / (download) - annotate - [select for diffs], Wed May 1 12:54:27 2024 UTC (2 weeks, 3 days ago) by mpi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.157: +6 -1 lines
Diff to previous 1.157 (colored)

Add per-CPU caches to the pmemrange allocator.

The caches are used primarily to reduce contention on uvm_lock_fpageq() during
concurrent page faults.  For the moment only uvm_pagealloc() tries to get a
page from the current CPU's cache.  So on some architectures the caches are
also used by the pmap layer.

Each cache is composed of two magazines, design is borrowed from jeff bonwick
vmem's paper and the implementation is similar to the one of pool_cache from
dlg@.  However there is no depot layer and magazines are refilled directly by
the pmemrange allocator.

This version includes splvm()/splx() dances because the buffer cache flips
buffers in interrupt context.  So we have to prevent recursive accesses to
per-CPU magazines.

Tested by naddy@, solene@, krw@, robert@, claudio@ and Laurence Tratt.

ok claudio@, kettenis@

Revision 1.157 / (download) - annotate - [select for diffs], Fri Apr 19 10:22:51 2024 UTC (4 weeks, 1 day ago) by mpi
Branch: MAIN
Changes since 1.156: +0 -5 lines
Diff to previous 1.156 (colored)

Revert per-CPU caches a double-free has been found by naddy@.

Revision 1.156 / (download) - annotate - [select for diffs], Wed Apr 17 13:12:58 2024 UTC (4 weeks, 3 days ago) by mpi
Branch: MAIN
Changes since 1.155: +6 -1 lines
Diff to previous 1.155 (colored)

Add per-CPU caches to the pmemrange allocator.

The caches are used primarily to reduce contention on uvm_lock_fpageq() during
concurrent page faults.  For the moment only uvm_pagealloc() tries to get a
page from the current CPU's cache.  So on some architectures the caches are
also used by the pmap layer.

Each cache is composed of two magazines, design is borrowed from jeff bonwick
vmem's paper and the implementation is similar to the one of pool_cache from
dlg@.  However there is no depot layer and magazines are refilled directly by
the pmemrange allocator.

Tested by robert@, claudio@ and Laurence Tratt.

ok kettenis@

Revision 1.155 / (download) - annotate - [select for diffs], Sun Dec 4 23:50:50 2022 UTC (17 months, 2 weeks ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.154: +1 -2 lines
Diff to previous 1.154 (colored)

userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument.  We can
handle this case with the "default" failure case with no loss of
legibility.  Hence, remove all the redundant "case '?':" lines.

Prompted by dlg@.  With help from dlg@ and millert@.

Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2

ok naddy@ millert@ dlg@

Revision 1.154 / (download) - annotate - [select for diffs], Tue Jul 26 14:49:13 2022 UTC (21 months, 3 weeks ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.153: +5 -20 lines
Diff to previous 1.153 (colored)

Remove "select collisions" output from vmstat(8).

While here, use NULL instead of "" as name list terminator.

OK mpi@ cheloha@

Revision 1.153 / (download) - annotate - [select for diffs], Tue Feb 22 17:35:01 2022 UTC (2 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.152: +1 -2 lines
Diff to previous 1.152 (colored)

MAXCOMLEN is no longer needed in these programs, so remove the annotation
from sys/param.h include lines, or remove the include lines entirely if
it this was the least requirement.
ok millert

Revision 1.152 / (download) - annotate - [select for diffs], Sun Feb 20 00:09:29 2022 UTC (2 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.151: +2 -1 lines
Diff to previous 1.151 (colored)

sys/proc.h requires sys/signal.h (will become visible when sys/param.h
is removed)

Revision 1.151 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:20 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.150: +2 -2 lines
Diff to previous 1.150 (colored)

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <ashton@fagg.id.au>

ok deraadt@ semarie@ claudio@

Revision 1.150 / (download) - annotate - [select for diffs], Thu Nov 28 16:27:26 2019 UTC (4 years, 5 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.149: +4 -4 lines
Diff to previous 1.149 (colored)

ks_mapblocks is gone

Revision 1.149 / (download) - annotate - [select for diffs], Mon Oct 14 19:22:17 2019 UTC (4 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.148: +12 -8 lines
Diff to previous 1.148 (colored)

pledge() won't work but we can use unveil() to reduce filesystem access
in these 3 related programs (they borrow parts of each other using .PATH)
Hopefully no regressions, ktrace checks by myself and mestre

Revision 1.148 / (download) - annotate - [select for diffs], Mon Oct 14 14:40:00 2019 UTC (4 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.147: +6 -8 lines
Diff to previous 1.147 (colored)

some knf, preparing for other changes

Revision 1.147 / (download) - annotate - [select for diffs], Mon Aug 12 11:54:32 2019 UTC (4 years, 9 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.146: +2 -2 lines
Diff to previous 1.146 (colored)

Add the CP_SPIN time to the sum of system time reported.
OK kettenis@

Revision 1.146 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:05 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.145: +23 -22 lines
Diff to previous 1.145 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.145 / (download) - annotate - [select for diffs], Tue Jun 19 22:35:07 2018 UTC (5 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.144: +1 -3 lines
Diff to previous 1.144 (colored)

Rename some unused fields in struct uvmexp to
unusedNN.

Missing man page bits pointed out by
jmc@. Ports source scan by sthen@.

ok deraadt@ guenther@

Revision 1.144 / (download) - annotate - [select for diffs], Thu Apr 26 15:55:14 2018 UTC (6 years ago) by guenther
Branch: MAIN
Changes since 1.143: +10 -9 lines
Diff to previous 1.143 (colored)

Prefer <fcntl.h> over <sys/fcntl.h> in userland
While here, delete some extra #includes and apply style(9) sort rules.

ok deraadt@ krw@ mpi@

Revision 1.143 / (download) - annotate - [select for diffs], Tue Apr 10 06:34:04 2018 UTC (6 years, 1 month ago) by mlarkin
Branch: MAIN
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored)

typo: "anon's" -> "anons"

ok jmc, krw, deraadt

Revision 1.142 / (download) - annotate - [select for diffs], Wed May 10 08:37:15 2017 UTC (7 years ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.141: +6 -7 lines
Diff to previous 1.141 (colored)

There's no difference between short and long sleepers, so just print
their number.

While here print the amount of memory in M instead of K to make the output
fit it 80 columns.

Reminded by tb@, ok visa@

Revision 1.141 / (download) - annotate - [select for diffs], Sun Aug 14 22:47:26 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.140: +5 -6 lines
Diff to previous 1.140 (colored)

Convert %q to %ll and cast opaque system values to long long.
Use uint64_t for the KERN_INTRCNT_CNT sysctl()

ok krw@

Revision 1.140 / (download) - annotate - [select for diffs], Wed Jul 27 14:44:59 2016 UTC (7 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.139: +5 -5 lines
Diff to previous 1.139 (colored)

increase the size of forkstat fields to accomodate large values

Revision 1.139 / (download) - annotate - [select for diffs], Thu Dec 24 03:25:08 2015 UTC (8 years, 4 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.138: +8 -8 lines
Diff to previous 1.138 (colored)

Replace bzero with memset. No binary change.

ok tb@

Revision 1.138 / (download) - annotate - [select for diffs], Sat Apr 18 18:28:38 2015 UTC (9 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.137: +8 -2 lines
Diff to previous 1.137 (colored)

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert

Revision 1.137 / (download) - annotate - [select for diffs], Fri Jan 30 19:00:56 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.136: +12 -5 lines
Diff to previous 1.136 (colored)

improve argv checking. drive name, if given, must match something.
convert atoi to strtonum.
ok deraadt

Revision 1.136 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:14 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.135: +2 -2 lines
Diff to previous 1.135 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.135 / (download) - annotate - [select for diffs], Fri Dec 19 20:18:15 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.134: +2 -11 lines
Diff to previous 1.134 (colored)

no need to kvm the palloc. the pgsize is more correctly accessed via pool.

Revision 1.134 / (download) - annotate - [select for diffs], Sun Nov 23 04:34:48 2014 UTC (9 years, 5 months ago) by guenther
Branch: MAIN
Changes since 1.133: +1 -2 lines
Diff to previous 1.133 (colored)

<sys/buf.h> isn't actually needed here

ok tedu@

Revision 1.133 / (download) - annotate - [select for diffs], Mon Sep 15 19:08:22 2014 UTC (9 years, 8 months ago) by miod
Branch: MAIN
Changes since 1.132: +2 -2 lines
Diff to previous 1.132 (colored)

Remove non-standard <sys/dkstat.h> header. It has not contained anything
related to disk stastics for almost 17 years, and the remaining
userland-visible defines duplicate those found in <sys/sched.h>.

Move the remaining _KERNEL defines to <sys/tty.h> where they belong, and
update all users to cope with this.

ok kettenis@

Revision 1.132 / (download) - annotate - [select for diffs], Sun Jul 13 21:13:51 2014 UTC (9 years, 10 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.131: +3 -1 lines
Diff to previous 1.131 (colored)

Display zero page hit and miss counters in vmstat -s.

ok deraadt@

Revision 1.131 / (download) - annotate - [select for diffs], Tue Jul 8 17:19:26 2014 UTC (9 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.130: +1 -4 lines
Diff to previous 1.130 (colored)

decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h
don't need to be married.
ok guenther miod beck jsing kettenis

Revision 1.130 / (download) - annotate - [select for diffs], Wed Jul 2 07:16:29 2014 UTC (9 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.129: +2 -1 lines
Diff to previous 1.129 (colored)

populate pool npages, as per src/sys/kern/subr_pool.c r1.135

Revision 1.129 / (download) - annotate - [select for diffs], Wed Jul 2 00:12:34 2014 UTC (9 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.128: +34 -8 lines
Diff to previous 1.128 (colored)

info about pools is currently given to userland by copying each
pools struct out. however, struct pool in the kernel contains lots
of things that userland probably isnt interested in, like actual
mutexes, and probably shouldnt get easy access to, like pointers
to kernel memory via all the lists/trees.

this implements a kinfo_pool structure that has only the data that
userland needs to know about. it cuts the sysctl code over to
building it from struct pool as required and copying that out
instead, and cuts userland over to only handling kinfo_pool.

the only problem with this is vmstat, which can read kernel images
via kvm, which needs some understanding of struct pool. to cope,
the struct pool definition is guarded by if defined(_KERNEL) ||
defined(_LIBKVM) as inspired by sysctl which needs to do the same
thing sometimes. struct pool itself is generally not visible to
userland though, which is good.

matthew@ suggested struct kinfo_pool instead of struct pool_info.
the kinfo prefix has precedent.
lots of people liked this.

Revision 1.128 / (download) - annotate - [select for diffs], Tue Apr 8 14:04:11 2014 UTC (10 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.127: +5 -2 lines
Diff to previous 1.127 (colored)

Use VM_UVMEXP instead of VM_METER for memory usages and directly
include <sys/vmmeter.h> where it is needed instead of relying on
it being included by <uvm/uvm_extern.h>.

miod@ likes it, ok guenther@

Revision 1.127 / (download) - annotate - [select for diffs], Tue Nov 26 21:08:12 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.126: +2 -2 lines
Diff to previous 1.126 (colored)

unsigned char casts for ctype
ok okan

Revision 1.126 / (download) - annotate - [select for diffs], Wed Nov 13 22:26:02 2013 UTC (10 years, 6 months ago) by chl
Branch: MAIN
Changes since 1.125: +2 -4 lines
Diff to previous 1.125 (colored)

remove unused variables

ok mikeb@ bluhm@

Revision 1.125 / (download) - annotate - [select for diffs], Thu Oct 31 02:00:11 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.124: +1 -2 lines
Diff to previous 1.124 (colored)

sometimes we find .h we no longer need

Revision 1.124 / (download) - annotate - [select for diffs], Tue Oct 8 03:04:17 2013 UTC (10 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.123: +14 -25 lines
Diff to previous 1.123 (colored)

Obtain the uptime of the running system using the new CLOCK_UPTIME,
so that averages/rates are over the actual time-running-not-suspended.
For kernel cores, peek at the 'time_uptime' and 'naptime' variables.

original report by and ok mlarkin@

Revision 1.123 / (download) - annotate - [select for diffs], Thu Aug 22 04:43:40 2013 UTC (10 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

Correct format string mismatches turned up by -Wformat=2

suggestions and ok millert@

Revision 1.122 / (download) - annotate - [select for diffs], Thu Jul 18 08:42:50 2013 UTC (10 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.121: +1 -5 lines
Diff to previous 1.121 (colored)

There is no uvm_km_pages_free in our kernel anymore.  The corresponding
lines in dopool_sysctl() have been removed from vmstat.c revision
1.116.  Remove uvm_km_pages_free from dopool_kvm() to allow analysing
a core dump.
OK guenther@ miod@

Revision 1.121 / (download) - annotate - [select for diffs], Tue May 14 20:39:25 2013 UTC (11 years ago) by miod
Branch: MAIN
Changes since 1.120: +1 -3 lines
Diff to previous 1.120 (colored)

Don't display swapin/swapout uvmexp fields

Revision 1.120 / (download) - annotate - [select for diffs], Tue Mar 26 21:13:55 2013 UTC (11 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.119: +4 -4 lines
Diff to previous 1.119 (colored)

i broke it. tailq is now simpleq in pool.
found the hard way by otto.

Revision 1.119 / (download) - annotate - [select for diffs], Thu Apr 12 12:33:04 2012 UTC (12 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.118: +4 -4 lines
Diff to previous 1.118 (colored)

remove rfork(); ok guenther miod

Revision 1.118 / (download) - annotate - [select for diffs], Fri Nov 19 18:35:16 2010 UTC (13 years, 6 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.117: +1 -9 lines
Diff to previous 1.117 (colored)

Make KERN_CPTIME return an avarage number of ticks across all CPUs
tedu agreed with an idea, tested by Luis Useche and me; ok deraadt

Revision 1.117 / (download) - annotate - [select for diffs], Sun Aug 1 02:51:03 2010 UTC (13 years, 9 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.116: +2 -2 lines
Diff to previous 1.116 (colored)

remove unused variable

ok thib@

Revision 1.116 / (download) - annotate - [select for diffs], Thu Jul 22 17:31:39 2010 UTC (13 years, 10 months ago) by thib
Branch: MAIN
Changes since 1.115: +1 -13 lines
Diff to previous 1.115 (colored)

Remove the VM_KMPAGESFREE sysctl. After the pmemrange
changes it was returing a constant 0, changing to cope
with those changes makes less sense then just removing
as it provides the user with no usefull information.

sthen@ grepped the port's tree for me and found not hits,
thanks!

OK deraadt@, matthew@

Revision 1.115 / (download) - annotate - [select for diffs], Tue Jul 20 19:43:19 2010 UTC (13 years, 10 months ago) by lum
Branch: MAIN
Changes since 1.114: +2 -17 lines
Diff to previous 1.114 (colored)

Remove setresguid since it is no longer needed.
ok matthew@ millert@ deraadt@

Revision 1.114 / (download) - annotate - [select for diffs], Sun Nov 22 22:22:14 2009 UTC (14 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.113: +8 -3 lines
Diff to previous 1.113 (colored)

don't repeat the banner if not a tty.
add a -c count option to netstat.
tweak spacing to not smear fields in vmstat.
ok deraadt sthen

Revision 1.113 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:49 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.112: +1 -15 lines
Diff to previous 1.112 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.112 / (download) - annotate - [select for diffs], Wed Sep 30 19:39:34 2009 UTC (14 years, 7 months ago) by naddy
Branch: MAIN
Changes since 1.111: +13 -15 lines
Diff to previous 1.111 (colored)

Use guaranteed 64-bit arithmetic for the name lookup statistics and
zap the PCT() macro that was a holdover from before we had prototypes.
ok gilles@, deraadt@

Revision 1.111 / (download) - annotate - [select for diffs], Wed Oct 8 17:47:28 2008 UTC (15 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored)

use (unsigned) in rate calculation for > 2 billion interrupts.  This will
do until when we tweak struct uvmexp to have unsigned 64 bit counters,
and when we do, it will not break.
from PR 4046, ok millert

Revision 1.110 / (download) - annotate - [select for diffs], Mon Sep 8 09:06:25 2008 UTC (15 years, 8 months ago) by otto
Branch: MAIN
Changes since 1.109: +4 -4 lines
Diff to previous 1.109 (colored)

"InUse" is much more interesting than "Releases" for pools. ok beck@
deraadt@ art@

Revision 1.109 / (download) - annotate - [select for diffs], Sun Mar 16 11:11:59 2008 UTC (16 years, 2 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

use ellipsis to show that more than one disk is allowed

ok jmc@

Revision 1.108 / (download) - annotate - [select for diffs], Sun Dec 30 13:29:52 2007 UTC (16 years, 4 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored)

minor improvement on the diff to r1.106

ok jsing@

Revision 1.107 / (download) - annotate - [select for diffs], Sat Dec 15 03:43:41 2007 UTC (16 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.106: +17 -35 lines
Diff to previous 1.106 (colored)

change over last few bits to use sysctl(3) if possible, and make this
not setgid kmem (hurray!)
ok tedu, tested jsg

Revision 1.106 / (download) - annotate - [select for diffs], Fri Oct 26 14:15:25 2007 UTC (16 years, 6 months ago) by sobrado
Branch: MAIN
Changes since 1.105: +9 -9 lines
Diff to previous 1.105 (colored)

patch to improve vmstat(8) output:
  - the "fre" column width is increased
  - adds a whitespace between the "avm" and "fre" columns
  - aligns the "memory" and "traps" labels with their column sets

ok millert@

Revision 1.105 / (download) - annotate - [select for diffs], Thu Sep 13 22:30:51 2007 UTC (16 years, 8 months ago) by cloder
Branch: MAIN
Changes since 1.104: +4 -3 lines
Diff to previous 1.104 (colored)

Use a sig_atomic_t instead of an int when setting it from a signal handler

Revision 1.104 / (download) - annotate - [select for diffs], Mon Oct 2 23:03:56 2006 UTC (17 years, 7 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.103: +4 -4 lines
Diff to previous 1.103 (colored)

Fix error messages, okay ray@ deraadt@

Revision 1.103 / (download) - annotate - [select for diffs], Fri Mar 31 18:19:38 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.102: +6 -6 lines
Diff to previous 1.102 (colored)

spacing

Revision 1.102 / (download) - annotate - [select for diffs], Fri Mar 31 04:06:13 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.101: +37 -41 lines
Diff to previous 1.101 (colored)

lint-driven cleanup.  nothing too scary in this diff.

Revision 1.101 / (download) - annotate - [select for diffs], Mon Mar 13 19:29:26 2006 UTC (18 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.100: +13 -13 lines
Diff to previous 1.100 (colored)

delint; from David Hill

Revision 1.100 / (download) - annotate - [select for diffs], Thu Feb 23 06:32:11 2006 UTC (18 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.99: +2 -4 lines
Diff to previous 1.99 (colored)

remove unused variable

Revision 1.99 / (download) - annotate - [select for diffs], Sat Feb 11 16:46:59 2006 UTC (18 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.98: +4 -4 lines
Diff to previous 1.98 (colored)

namelist must be NULL terminated, plus some cleanup after mickey

ok mickey@

Revision 1.98 / (download) - annotate - [select for diffs], Tue Jan 31 18:24:56 2006 UTC (18 years, 3 months ago) by mickey
Branch: MAIN
Changes since 1.97: +34 -4 lines
Diff to previous 1.97 (colored)

include uvm_km_pages_free into the pool accounting as it is the main consumer of it; feedback from millert@ and tedu@ ok

Revision 1.97 / (download) - annotate - [select for diffs], Wed Sep 28 00:54:05 2005 UTC (18 years, 7 months ago) by pedro
Branch: MAIN
Changes since 1.96: +3 -2 lines
Diff to previous 1.96 (colored)

make -s print information about kmapent as well, reminded by deraadt@

Revision 1.96 / (download) - annotate - [select for diffs], Mon Jul 4 01:54:10 2005 UTC (18 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.95: +12 -10 lines
Diff to previous 1.95 (colored)

make these use setres[ug]id for simple privilege dropping;
ok deraadt@ millert@ moritz@

Revision 1.95 / (download) - annotate - [select for diffs], Thu Apr 21 04:42:56 2005 UTC (19 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.94: +3 -2 lines
Diff to previous 1.94 (colored)

print out fpu ctx switches count

Revision 1.94 / (download) - annotate - [select for diffs], Fri Dec 24 22:38:22 2004 UTC (19 years, 4 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.93: +3 -25 lines
Diff to previous 1.93 (colored)

In vmstat -i, stop walking the kernel "allevents" evcnt chain, as they are
not incremented anymore. Kernel-side code will be removed in a few weeks.

Revision 1.93 / (download) - annotate - [select for diffs], Sun Nov 28 14:05:24 2004 UTC (19 years, 5 months ago) by miod
Branch: MAIN
Changes since 1.92: +8 -76 lines
Diff to previous 1.92 (colored)

Stop looking at intrcnt[] for vmstat -i; this means vmstat -i only works
on live kernels now, though.
ok deraadt@

Revision 1.92 / (download) - annotate - [select for diffs], Tue Nov 9 23:20:18 2004 UTC (19 years, 6 months ago) by pedro
Branch: MAIN
Changes since 1.91: +5 -7 lines
Diff to previous 1.91 (colored)

use warn() instead of printf() + strerror()
ok hshoexer@ jaredy@ deraadt@

Revision 1.91 / (download) - annotate - [select for diffs], Thu Sep 23 22:55:06 2004 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.90: +10 -10 lines
Diff to previous 1.90 (colored)

do not shrink the field width...

Revision 1.90 / (download) - annotate - [select for diffs], Thu Sep 23 21:09:39 2004 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.89: +25 -19 lines
Diff to previous 1.89 (colored)

adapt to KERN_INTRCNT_CNT becoming a quad; ok tedu, and pulling in some
changes written by danh

Revision 1.89 / (download) - annotate - [select for diffs], Fri Jul 2 09:12:37 2004 UTC (19 years, 10 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.88: +8 -5 lines
Diff to previous 1.88 (colored)

Do not divide by zero in vmstat -t; Nikos Ntarmos.

Revision 1.88 / (download) - annotate - [select for diffs], Mon Jun 28 21:49:35 2004 UTC (19 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

add -vz to usage();

Revision 1.87 / (download) - annotate - [select for diffs], Mon Jun 28 01:45:51 2004 UTC (19 years, 10 months ago) by aaron
Branch: MAIN
Changes since 1.86: +29 -100 lines
Diff to previous 1.86 (colored)

Remove special #if defined(__i386__) code from systat and vmstat.  We now use
sysctl to fetch interrupt counters on all architectures.  Also add new '-z'
flag to vmstat which means show all devices, even those that have not yet
generated an interrupt.  deraadt@ tholo@ drahn@ millert@ ok

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jun 14 00:39:33 2004 UTC (19 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored)

remove debug message

Revision 1.85 / (download) - annotate - [select for diffs], Mon Jun 14 00:38:02 2004 UTC (19 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.84: +28 -25 lines
Diff to previous 1.84 (colored)

let vmstat -i still work on older kernels; spotted by tholo

Revision 1.84 / (download) - annotate - [select for diffs], Fri Jun 11 16:09:08 2004 UTC (19 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.83: +12 -2 lines
Diff to previous 1.83 (colored)

div etime by ncpu

Revision 1.83 / (download) - annotate - [select for diffs], Fri Jun 11 05:54:55 2004 UTC (19 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.82: +35 -9 lines
Diff to previous 1.82 (colored)

on i386 machines, attempt to peek inside apic_intrhand[] as well, so that
MP machines get interrupt counters.  will be replaced by a MI subsystem
one day.  most code from drahn, few final bugs fixed by me

Revision 1.82 / (download) - annotate - [select for diffs], Sun Feb 15 02:45:47 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.81: +4 -3 lines
Diff to previous 1.81 (colored)

new arg to disk_unbusy, to record separate read/write statistics.
looked at by various, testing henning@ mcbride@ dan weeks
mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>

Revision 1.81 / (download) - annotate - [select for diffs], Thu Jan 15 20:39:33 2004 UTC (20 years, 4 months ago) by otto
Branch: MAIN
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored)

Fix printf format string. ok tedu@

Revision 1.80 / (download) - annotate - [select for diffs], Mon Jul 28 06:16:35 2003 UTC (20 years, 9 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

fix rcsid

Revision 1.79 / (download) - annotate - [select for diffs], Fri Jul 25 21:25:29 2003 UTC (20 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored)

context switches and interrupts are traps, not faults.  align cpu field a
little better.  some man page pretty from jmc@ and ok millert@

Revision 1.78 / (download) - annotate - [select for diffs], Wed Jun 25 21:18:08 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

protos

Revision 1.77 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:22 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.76: +2 -6 lines
Diff to previous 1.76 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.76 / (download) - annotate - [select for diffs], Mon May 19 05:17:21 2003 UTC (21 years ago) by art
Branch: MAIN
Changes since 1.75: +1 -78 lines
Diff to previous 1.75 (colored)

kill dead (if 0) code.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Feb 24 00:28:37 2003 UTC (21 years, 2 months ago) by grange
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

Fix copy/paste typo
art@ ok

Revision 1.74 / (download) - annotate - [select for diffs], Mon Jan 13 06:06:13 2003 UTC (21 years, 4 months ago) by art
Branch: MAIN
Changes since 1.73: +88 -1 lines
Diff to previous 1.73 (colored)

Half-done conversion of vmstat -i to sysctls.
The evcnt stuff is left just like in the kvm version.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Dec 16 01:57:04 2002 UTC (21 years, 5 months ago) by tdeval
Branch: MAIN
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored)

Make systat(1), iostat(8) and vmstat(8) automatically update their disk
statistics when a device is added/removed.  ok deraadt@

Revision 1.72 / (download) - annotate - [select for diffs], Tue Sep 17 19:37:40 2002 UTC (21 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.71: +24 -30 lines
Diff to previous 1.71 (colored)

ansi

Revision 1.71 / (download) - annotate - [select for diffs], Thu Sep 5 04:05:53 2002 UTC (21 years, 8 months ago) by art
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

Print uvmexp.zeropages.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Jun 19 08:45:52 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.69: +23 -23 lines
Diff to previous 1.69 (colored)

mark which nlist[] kmem entries are not needed in the sysctl case, and which are

Revision 1.69 / (download) - annotate - [select for diffs], Wed May 29 09:23:25 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

more snprintf

Revision 1.68 / (download) - annotate - [select for diffs], Fri Mar 15 19:11:01 2002 UTC (22 years, 2 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.67: +1 -3 lines
Diff to previous 1.67 (colored)

No more need to define __POOL_EXPOSE

Revision 1.67 / (download) - annotate - [select for diffs], Tue Mar 12 00:59:48 2002 UTC (22 years, 2 months ago) by ho
Branch: MAIN
Changes since 1.66: +6 -6 lines
Diff to previous 1.66 (colored)

This makes things line up better. millert@ concurs.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:58 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.65: +14 -14 lines
Diff to previous 1.65 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Feb 1 14:31:19 2002 UTC (22 years, 3 months ago) by art
Branch: MAIN
Changes since 1.64: +13 -3 lines
Diff to previous 1.64 (colored)

Add a verbose flag. Print unused memory types when verbose.
Don't print unused pools when not verbose.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Jan 21 17:30:38 2002 UTC (22 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.63: +13 -12 lines
Diff to previous 1.63 (colored)

s/deamon/daemon/

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jan 15 22:40:38 2002 UTC (22 years, 4 months ago) by art
Branch: MAIN
Changes since 1.62: +11 -2 lines
Diff to previous 1.62 (colored)

Make vmstat -m output the same for both sysctl and kvm versions.
Plus a minor simplification in preparation for a future change.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:17 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.61: +14 -14 lines
Diff to previous 1.61 (colored)

kill more registers

millert@ ok

Revision 1.61 / (download) - annotate - [select for diffs], Tue Nov 6 19:20:15 2001 UTC (22 years, 6 months ago) by art
Branch: MAIN
Changes since 1.60: +1 -2 lines
Diff to previous 1.60 (colored)

New vm includes.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Sep 16 01:27:55 2001 UTC (22 years, 8 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.59: +7 -5 lines
Diff to previous 1.59 (colored)

%llu instead of %qu and explicit casts.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Aug 12 12:03:03 2001 UTC (22 years, 9 months ago) by heko
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

#(endif|else) foo is incorrect, make it #endif /* foo */
deraadt@ ok

Revision 1.58 / (download) - annotate - [select for diffs], Sat Jul 28 05:36:18 2001 UTC (22 years, 9 months ago) by pvalchev
Branch: MAIN
Changes since 1.57: +5 -2 lines
Diff to previous 1.57 (colored)

Wall cleanup

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jun 27 06:16:50 2001 UTC (22 years, 10 months ago) by art
Branch: MAIN
Changes since 1.56: +1 -86 lines
Diff to previous 1.56 (colored)

UVM is no longer an option

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jun 24 20:30:52 2001 UTC (22 years, 10 months ago) by angelos
Branch: MAIN
Changes since 1.55: +179 -88 lines
Diff to previous 1.55 (colored)

Fix logic, add some more sysctl stuff. The only reason vmstat is still
setgid is because of the -i information (Theo needs to fix that for
all archs).

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jun 24 16:05:33 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.54: +58 -8 lines
Diff to previous 1.54 (colored)

Use sysctl for pool data.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jun 23 21:59:44 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.53: +69 -53 lines
Diff to previous 1.53 (colored)

Break out pool printing into a separate function.

Revision 1.53 / (download) - annotate - [select for diffs], Fri May 11 14:35:29 2001 UTC (23 years ago) by deraadt
Branch: MAIN
Changes since 1.52: +28 -72 lines
Diff to previous 1.52 (colored)

cleanup

Revision 1.52 / (download) - annotate - [select for diffs], Fri May 11 06:46:40 2001 UTC (23 years ago) by angelos
Branch: MAIN
Changes since 1.51: +101 -11 lines
Diff to previous 1.51 (colored)

Use sysctl(3) to retrieve nchstats, forkstat, nselcoll, and kmemstats
if the "default" files (running system) were specified for the ksyms
and memory dump. Eventually, it won't be necessary for vmstat to be
privileged.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Apr 30 13:54:51 2001 UTC (23 years ago) by art
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

right value for X_NSELCOLL

Revision 1.50 / (download) - annotate - [select for diffs], Mon Apr 30 12:07:30 2001 UTC (23 years ago) by art
Branch: MAIN
Changes since 1.49: +94 -57 lines
Diff to previous 1.49 (colored)

Ooops! Undo breakage I introduced in 1.48.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Apr 30 09:39:27 2001 UTC (23 years ago) by art
Branch: MAIN
Changes since 1.48: +5 -5 lines
Diff to previous 1.48 (colored)

CLSIZE is 1 on all archs and will go away soon.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Mar 21 23:51:47 2001 UTC (23 years, 2 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.47: +157 -97 lines
Diff to previous 1.47 (colored)

Add printing of pool statistics for -m.
From NetBSD.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Jan 4 17:40:26 2001 UTC (23 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.46: +36 -29 lines
Diff to previous 1.46 (colored)

Only use the sysctl interface if it's the running kernel we're getting
information from.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jan 4 07:58:06 2001 UTC (23 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.45: +4 -46 lines
Diff to previous 1.45 (colored)

Update to use the new sysctl return value for kmembuckets. That's it
for tonight.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jan 4 07:08:18 2001 UTC (23 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.44: +10 -5 lines
Diff to previous 1.44 (colored)

Use sysctl(3) to get clock information as well.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jan 4 06:50:21 2001 UTC (23 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.43: +72 -2 lines
Diff to previous 1.43 (colored)

Use the new sysctl(3) interface for the kernel memory bucket statistics.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jan 4 06:26:49 2001 UTC (23 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.42: +12 -3 lines
Diff to previous 1.42 (colored)

Use sysctl(3) to get the boottime, rather than kread()

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jan 3 19:24:04 2001 UTC (23 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

New length of kmembuckets counters; we don't really take advantage of
the full length, since that would bring us way beyond typical terminal
size (~20 digits per field). Still, this should be enough for a while.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 2 17:51:11 2001 UTC (23 years, 4 months ago) by mickey
Branch: MAIN
Changes since 1.40: +4 -3 lines
Diff to previous 1.40 (colored)

accumulate memory total requests in quad

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jan 2 17:27:29 2001 UTC (23 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

A bit more space to accomodate u_long for kb_calls (Requests column)

Revision 1.39 / (download) - annotate - [select for diffs], Sun Nov 26 02:30:30 2000 UTC (23 years, 5 months ago) by art
Branch: MAIN
Changes since 1.38: +7 -14 lines
Diff to previous 1.38 (colored)

Print select collisions in the vmstat -s output.
(XXX - I couldn't find a better place to put it.).

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 25 16:49:32 2000 UTC (23 years, 6 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.37: +32 -49 lines
Diff to previous 1.37 (colored)

i386's interrupt counters are u_long, adjust printf formats.
use err/errx instead of fprintf+exit.
deraadt@ ok

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jun 27 18:11:48 2000 UTC (23 years, 10 months ago) by art
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Tyop

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jun 18 17:59:56 2000 UTC (23 years, 11 months ago) by niklas
Branch: MAIN
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored)

Mark kernel threads as system processes.  Make ps hide them by default,
show them with -k.  Do not try to show RSS based values for them as they
mess up column alignment.  vmstat -f now shows kernel threads separately
from rforks too.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Dec 12 00:52:21 1999 UTC (24 years, 5 months ago) by hugh
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.34: +68 -68 lines
Diff to previous 1.34 (colored)

widen output formatting a bit

Revision 1.34 / (download) - annotate - [select for diffs], Thu Sep 2 01:23:30 1999 UTC (24 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.33: +5 -3 lines
Diff to previous 1.33 (colored)

print i386 irqs nicer, so that sharing is more obvious

Revision 1.33 / (download) - annotate - [select for diffs], Mon Aug 16 19:06:15 1999 UTC (24 years, 9 months ago) by art
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

printf format fixes

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jul 17 22:11:15 1999 UTC (24 years, 10 months ago) by art
Branch: MAIN
Changes since 1.31: +39 -27 lines
Diff to previous 1.31 (colored)

nice printing of sum^H^H^Huvmexp for uvm

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 24 12:36:17 1999 UTC (24 years, 11 months ago) by art
Branch: MAIN
Changes since 1.30: +5 -1 lines
Diff to previous 1.30 (colored)

Ooops! Make this work without uvm

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jun 23 19:25:56 1999 UTC (24 years, 11 months ago) by art
Branch: MAIN
Changes since 1.29: +1 -32 lines
Diff to previous 1.29 (colored)

kill old tahoe code

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jun 23 18:48:12 1999 UTC (24 years, 11 months ago) by art
Branch: MAIN
Changes since 1.28: +86 -3 lines
Diff to previous 1.28 (colored)

make it work with UVM. XXX - not done yet.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jun 11 23:10:52 1999 UTC (24 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)

Some stray i386 -> __i386__ that only trigger for vmstat -i.
pc532 -> __pc532__ as well.

Reported & diagnosed by ficus.

Revision 1.27 / (download) - annotate - [select for diffs], Thu May 13 22:12:50 1999 UTC (25 years ago) by alex
Branch: MAIN
Changes since 1.26: +12 -12 lines
Diff to previous 1.26 (colored)

vmstat -i: Increase width of interrupt count column.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Mar 15 15:38:48 1999 UTC (25 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

re-indent; nash@mcs.net

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jul 8 22:14:18 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.24: +10 -3 lines
Diff to previous 1.24 (colored)

whack kmem gid after kvm_openfiles()

Revision 1.24 / (download) - annotate - [select for diffs], Tue May 19 17:38:20 1998 UTC (26 years ago) by mickey
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

14 for a type field to accomodate 'VM page bucket'

Revision 1.23 / (download) - annotate - [select for diffs], Sun Nov 30 09:18:25 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.22: +20 -24 lines
Diff to previous 1.22 (colored)

remove dk_* use; kstailey/mickey please finish this correctly

Revision 1.22 / (download) - annotate - [select for diffs], Sun Nov 9 22:13:49 1997 UTC (26 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

struct vmtotal contains unsigned vars.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 7 18:45:29 1997 UTC (26 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.20: +14 -76 lines
Diff to previous 1.20 (colored)

-Wall and remove old vm stuff.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jun 30 07:04:08 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.19: +1 -6 lines
Diff to previous 1.19 (colored)

-f and -t are supported...

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jun 30 07:03:06 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +8 -5 lines
Diff to previous 1.18 (colored)

fix time_t vs long issues

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 22 17:20:30 1997 UTC (27 years, 3 months ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.17: +19 -5 lines
Diff to previous 1.17 (colored)

if sys/kern/malloc.c does not #define KMEMSTATS (and DIAGNOSTIC is also
not #defined) then vmstat should not try to print kernel memory stats.

Fixes NetBSD PR #3187.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Feb 13 20:17:16 1997 UTC (27 years, 3 months ago) by kstailey
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

enlarged vmstat -m "Type" column to accomodate "MSDOSFS mount"

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 15 23:43:34 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

getopt(3) returns -1 when out of args, not EOF, whee!

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 22 03:26:09 1996 UTC (27 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored)

Deal with _POSIX_SAVED_IDS when relinquishing privileges

Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 4 10:04:44 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

roundup error; netbsd pr#2944, augustss@cs.chalmers.se

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 24 23:51:59 1996 UTC (27 years, 11 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

struct intrhand protected by _KERNEL; some user-mode assembly code
can't deal with the file without this

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jun 22 17:38:14 1996 UTC (27 years, 11 months ago) by tholo
Branch: MAIN
Changes since 1.11: +64 -25 lines
Diff to previous 1.11 (colored)

Restore code to show interrupt counts on i386

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jun 10 07:49:16 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +6 -5 lines
Diff to previous 1.10 (colored)

boottime is a timeval

Revision 1.10 / (download) - annotate - [select for diffs], Wed May 22 11:35:45 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.9: +43 -85 lines
Diff to previous 1.9 (colored)

libutil

Revision 1.9 / (download) - annotate - [select for diffs], Sun Apr 21 23:44:44 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.8: +8 -6 lines
Diff to previous 1.8 (colored)

sync to netbsd 960418

Revision 1.8 / (download) - annotate - [select for diffs], Thu Apr 18 12:00:05 1996 UTC (28 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

Fix format strings in printfs.
Sync w/ recent kernel changes.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 18 10:57:19 1996 UTC (28 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Fixed according to the latest i386 changes.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 3 02:51:24 1996 UTC (28 years, 2 months ago) by tholo
Branch: MAIN
Changes since 1.5: +47 -71 lines
Diff to previous 1.5 (colored)

Working disk statistics; NetBSD PR 2160

Revision 1.5 / (download) - annotate - [select for diffs], Fri Mar 1 07:35:40 1996 UTC (28 years, 2 months ago) by tholo
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Secondary name cache is per-directory now, not per-process.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 20 04:48:36 1996 UTC (28 years, 3 months ago) by tholo
Branch: MAIN
Changes since 1.3: +64 -22 lines
Diff to previous 1.3 (colored)

Support getting interrupts per device on the i386 platform, similar to
implementation on pc532

Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 28 04:41:40 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

column expansion from NetBSD

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 18 17:28:55 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

irq count field widened

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:50 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:50 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.