History log of /netbsd/usr.sbin/iostat/iostat.c (Results 1 – 25 of 71)
Revision Date Author Comments
# 7c4c1927 28-Jul-2023 wiz <wiz@NetBSD.org>

ostat: use standard option order (AaBb...)

Fix macro usage while here


# 88c87f8f 28-Jul-2023 mrg <mrg@NetBSD.org>

add iostat -X option, limited alternative statistics.

this is like the "-D" option, except it skips the xfers/s, and
reports MB/s instead of KB/s. allows for far more devices to
be displayed per li

add iostat -X option, limited alternative statistics.

this is like the "-D" option, except it skips the xfers/s, and
reports MB/s instead of KB/s. allows for far more devices to
be displayed per line by default (about 50% more.)

show more ...


# 1f667236 18-Jun-2022 kre <kre@NetBSD.org>

Significant changes to output layout methods - except for -x and -y
which have not (yet) been touched (-xD needs *serious* improvements).

While this still has no run-time configurability, it is now

Significant changes to output layout methods - except for -x and -y
which have not (yet) been touched (-xD needs *serious* improvements).

While this still has no run-time configurability, it is now easy to
adjust the column widths in the source and recompile. Dynamic (auto)
column width sizing is probably out of the question (requires predicting
the future) but options to allow the widths to be set isn't out of the
question.

The columns are now (mostly) considerably wider than they were before,
hence wider windows are needed to view the same info. In an 80
column window the default display (with tty & cpu included) displays
just 2 drives. 160 columns will fit 7 (but with -I, just 4).

One new option added (-z) suppresses output which is true 0 (but still
prints 0 for values rounded down to 0) for everything except tty stats.
For drive output, the drive must have done nothing during the interval
to get its output data blanked.

Also options -H h -W w to set the output size (page height & width), the
former used to decide when to print headers, and the latter to calculate
the number of drives to print when no drive names were given. Env vars
LINES and COLUMNS are used if the options are not given, with fallback
to the terminal size (if output is to a terminal, and its sizes are
known), and if all else fails, 20 lines, 80 columns. Specifying 0
means unlimited (infinite). So "iostat -W 0" will show all of the
drives, across one (often very) long line. Wedges count as drives.

When drives are specified, the output will now appear in the order they were
given on the command line, rather than the order the system discovered them
during auto-configuration. If specified as an fnmatch(3) pattern, drives that
match will appear in auto-conf order, but that's generally what is wanted.
When none are specified, you still get the first N (however many fits based
upon the options selected) in auto-conf order (usually useless, more so now
given that less will fit).

Lastly, for those who looked at the patch I sent to current-users@
and were horrified at how kludgey it was, rest assured, that was just
a quick hack to demonstrate what the output format changes would look
like. This version (I hope) is not nearly so disgusting.

show more ...


# b9143308 17-Jun-2022 kre <kre@NetBSD.org>

Fix processing of the archaic arg format (BACKWARD_COMPATIBILITY) so it
doesn't repeat the processing every iteration. Repeatedly seeing the wait
interval does no harm, but setting the iteration cou

Fix processing of the archaic arg format (BACKWARD_COMPATIBILITY) so it
doesn't repeat the processing every iteration. Repeatedly seeing the wait
interval does no harm, but setting the iteration count (reps) over and
over again rather defeats its purpose.

show more ...


# 3642b157 08-Apr-2018 mlelstv <mlelstv@NetBSD.org>

Re-evaluate drive selection to catch hog-plug devices.


# 1b718e29 09-Sep-2017 mrg <mrg@NetBSD.org>

two minor fixes for -x and -y mode:
- the header is only 1 line not 2, account for this when calculating
when to display the next header.
- when ndrives > 1, don't display the header every time, bu

two minor fixes for -x and -y mode:
- the header is only 1 line not 2, account for this when calculating
when to display the next header.
- when ndrives > 1, don't display the header every time, but only when
the previous one disappears.

now i don't feel the need to run "iostat -x wd0 1 & iostat -c wd1 1"
to get less repeated header output on my display.

show more ...


# 0b1cb418 04-Jul-2017 mlelstv <mlelstv@NetBSD.org>

