summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
Commit message (Collapse)AuthorAgeFilesLines
* When iostat(8) receives SIGINT while running with "-w" or "-c", it will nowasomers2015-12-091-2/+57
| | | | | | | | | | print statistics one more time before exiting. Also, it now implements the wait using setitimer instead of sleep, so the waits will be more consistent when the system is heavily loaded. MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4473
* Update dependencies after r291406 added libelf to libkvm.bdrewery2015-12-011-0/+1
| | | | | | | | Unfortunately filemon/meta mode tracks all indirect dependencies here since ld(1) is reading libelf when linking in libkvm. Churn would be reduced if this was able to be limited to direct dependencies. Sponsored by: EMC / Isilon Storage Division
* Add META_MODE support.sjg2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-273-14/+24
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-1/+1
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge headsjg2014-04-281-6/+6
| |\ \
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| * | | Sync with HEAD.obrien2013-02-082-13/+42
| |\ \ \
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+22
| | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Advertise ctlstat(8) a little better.trasz2015-05-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* | | | | Print transfer times for read, write, & overall independently.will2015-01-231-11/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Round up calculated values for iops and average time per io to avoid a shifting display if there are 1000+ (or even 10000+) iops, or if an average time per io column is 1000+ ms. Reviewed by: ken MFC after: 1 week Sponsored by: Spectra Logic MFSpectraBSD: 1089947 on 2014/09/26 1093625 on 2014/09/29 1093650 on 2014/09/29 1095662 on 2014/10/09
* | | | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | Reduce overlinking
* | | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-1/+1
| |_|/ |/| | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | iostat: fix extracting TTY statistics from core.pluknet2013-11-251-6/+6
| |/ |/| | | | | MFC after: 1 week
* | Change `iostat -Ix` to display total duration of transactions insteadtrociny2012-12-152-13/+42
|/ | | | | | | | | | | of average duration, and total busy time instead of %. This looks more useful when one runs `iostat -Ix` periodically to collect statistics: e.g. now it is possible to calculate busy % between two runs subtracting total busy times and dividing per time period. Average duration and % busy are still available via `iostat -x`.
* 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
|
OpenPOWER on IntegriCloud