aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/iostat
Commit message (Collapse)AuthorAgeFilesLines
* Make the "r/s" and "w/s" fields in "iostat -x" a little bit wider;Edward Tomasz Napierala2016-09-211-2/+2
| | | | | | | | | five chars is way too narrow for todays disks. MFC after: 1 month Notes: svn path=/head/; revision=306095
* Fix the usr.sbin/iostat build with GCC, broken by r295768Alan Somers2016-02-221-9/+9
| | | | | | | | | | | | | Renamed some local variables for compatibility with -Wshadow Reported by: Andrew Turner Tested by: ken MFC after: 4 weeks X-MFC-with: 295768 Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=295900
* Fix compiler warnings in iostatAlan Somers2016-02-182-24/+25
| | | | | | | | | | | | | | | | | Raise WARNS from 1 to 6 (the default) Fix warnings: * Use C99 designated initializers for structs, and initialize all fields * Mark global variables as static * Mark unused function arguments * Be careful about signed/unsigned comparisons Reviewed by: eadler MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D5328 Notes: svn path=/head/; revision=295768
* When iostat(8) receives SIGINT while running with "-w" or "-c", it will nowAlan Somers2015-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 Notes: svn path=/head/; revision=292019
* Update dependencies after r291406 added libelf to libkvm.Bryan Drewery2015-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 Notes: svn path=/head/; revision=291558
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-273-14/+24
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge headSimon J. Gerraty2014-04-281-6/+6
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync with HEAD.David E. O'Brien2013-02-082-13/+42
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Advertise ctlstat(8) a little better.Edward Tomasz Napierala2015-05-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=283285
* | | | | Print transfer times for read, write, & overall independently.Will Andrews2015-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 Notes: svn path=/head/; revision=277566
* | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | | iostat: fix extracting TTY statistics from core.Sergey Kandaurov2013-11-251-6/+6
| |/ |/| | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=258606
* | Change `iostat -Ix` to display total duration of transactions insteadMikolaj Golub2012-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`. Notes: svn path=/head/; revision=244271
* In usr.sbin/iostat/iostat.c, use printf format specifiers fromDimitry Andric2011-12-171-8/+9
| | | | | | | | | inttypes.h for u_int64_t's. While here, sort #include directives. MFC after: 1 week Notes: svn path=/head/; revision=228661
* Remove the advertising clause from UCB copyrighted files in usr.sbin. ThisJoel Dahl2010-12-112-8/+0
| | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Notes: svn path=/head/; revision=216372
* Clarify a few details about iostat(8) behavior:Yaroslav Tykhiy2010-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 Notes: svn path=/head/; revision=215786
* Change "wait" banner to "qlen" to be more indicative of its purpose and toIvan Voras2010-11-172-3/+3
| | | | | | | | | | be more inline with what gstat uses. Reviewed by: gnn Silence from: phk, keramida Notes: svn path=/head/; revision=215425
* Clean up the style and markup of the paragraph on fractional wait intervals.Yaroslav Tykhiy2010-08-071-4/+6
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=211004
* Properly spell and mark up the name of kern.hz.Yaroslav Tykhiy2010-08-071-2/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=211003
* Move the sentences telling the defaults for -c and -wYaroslav Tykhiy2010-08-071-6/+6
| | | | | | | | | | to where they belong. Previously they were misplaced, i.e., swapped. MFC after: 3 days Notes: svn path=/head/; revision=211001
* Cleanup manpage as suggested by jhb@ to start new sentences on a new line.Sean Bruno2010-05-241-3/+3
| | | | | | | MFC after: 2 Weeks Notes: svn path=/head/; revision=208510
* Explain how the new sub-second interval from changeset:208389 works.Sean Bruno2010-05-231-1/+8
| | | | | | | | | Approved by: scottl(mentor) Obtained from: Yahoo Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=208460
* Allow sub-second interval timings for iostat and vmstat.Sean Bruno2010-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 Notes: svn path=/head/; revision=208389
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | Notes: svn path=/head/; revision=201390
* iostat: add a bit of space between tty in/out columnsGiorgos Keramidas2009-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) Notes: svn path=/head/; revision=196254
* Use calloc().Xin LI2009-05-211-7/+4
| | | | Notes: svn path=/head/; revision=192570
* Fix the device name spacing.Adrian Chadd2008-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. Notes: svn path=/head/; revision=182927
* Use kvm_getcptime(3) to fetch the global CPU time stats from a crashdumpJohn Baldwin2008-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 Notes: svn path=/head/; revision=181881
* Pass the right pointer to bzero() when clearing cp_time.John Baldwin2008-08-191-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=181878
* Repeat iostat header after rows-3 instead of a hardcoded 20.Giorgos Keramidas2008-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 Notes: svn path=/head/; revision=175562
* o Fix a typo. errx() -> err().Maxim Konovalov2008-01-121-2/+2
| | | | | | | Submitted by: das Notes: svn path=/head/; revision=175252
* o Plug a memory leak: do not forget to free asprintf(3) allocatedMaxim Konovalov2008-01-121-2/+4
| | | | | | | | | | | memory. PR: bin/119608 Submitted by: peter.schuller MFC after: 1 week Notes: svn path=/head/; revision=175250
* o Get missed "%" in output back.Maxim Konovalov2007-12-161-2/+2
| | | | | | | | Submitted by: sem MFC after: 1 week Notes: svn path=/head/; revision=174649
* o With -x switch do not pay attention at the hardcoded limit of 3 ↵Maxim Konovalov2007-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 Notes: svn path=/head/; revision=171709
* o Re-indent long lines.Maxim Konovalov2007-05-141-6/+6
| | | | | | | Style(9) wisdom from: bde Notes: svn path=/head/; revision=169558
* o Fix several style bugs in the previous commit.Maxim Konovalov2007-05-121-7/+15
| | | | | | | Prodded by: bde Notes: svn path=/head/; revision=169506
* o Make iostat -Ix work: print per-interval I/O extended statistics.Maxim Konovalov2007-05-121-7/+25
| | | | | | | | | PR: bin/112559 Submitted by: Dan Nelson MFC after: 2 weeks Notes: svn path=/head/; revision=169496
* Make iostat(8) fully work on crash dumps again (broken since 5.0):John Baldwin2007-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 Notes: svn path=/head/; revision=166541
* Markup fixes.Ruslan Ermilov2006-09-291-1/+1
| | | | Notes: svn path=/head/; revision=162806
* o De-register local vars.Maxim Konovalov2006-04-161-6/+4
| | | | Notes: svn path=/head/; revision=157802
* o Trim EOL whitespaces and tabs, replace eight w/s by tabs.Maxim Konovalov2006-04-161-20/+20
| | | | | | | No functional changes. Notes: svn path=/head/; revision=157801