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
thorpej
744fb366d9
Update for cached physical addresses in the pool caches.
2003-04-09 19:02:29 +00:00
dsl
9be8ac5294
Alternative pid/proc allocater, removes all searches associated with pid
...
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.
2003-03-19 11:36:32 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
matt
2954b3d5d7
The last NULL entry should not be printed on missing symbols.
2003-02-01 20:52:58 +00:00
thorpej
c9b2749b7c
Update for extensible malloc types.
2003-02-01 06:29:14 +00:00
atatat
88df2c4818
The -u option takes an argument, so we need the corresponding : in the
...
getopt() string. Does no one use uvm histories any more, or does
everyone just dump all the histories?
2002-12-12 20:03:32 +00:00
simonb
7a17e24ac5
Remove pc532-only hacks to access wildly different interrupt accounting
...
now that interrupts are tracked with evcnt(9) on this port.
2002-11-22 13:30:34 +00:00
simonb
ecf6315bd0
Include <machine/intr.h> to get "struct iv" (in pc532-specific code).
2002-11-21 01:39:15 +00:00
nathanw
7ec345ff22
In getuptime(), use kread() to get the current time as well as boottime,
...
instead of calling time(3).
This makes rate calculations of crash dumps sensible; in contrast,
subtracting the boot time of the crash dump from the current time of the
running system produces a not-very-meaningful number.
2002-11-18 03:17:24 +00:00
itojun
5f2d0b666f
error handling on strdup failure
2002-11-16 15:59:26 +00:00
enami
62bf3a2b33
- fix section of this manpage; it's 1 not 8.
...
- use Nm "" instead of just Nm in SYNOPSIS.
2002-11-07 13:40:16 +00:00
simonb
b9c304a9e0
Pass all three mib items to a sysctl in dkreadstats().
...
Use the new kernel sysctl sizing code to calculate the number of drives.
2002-11-01 15:23:06 +00:00
mrg
3cf4c73d05
iostat(8) and systat(8) support for separate read/write disk statistics.
...
"iostat -x" now shows these (ala linux/solaris), but this is only splitting
the read/write bytes/transactions, not adding any new metrics. "systat
iostat" now has two new commands to switch between combined/separate mode
for both it's numbers & bar modes.
2002-11-01 12:47:55 +00:00
grant
be8ae688ae
New sentence, new line.
2002-09-30 11:08:56 +00:00
mycroft
e653ca9e0b
sleep() -> nanosleep()
2002-09-18 23:24:13 +00:00
soren
84dd3a42b4
Print newline before pool stats.
2002-08-10 19:08:41 +00:00
sommerfeld
f80c7eebd7
Since the KERN_CP_TIME sysctl reports total clock ticks across all
...
cpus and hz is measured in ticks per cpu, divide tick count by ncpu to
determine elapsed time since last sample.
Fixes I/O rate deflation observed on multiprocessors.
2002-06-30 00:10:33 +00:00
simonb
f49b148a2f
Don't provide a local declaration of 'struct pool_cache_group' now that
...
it's in <sys/pool.h>.
2002-03-13 11:02:11 +00:00
enami
4df736987c
Fix broken indentation.
2002-03-11 15:29:22 +00:00
christos
9a6801b5cd
fix pool_allocator fallout. bad boy jason!
2002-03-10 01:48:25 +00:00
enami
41e1be38c5
- Kill whitespaces at the end of line.
...
- Wrap long line.
2002-02-25 00:39:04 +00:00
enami
2c0bf8440e
Don't forget to fetch pool cache group.
2002-02-20 07:52:43 +00:00
enami
6af26372f1
When printing pool stats, print pool cache stats also if -v is given.
2002-02-20 07:43:30 +00:00
ross
2a76afae02
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:36:18 +00:00
simonb
0f944ef22b
Use the new disk and tty stats sysctls when operating on a live kernel,
...
dk*() don't need to worry about setgid() games anymore.
2002-01-28 02:15:15 +00:00
chs
8e9cdbbd63
replace "vnode" and "vtext" with "file" and "exec" in uvmexp field names.
2001-12-09 03:07:43 +00:00
lukem
379a7b9d91
print average chain length as %8.2f instead of %8d
2001-12-06 03:48:56 +00:00
thorpej
235d97a465
KERNBASE is a constant that kernland has no business using; it's
...
existence and value are machine-dependent, and using KERNBASE
either breaks binary compatibility across the same MACHINE_ARCH
or prevents this program from compiling at all.
2001-11-29 21:22:25 +00:00
jmc
96316bebb6
Cast the printf'ing of the 2 size_t vars in dohashstat to unsigned long long as
...
some ports have size_t's which are larger than int's.
2001-11-26 21:04:49 +00:00
lukem
31c1ed8952
- Separate hashstat namelist into separate hashnl[], and don't barf if
...
some of the symbols can't be found
- Only kvm_nlist() hashnl[] and histnl[] once
- Add a description to struct kernel_hash, and print with -L
- Sort entries in khashes[]
- Don't exit on unknown hashes; just display a warning and move on
2001-11-26 14:06:31 +00:00
lukem
ef4781fc59
add stats for nchash & ncvhash
2001-11-26 10:38:59 +00:00
lukem
ff1761be8e
- Use -H (instead of -h) to list all hash stats.
...
- Add '-h hashname' to only list the stats for hashname.
- Add -L to list valid hashes
- Fix up some whitespace
2001-11-26 10:18:08 +00:00
wiz
d5d43c487a
Sort sections, and be consistent in each-vs-every usage at least in this
...
man page.
2001-11-26 07:52:46 +00:00
lukem
9ba7f648bb
- replace -h uvmhist with -u uvmhist, and -H with -U, since uvm history stuff
...
isn't generally enabled by default, and i wanted -h for something else.
- implement -h, which displays statistics for various kernel hash tables
- add deref_kptr(), which does the hard work of kvm_read() et al
- various minor cleanups
2001-11-26 07:40:01 +00:00
enami
31b84bf30a
Check array boundary correctly.
2001-11-21 00:40:56 +00:00
enami
5413315441
Print evcnt/intrcnt as unsigned.
2001-11-21 00:38:50 +00:00
bjh21
7a29a41680
When summarizing pool memory usage, account for PR_RECURSIVE pools
...
specially so as to avoid counting the same memory twice.
2001-10-07 12:50:54 +00:00
wiz
9fa0b17629
Give initiali[sz]e all the "i"s it deserves.
2001-09-18 18:15:49 +00:00
matt
531338f3ce
Adjust vmstat -i / -e for wider event names
2001-08-26 02:50:37 +00:00
lukem
4e8c51f7aa
when printing "avm fre" fields, use " %5ld %5ld " instead of "%6ld%6ld ",
...
because it's better to slightly right-shift the display than run numbers
together when you've got > 99999KB avm or fre.
2001-06-13 08:18:30 +00:00
christos
717b628383
move extern at a global scope.
2001-06-03 04:02:34 +00:00
ross
65dd7f43a3
Update the -s description for the uvm era. (It was stuck in the pre-mach
...
bsd-vax-vm days. :-)
2001-05-19 00:36:15 +00:00
wiz
553c8f83e4
Move vmstat.8 to vmstat.1, since the program lives in /usr/bin now and is
...
not super-user-only.
Cf. short discussion on tech-userlevel.
2001-05-06 23:37:36 +00:00