Commit Graph

118 Commits

Author SHA1 Message Date
ru
136b4e514b Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
markm
6a0497c594 Compensate for header dethreading. 2001-05-01 08:46:02 +00:00
gallatin
9fb8aa97de numdirtybuffers is an int, not a long. 2001-03-29 02:18:19 +00:00
tmm
84e46a81a0 Get rid of setgid kmem for systat, and while being there, fix some bugs
and compiler warnings.
The data for network statistics are still obtained via the kvm interface
if systat was started with the needed privileges, otherwise sysctls are
used. The reason for this is that with really many open sockets, the
sysctl method is probably slower, but it systat -netstat is probably not
really usable in either mode under these conditions.

Approved by:	rwatson
2001-03-23 03:58:25 +00:00
ache
428e7d28a8 Don't attempt to parse %c 2001-03-21 20:32:20 +00:00
ru
d66d3fa46c Count and show incoming UDP datagrams with no checksum. 2001-03-13 13:26:06 +00:00
ru
b1c3961564 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
jhb
e7bee17203 Catch up to new proc flags. 2001-01-24 14:03:34 +00:00
phk
b3f5dc2765 My bad, committed the submitted patch rather than the fixed patch. 2000-12-30 21:56:18 +00:00
phk
0895ed08bd Use macro API to <sys/queue.h>
Submitted by:	"Jason" <jsmethers@pdq.net>
Reviewed by:	phk
2000-12-30 21:17:03 +00:00
ru
655e7db87e Prepare for mdoc(7)NG. 2000-12-19 16:00:12 +00:00
rwatson
d94010b0d8 o Fix up includes which built due to excessive nested including in the
base system, but not in BruceBSD.
o Fix up style violations of various sorts.
o Remove redundant normalization of hertz variable, as the sysctl handler
  does this work (unlike when kread was used).

Submitted by:	bde
2000-12-17 18:43:28 +00:00
mckusick
7d330b9cd3 Change the proc information returned from the kernel so that it
no longer contains kernel specific data structures, but rather
only scalar values and structures that are already part of the
kernel/user interface, specifically rusage and rtprio. It no
longer contains proc, session, pcred, ucred, procsig, vmspace,
pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If
any of these changed in size, ps, w, fstat, gcore, systat, and
top would all stop working. The new structure has over 200 bytes
of unassigned space for future values to be added, yet is nearly
100 bytes smaller per entry than the structure that it replaced.
2000-12-12 07:25:57 +00:00
gallatin
b5b1c5a2ac Correct int/long type mismatch in the proper place this time. freevnodes
and numvnodes are longs in the kernel.  They should remain longs in systat,
what really needs to change is that they should be using SYSCTL_LONG rather
than SYSCTL_INT.   I also changed wantfreevnodes to SYSCTL_LONG because I
happened to notice it.

I wish there was a way to find all of these automatically..

Pointed out by: bde
2000-12-02 20:08:33 +00:00
gallatin
745d211b65 fix another int/long type mismatch. This one was causing pigs to
die with an fpe on alpha because fscale wasn't properly initted
2000-12-01 20:57:02 +00:00
gallatin
5d22127768 fix int/long type mismatches found on alpha 2000-12-01 20:01:38 +00:00
rwatson
d19c442921 o Make systat/vmstat.c use sysctl() to retrieve cp_time, bufspace,
maxvnodes, numvnodes, freevnodes, nchstats, and numdirtybuffers.
o Make the hw.ncpu error checking code a little more rigorous by
  sanity checking the returned data size.
o Didn't fix machine-dependent non-sysctl-exported variables:
  intrnames, eintrnames, intrcnt, eintrcnt, as these variables are
  defined and exported from machine-dependent kernel code in
  assembly.  This should probably be fixed somehow.
