summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
Commit message (Collapse)AuthorAgeFilesLines
* o De-register local vars.maxim2006-04-161-6/+4
|
* o Trim EOL whitespaces and tabs, replace eight w/s by tabs.maxim2006-04-161-20/+20
| | | | No functional changes.
* o Implement Solaris-like -x flag: show extended disk statistics.maxim2006-04-162-15/+136
| | | | | | | | | | o Implement Solaris-like -z flag: omit lines for devices with no activity. o iostat.8: describe -x and -z flags, Xr devstat(3), touch .Dd. PR: mostly bin/68840, with style changes; bin/73327 Submitted by: Dan Nelson, Peter Schuller Obtained from: NetBSD (a part of man page) MFC after: 1 month
* Interlink systat(1), iostat(8) and vmstat(8) through their SEE ALSOkeramida2005-05-261-0/+1
| | | | sections, so that users of one can learn about the others easily.
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Sort sections.ru2005-01-181-2/+2
|
* Put libdevstat before libkvm, because the former depends on the latter.ru2004-02-041-2/+2
|
* Remove MAINTAINER= lines in the makefiles for camcontrol, iostat, libcamken2003-06-141-2/+0
| | | | | | | | and libdevstat, since the new way of doing things is to just list maintainership in src/MAINTAINERS. Also, remove duplicate entries in src/MAINTAINERS for those utilities. I already had entries for them.
* style.Makefile(5)obrien2003-04-041-1/+2
|
* Run a revision of the devstat interface:phk2003-03-151-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kernel: Change statistics to use the *uptime() timescale (ie: relative to boottime) rather than the UTC aligned timescale. This makes the device statistics code oblivious to clock steps. Change timestamps to bintime format, they are cheaper. Remove the "busy_count", and replace it with two counter fields: "start_count" and "end_count", which are updated in the down and up paths respectively. This removes the locking constraint on devstat. Add a timestamp argument to devstat_start_transaction(), this will normally be a timestamp set by the *_bio() function in bp->bio_t0. Use this field to calculate duration of I/O operations. Add two timestamp arguments to devstat_end_transaction(), one is the current time, a NULL pointer means "take timestamp yourself", the other is the timestamp of when this transaction started (see above). Change calculation of busy_time to operate on "the salami principle": Only when we are idle, which we can determine by the start+end counts being identical, do we update the "busy_from" field in the down path. In the up path we accumulate the timeslice in busy_time and update busy_from. Change the byte_* and num_* fields into two arrays: bytes[] and operations[]. Userland: Change the misleading "busy_time" name to be called "snap_time" and make the time long double since that is what most users need anyway, fill it using clock_gettime(CLOCK_MONOTONIC) to put it on the same timescale as the kernel fields. Change devstat_compute_etime() to operate on struct bintime. Remove the version 2 legacy interface: the change to bintime makes compatibility far too expensive. Fix a bug in systat's "vm" page where boot relative busy times would be bogus. Bump __FreeBSD_version to 500107 Review & Collaboration by: ken
* Add #include <sys/resource.h>phk2003-02-161-0/+1
| | | | | My apologies for missing these #includes, I must have confused the dependencies with a wrong timestamp or something.
* Remove #include <sys/dkstat.h>phk2003-02-161-1/+0
|
* english(4) police.schweikh2002-12-271-4/+4
|
* MFS: Spelling: s/transfered/transferred/trhodes2002-12-121-1/+1
| | | | | | PR: 46104 Pointed out by: Rich Morin <rdm@cfcl.com> Approved by: re (rwatson)
* Use essentially the same formatting of the CPU stats percentages as inbde2002-08-181-1/+1
| | | | | | | | | vmstat so that they never coalesce. Both iostat and vmstat need larger fixes to prevent wide fields from unnecessarily messing up the alignment of all subsequent fields. PR: 41674 MFC-after: 3 days
* Include <nlist.h> for nlist interfaces instead of depending on namespacebde2002-08-181-0/+1
| | | | pollution in <kvm.h>.
* The .Nm utilitycharnier2002-07-141-5/+12
|
* Replace /kernel with /boot/kernel/kernel.joe2002-05-091-3/+3
| | | | | PR: docs/37757 Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
* Redo patch in 1.22 such that the header printing is reset when theguido2001-09-261-19/+16
| | | | | | | process gets a SIGCONT Reviewed by: kris@freebs.org MFC after: 2 weeks
* Don't do unsafe activities in the syscall handler.kris2001-09-011-4/+18
| | | | MFC after: 2 weeks
* Bring in some iostat fixes that bde reminded me about. These fixes wereken2001-08-232-95/+125
| | | | | | | | | | | | | | | | originally written in January, 2000, but have been substantially updated. - No longer use hz/stathz and the CPU times in computing the TTY stats, but rather use etime, like the disk stats. - Clean up malloc/realloc failure tests. - Use a new integrated routine to fetch devstat information via sysctl or KVM. - Get rid of the X() macro for calculating CPU stats - Use rint() on the CPU state display to avoid truncation errors. (this requires libm) - Clean up flag usage somewhat. Reviewed by: bde
* mdoc(7) police: markup nits.ru2001-08-071-5/+12
|
* Make use of the new features of libdevstat to allow iostat to work ontmm2001-08-043-94/+151
| | | | | | | | | crash dumps, and make it use sysctl for all data retrievals in the "live" case (i.e. when not using iostat on a crash dump). Remove setgid kmem for the iostat executable, it is not needed any more after these changes. Reviewed by: ken
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-3/+4
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Remove whitespace at EOL.dd2001-07-151-8/+8
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-181-1/+0
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-2/+1
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+6
|
* Prepare for mdoc(7)NG.ru2000-12-271-6/+6
|
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
* Properly check malloc(3) return valuesjedgar2000-12-011-3/+8
| | | | Approved by: ken
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-12/+12
|
* Remove bogus include, as per style(9).asmodai2000-04-301-2/+0
| | | | Remove unused variable.
* Back out previous commit minus spelling fixes. Should have asked maintainercharnier2000-01-242-37/+29
| | | | before.
* Rework use of Nm.charnier2000-01-232-31/+39
| | | | | | | Remove -? flag that was not working but documented. Make it work instead but hide it in man page and usage string as others tools do. Spelling. Abort on allocation failure (with errx()).
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Various man page cleanup:mpp1999-08-151-3/+3
| | | | | | | | | | - Sort xrefs. - FreeBSD.ORG -> FreeBSD.org - Be consistent with section names as outlined in mdoc(7). - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexey M. Zelkin <phantom@cris.net>
* Per Ken's request, back out my last change to this file. iostat's manimp1999-06-241-2/+2
| | | | | page documents '?' as a valid option, as does the usage message. None of the other programs' man pages documented '?' as a valid option.
* Two getopts related nits:imp1999-06-241-2/+2
| | | | | | o getopt returns -1 rather than EOF on errors o getopt returns '?' for characters it doesn't know about, so don't include them in the getopt options string.
* Add a MAINTAINER line to modules that I maintain.ken1999-06-181-0/+2
| | | | Suggested by: brian, markm
* Change the devstat generation number from an int to a long. The int-sizedken1998-09-201-4/+5
| | | | | | | | | | 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>
* Fix style bugs introduced by Matt Dillon in his previous, unreviewedken1998-09-162-10/+11
| | | | | | commit. Reviewed by: gibbs
* Fixed segfault when more then four devices are specified (improper free),dillon1998-09-162-13/+26
| | | | | | | | fixed variable so all manually-specified devices are shown rather then cutting the display off at 3, fixed formatting for msps when msps is larger then 100 (it was blowing the columner display output before), added -K option to make blk count (-oIK) force a 1K block size (to conform more closely to systat, vmstat definition of blocksize).
* Update system to new device statistics code.gibbs1998-09-153-277/+796
| | | | Submitted by: "Kenneth D. Merry" <ken@plutotech.com>
* Use err(3).charnier1997-09-191-6/+10
|
* Remove -I/sys and add -I${.CURDIR}/../../sysguido1997-07-131-1/+1
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-1/+1
| | | | posix standard on the topic.
OpenPOWER on IntegriCloud