summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
Commit message (Collapse)AuthorAgeFilesLines
* In usr.sbin/iostat/iostat.c, use printf format specifiers fromdim2011-12-171-8/+9
| | | | | | inttypes.h for u_int64_t's. While here, sort #include directives. MFC after: 1 week
* Remove the advertising clause from UCB copyrighted files in usr.sbin. Thisjoel2010-12-112-8/+0
| | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
* Clarify a few details about iostat(8) behavior:yar2010-11-241-2/+16
| | | | | | | | | | | | - The default repeat count for iostat(8) is 1 unless there was a -w on the command line. - A -x display doesn't include TTY or CPU stats by default but they can be turned on with a -T or -C, respectively. Submitted by: arundel (initial version) Reviewed by: arundel MFC after: 1 week
* Change "wait" banner to "qlen" to be more indicative of its purpose and toivoras2010-11-172-3/+3
| | | | | | | be more inline with what gstat uses. Reviewed by: gnn Silence from: phk, keramida
* Clean up the style and markup of the paragraph on fractional wait intervals.yar2010-08-071-4/+6
| | | | MFC after: 3 days
* Properly spell and mark up the name of kern.hz.yar2010-08-071-2/+3
| | | | MFC after: 3 days
* Move the sentences telling the defaults for -c and -wyar2010-08-071-6/+6
| | | | | | | to where they belong. Previously they were misplaced, i.e., swapped. MFC after: 3 days
* Cleanup manpage as suggested by jhb@ to start new sentences on a new line.sbruno2010-05-241-3/+3
| | | | MFC after: 2 Weeks
* Explain how the new sub-second interval from changeset:208389 works.sbruno2010-05-231-1/+8
| | | | | | Approved by: scottl(mentor) Obtained from: Yahoo Inc. MFC after: 2 weeks
* Allow sub-second interval timings for iostat and vmstat.sbruno2010-05-212-6/+12
| | | | | | | | | | | e.g. vmstat -w.5 iostat -w.5 Reviewed by: jhb Approved by: scottl (mentor) Obtained from: Yahoo Inc. MFC after: 2 weeks
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-0/+2
|
* iostat: add a bit of space between tty in/out columnskeramida2009-08-151-6/+6
| | | | | | | | | The columns for tty input and output may bump against each other if the tty output needs more than 5 columns. Add a bit of space that pushes everything 1 column to the right, but also avoids the problem. Approved by: re (rwatson)
* Use calloc().delphij2009-05-211-7/+4
|
* Fix the device name spacing.adrian2008-09-111-5/+5
| | | | | | | | The old logic padded the device name out but assumed the unit number was one digit long; this fails for things like SATA devices which (for me) begin at ad10. Assemble the full device name in a temporary buffer and then calcluate padding based on that string.
* Use kvm_getcptime(3) to fetch the global CPU time stats from a crashdumpjhb2008-08-191-8/+14
| | | | | | | since the 'cp_time' symbol doesn't exist in recent kernels. This fixes iostat and vmstat on crash dumps. MFC after: 1 week
* Pass the right pointer to bzero() when clearing cp_time.jhb2008-08-191-1/+1
| | | | MFC after: 1 week
* Repeat iostat header after rows-3 instead of a hardcoded 20.keramida2008-01-221-3/+71
| | | | | | | | | | | | | Use ioctl() to get the window size in iostat(8), and force a new header to be prepended to the output every time the current window size changes. Change the number of lines before each header to `rows - 3' when the terminal is resized, so that the full terminal length can be used for output lines. PR: bin/119705 Submitted by: keramida Approved by: maxim MFC after: 2 weeks
* o Fix a typo. errx() -> err().maxim2008-01-121-2/+2
| | | | Submitted by: das
* o Plug a memory leak: do not forget to free asprintf(3) allocatedmaxim2008-01-121-2/+4
| | | | | | | | memory. PR: bin/119608 Submitted by: peter.schuller MFC after: 1 week
* o Get missed "%" in output back.maxim2007-12-161-2/+2
| | | | | Submitted by: sem MFC after: 1 week
* o With -x switch do not pay attention at the hardcoded limit of 3 ↵maxim2007-08-031-5/+7
| | | | | | | | | devices and dump stats for all devices in the system. User can still limit iostat -x by -n switch. Spotted by: Igor Sysoev Submitted by: kensmith Approved by: re (kensmith) MFC after: 2 weeks
* o Re-indent long lines.maxim2007-05-141-6/+6
| | | | Style(9) wisdom from: bde
* o Fix several style bugs in the previous commit.maxim2007-05-121-7/+15
| | | | Prodded by: bde
* o Make iostat -Ix work: print per-interval I/O extended statistics.maxim2007-05-121-7/+25
| | | | | | PR: bin/112559 Submitted by: Dan Nelson MFC after: 2 weeks
* Make iostat(8) fully work on crash dumps again (broken since 5.0):jhb2007-02-061-5/+6
| | | | | | | | | - Pass the address of the variable we are reading to kvm_read() rather than the index into the nlist array. - Properly report errors from kvm_read() which returns -1 on error, not 0. MFC after: 3 days
* Markup fixes.ru2006-09-291-1/+1
|
* 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.
OpenPOWER on IntegriCloud