2000-11-25 03:53:42 +00:00
rwatson
ccaf37a0cd o make systat/pigs.c use syctl() to retrieve cp_time, fscale, and ccpu
instead of using kmem.
2000-11-25 03:49:42 +00:00
rwatson
e3d1a88987 o Make systat/iostat.c use sysctl() to retrieve cp_time instead of
kmem.
2000-11-25 03:47:36 +00:00
rwatson
22e9d1cd18 o Make systat use sysctl() to retrieve hz and stathz, instead of
using kmem.
2000-11-25 03:46:45 +00:00
ru
0957874304 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
jedgar
137dcbe72f Remove obsolete /dev/drum references
Reviewed by:	alex, asmodai, billf
2000-10-29 12:19:52 +00:00
ache
bd2876981b Remove unneded -ltermcap 2000-09-16 03:30:50 +00:00
peter
3431e241b4 Quick Fix: swap.c doesn't appear to actually need <sys/conf.h>, so remove
it to try and get world building again.  (sys/conf.h now depends on
sys/types.h)
2000-08-24 20:22:44 +00:00
alfred
d09e508fe8 Fix systat to use the kern.ipc.mbtypes sysctl instead of referencing a
structure member that doesn't exist anymore.
Use getsysctlbyname for kern.ipc.mbstat instead of sysctl.
Use netstat's method of displaying values from mtnames.

Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
Missed by PR: 19809
2000-07-15 16:24:21 +00:00
phk
07e8f18363 Duh! get the scaling right. 2000-06-01 08:49:46 +00:00
phk
e2408f6901 Rescale the IOstat bars, modern disks are faster than old disks. 2000-06-01 08:26:13 +00:00
phk
e28e1daa49 Don't include <sys/buf.h> 2000-05-05 15:41:22 +00:00
imp
8e96f07683 #include <errno.h> where needed. Kill extern int errno;.
Minor warnings in tip corrected.
2000-04-14 06:39:19 +00:00
sheldonh
c0e8952a50 Remove more single-space hard sentence breaks. 2000-03-02 14:54:02 +00:00
nik
fcd1e20b1b s/curses/ncurses/
PR:             docs/17061
Submitted by:   Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-01 10:46:05 +00:00
green
a4afb81b71 "Disks" is more correct than "Disks" could be. 1999-09-19 18:04:54 +00:00
peter
5d2c967196 systat is way too comfortable with curses internals... 1999-08-30 08:18:09 +00:00
peter
e4b04a2b21 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
chris
f2a7f41e8f Fix bad references:
vmstat(1) -> vmstat(8)
  iostat(1) -> iostat(8)
1999-08-14 06:52:28 +00:00
des
fa143bce26 Show dirty buffers and the percentage of time a disk was busy.
PR:		12858
Submitted by:	Arjan de Vet <Arjan.deVet@adv.iae.nl>
1999-07-30 07:44:25 +00:00
nik
7e91e73b9f Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:24:20 +00:00
peter
a470222f84 Tidy up references to <sys/rlist.h> and support for the old swap management
that went away in January.
1999-05-11 14:32:18 +00:00
bde
437ab8d6af Display floats with format %*.0f instead of as "*****" if there is
enough space for this but not enough space for the normal %*.*f
format.  Similarly for long doubles.
1999-03-22 03:44:01 +00:00
dillon
0d6e96cf9b Include discrete ozfod as well as ozfod/zfod percentage. 1999-02-08 02:39:45 +00:00
dillon
466b9cc773 If there are 4 or fewer disk devices, we have room to display additional
VM statistics.  zfod is moved and %slo-z ( percentage of zero-fills that
    were slow, i.e. not pre-zero'd ), and number of pages freed per second.
1999-02-08 02:11:52 +00:00
dillon
f19db5c1a7 Be nice when no swap is configured in system 1999-02-06 06:43:56 +00:00
dillon
d408edf826 Fix labeling bug 1999-01-22 10:57:50 +00:00
dillon
8ba3cd01dc Make systat -swap use new kvm_swapinfo() function 1999-01-22 10:53:13 +00:00
obrien
fadc302836 revert to rev 1.29. (floppy drives will be gotten rid of another way) 1999-01-09 06:03:54 +00:00
obrien
50a8668be9 Add copyright and RCS/CVS Id.
Noticed by:	ken
1998-12-27 21:44:03 +00:00
obrien
1ce87d58c1 Update section on DK_NDRIVES (which was removed with CAM), and explain
relation to devstat(3)/(9).

Submitted-by:	ken@freebsd.org
1998-12-27 21:38:09 +00:00
obrien
2cf6fffd18 Turn the compile time option into a run-time option.
You can now use the `want_fd' command in the vmstat display.

Suggested by:	grog
1998-12-27 17:59:42 +00:00
obrien
2812551e5e Don't waste precious space on showing the performance of fdX.
(can get old behavior with -DWANT_FD)
1998-12-27 08:15:37 +00:00
obrien
bbda8835a6 Quiet many compiler warnings. 1998-10-08 09:56:10 +00:00