Bruce Evans
0af0a4b0f4
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
Matthew Dillon
2d7142ca1a
Include discrete ozfod as well as ozfod/zfod percentage.
1999-02-08 02:39:45 +00:00
Matthew Dillon
8b4c04d3f3
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
Matthew Dillon
300c6da23d
Be nice when no swap is configured in system
1999-02-06 06:43:56 +00:00
Matthew Dillon
4aa513f41d
Fix labeling bug
1999-01-22 10:57:50 +00:00
Matthew Dillon
e53c5e2053
Make systat -swap use new kvm_swapinfo() function
1999-01-22 10:53:13 +00:00
David E. O'Brien
154a13b5f8
revert to rev 1.29. (floppy drives will be gotten rid of another way)
1999-01-09 06:03:54 +00:00
David E. O'Brien
587c729bb3
Add copyright and RCS/CVS Id.
...
Noticed by: ken
1998-12-27 21:44:03 +00:00
David E. O'Brien
d623448808
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
David E. O'Brien
4ae16510d1
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
David E. O'Brien
5647c79de5
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
David E. O'Brien
d22889b821
Quiet many compiler warnings.
1998-10-08 09:56:10 +00:00
Kenneth D. Merry
2459ccb484
Fix a core-dump situation in ":boot" mode in the vmstat display.
...
Reported by: bde
1998-10-05 04:04:27 +00:00
Kenneth D. Merry
bcc6a3da92
Change the devstat generation number from an int to a long. The int-sized
...
generation was causing unaligned access faults on the Alpha.
I have incremented the devstat version number, since this is an interface
change. You'll need to recompile libdevstat, systat, iostat, vmstat and
rpc.rstatd along with your kernel.
Partially Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
1998-09-20 00:11:23 +00:00
Kenneth D. Merry
8b95823257
Delete unused code. This has been obsoleted by the new devstat code.
...
Reviewed by: imp
1998-09-16 00:25:54 +00:00
Justin T. Gibbs
86e492ee46
Reference new files for device stat support.
1998-09-15 10:28:59 +00:00
Justin T. Gibbs
8d2fbde504
Update system to new device statistics code.
...
Submitted by: "Kenneth D. Merry" <ken@plutotech.com>
1998-09-15 08:16:45 +00:00
Joseph Koshy
1c79dc84fd
Add missing comma.
...
PR: 7841
Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
1998-09-09 03:07:03 +00:00
Bruce Evans
81a4459b5f
Fixed type mismatches which were fatal when sizeof(long) > sizeof(int).
1998-07-06 22:08:00 +00:00
Guy Helmer
a57a22d25f
Update vmstat portion of man page to reflect the statistics currently
...
shown by systat's vmstat display.
PR: docs/3764
1998-06-25 22:04:48 +00:00
Peter Wemm
9ec49abd00
#include <arpa/inet.h>
1998-06-12 14:18:33 +00:00
Warner Losh
448b84a0e4
o Use snprintf rather than sprintf
...
o Add more checks for buffer overflows
o Use snprintf rather than strcat/cpy and have better checks for max
length exceeded.
Most of these changes are not exploitable buffer overruns, but it never
hurts to be safe.
Inspired by and obtained from: OpenBSD
1998-06-09 04:17:29 +00:00
John Hay
73cdb7fd38
Correctly display the interrupt counts.
...
Reviewed with optimizations by: Tor Egge <tegge>
1998-05-27 21:01:37 +00:00
Steve Price
794313942d
Use 'proto <tcp|udp|all>' to select the protocol to display
...
in netstat-mode to avoid a conflict with tcp-mode. Also
while documenting this new feature in the manpage, fix a
minor display nit.
PR: 5159
Submitted by: Sergei Chechetkin <csl@whale.sunbay.crimea.ua>
1997-12-04 03:44:46 +00:00
John Polstra
abe6c636d0
Fix: too many arguments for format in call to sprintf().
1997-11-18 05:53:03 +00:00
Wolfram Schneider
bf5cbf3551
Sort cross refereces in section SEE ALSO.
1997-09-29 19:11:55 +00:00
Garrett Wollman
630fa006b9
Having done ICMP, UDP, and IP, could a TCP display be far behind?
1997-09-27 00:44:55 +00:00
Peter Wemm
39253d4c87
Show size of vnode pool in vmstat mode.
1997-09-25 01:14:25 +00:00
Garrett Wollman
2938fb783c
Emboldened by the success of yesterday's ICMP statistics display,
...
I've now added one that does IP (and also UDP) statistics.
1997-09-25 00:37:32 +00:00
Garrett Wollman
03e00a72c6
Add a mode to display ICMP statistics.
...
Inspired by: IRIX netstat -C
1997-09-24 02:43:45 +00:00
Philippe Charnier
014927909d
Main() returns int.
1997-08-26 11:08:24 +00:00
Philippe Charnier
d8793dfac3
Use err(3). /sys/dkstat.h -> /usr/include/sys/dkstat.h
1997-08-13 06:45:11 +00:00
Bruce Evans
a15f578988
Merge from Lite2 (print "??" instead NULL if devname() fails). More
...
faithful stealing from pstat would have given this already.
1997-07-06 04:37:22 +00:00
Bruce Evans
237f53369c
Importing Lite2 broke lookup() to return -1 for the nmatches == 0 case.
...
Fixed.
1997-07-06 04:13:20 +00:00
Bruce Evans
94143ce785
This commit was generated by cvs2svn to compensate for changes in r27229,
...
which included commits to RCS files with non-trunk default branches.
1997-07-06 04:02:30 +00:00
Bruce Evans
ff6c33c9e8
Import Lite2's src/usr.bin/systat. cmds.c is still on the vendor branch
...
and this import just breaks it.
1997-07-06 04:02:30 +00:00
Garrett Wollman
646bbae242
Use new sysctl(3) interface to mbuf statistics. While we're at it,
...
count free mbufs correctly.
1997-02-24 20:59:03 +00:00
Peter Wemm
c115df18cd
Revert $FreeBSD$ to $Id$
1997-02-22 19:58:13 +00:00
David E. O'Brien
bdbbe98ba5
The screen layout of the lefthand side for the vmstat display was way off.
...
(based on my running it on 2.2-GAMMA)
1997-02-15 21:01:38 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Joerg Wunsch
6b5d41d069
Fix the following old problem:
...
date: 1994/10/09 07:37:18; author: davidg; state: Exp; lines: +7 -1
#if 0'd out the meat of the swap code until I get a chance to rewrite it.
...mainly by stealing the code from pstat(8).
1997-01-12 19:38:32 +00:00
Jordan K. Hubbard
b2ff494ac6
Now that systat's working again, bring the vmstat cleanup over from
...
-stable.
1996-11-12 19:16:46 +00:00
Bruce Evans
adb844d545
Initialize interrupt counters. The boot time values were displayed as ***.
...
Should be in 2.2.
Pointed out by: /etc/malloc.conf -> AJ
1996-11-10 08:30:18 +00:00
Poul-Henning Kamp
00cb92bf59
bin/1942 curses problem in systat
...
truncate if too long for field.
2.2 candidate.
1996-11-02 15:15:40 +00:00
Garrett Wollman
3e1c3ca6bb
Eliminate unnecessary include of <sys/mbuf.h>.
1996-10-28 19:08:13 +00:00
Bruce Evans
4523edce8b
Really eliminated includes of the "temporary" backwards compatibility
...
header <sys/dir.h> in applications. My previous sweep didn't find the
places that included it without needing it.
1996-09-24 08:43:04 +00:00
Bruce Evans
5b963fa12e
Fixed DPADD.
1996-09-05 17:16:10 +00:00
Jordan K. Hubbard
94591e176e
Cosmetic fixes for drive names which are 4 chars long.
...
Submitted-By: Joe Greco <jgreco@ns.sol.net>
1996-06-11 16:18:58 +00:00
John Polstra
a49b055f5c
Fix a bug in the mbufs display, seen when there was a large number
...
of mbufs in use. If the number reached, e.g., 4 digits, then later
decreased to 3 digits, the last digit of the 4-digit number was
not erased. This caused the display to show a wildly high number of
mbufs in use.
1996-05-27 17:47:09 +00:00
Andrey A. Chernov
daab85586e
Localize time
1996-03-31 16:39:26 +00:00