Use I/O timestamps to compute disk statistics for better precision.

Disk statistics are collected in a fixed size array, that got corrupted
when a disk was detached. Adapt by skipping entries of det

Use I/O timestamps to compute disk statistics for better precision.

Disk statistics are collected in a fixed size array, that got corrupted
when a disk was detached. Adapt by skipping entries of detached disks
and detect reused disknames at the array end.

show more ...


# d3b106f0 05-Mar-2017 mlelstv <mlelstv@NetBSD.org>

Enhance disk metrics by calculating a weighted sum that is incremented
by the number of concurrent I/O requests. Also introduce a new disk_wait()
function to measure requests waiting in a bufq.
iosta

Enhance disk metrics by calculating a weighted sum that is incremented
by the number of concurrent I/O requests. Also introduce a new disk_wait()
function to measure requests waiting in a bufq.
iostat -y now reports data about waiting and active requests.

So far only drivers using dksubr and dk, ccd, wd and xbd collect data about
waiting requests.

show more ...


# f237b580 25-Oct-2015 mrg <mrg@NetBSD.org>

extend the "tout" column to 5 characters, it's really common on a modern
machine to have eg, build output way more than 9999 chars/sec.

this doesn't affect the default disk list on an 80-char wide s

extend the "tout" column to 5 characters, it's really common on a modern
machine to have eg, build output way more than 9999 chars/sec.

this doesn't affect the default disk list on an 80-char wide screen.

show more ...


# a49e6e5b 09-Jul-2015 mrg <mrg@NetBSD.org>

support fnmatch(3) patterns for disknames. eg, "iostat wd*" works now.
update the default disk number selection to note that it uses the current
terminal size to fit disks, not hard coded 4.


# a2b1142f 11-Jun-2014 joerg <joerg@NetBSD.org>

Remove KVM related options.


# e8c43afd 30-Aug-2011 joerg <joerg@NetBSD.org>

static + __dead


# 1fa01540 14-Feb-2011 enami <enami@NetBSD.org>

A number greater than or equal to 1.0 is a positive number.


# df345125 14-Feb-2011 enami <enami@NetBSD.org>

Put space after comma and around binary operator.


# 4b239dbf 09-Jan-2011 jakllsch <jakllsch@NetBSD.org>

Fix copy/paste error that resulted in a extra space after the KB/t column.


# 33baa8a2 09-Jan-2011 jakllsch <jakllsch@NetBSD.org>

NetBSD/vax libm now has fmax, use it again.
Also, display average transfer size using dynamic precision too.


# 371577cc 08-Jan-2011 jakllsch <jakllsch@NetBSD.org>

NetBSD/vax does not implement fmax(3), substitute with existing MAX() macro.


# e249d77c 07-Jan-2011 jakllsch <jakllsch@NetBSD.org>

Maintain 5-character width of MB/s column by dynamically adjusting the
decimal precision.

This should work until disk transfer rates exceed 99999 MB/s.


# 10792500 15-Apr-2009 lukem <lukem@NetBSD.org>

Fix -Wsign-compare issues


# 9c194566 21-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.


# 5f1a3653 24-Jun-2007 christos <christos@NetBSD.org>

add parens.


# 53211cb1 26-Jul-2006 simonb <simonb@NetBSD.org>

Since the swapping of tk_nin and tk_nout was moved to its own
function (tkswap()), actually call this function.

Fixes problems where the tin/tout fields showed total tty IO since
boot instead of jus

Since the swapping of tk_nin and tk_nout was moved to its own
function (tkswap()), actually call this function.

Fixes problems where the tin/tout fields showed total tty IO since
boot instead of just what has happened in the last second.

show more ...


# 906131e6 14-Apr-2006 blymn <blymn@NetBSD.org>

Update to use the new kernel io statistics.


# 9f26f448 12-Feb-2006 dsl <dsl@NetBSD.org>

Need to read and swap cpustats separately from the dkstats.
I wonder how many more programs use the code in vmstat/dkstats.c


# 16b7c5d1 12-Feb-2006 yamt <yamt@NetBSD.org>

print a header on each outputs if and only if the output has 2 or more lines.


123