| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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=/stable/8/; revision=196255
|
|
|
|
| |
Notes:
svn path=/head/; revision=192570
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=181878
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Submitted by: das
Notes:
svn path=/head/; revision=175252
|
|
|
|
|
|
|
|
|
|
|
| |
memory.
PR: bin/119608
Submitted by: peter.schuller
MFC after: 1 week
Notes:
svn path=/head/; revision=175250
|
|
|
|
|
|
|
|
| |
Submitted by: sem
MFC after: 1 week
Notes:
svn path=/head/; revision=174649
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Style(9) wisdom from: bde
Notes:
svn path=/head/; revision=169558
|
|
|
|
|
|
|
| |
Prodded by: bde
Notes:
svn path=/head/; revision=169506
|
|
|
|
|
|
|
|
|
| |
PR: bin/112559
Submitted by: Dan Nelson
MFC after: 2 weeks
Notes:
svn path=/head/; revision=169496
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
Notes:
svn path=/head/; revision=162806
|
|
|
|
| |
Notes:
svn path=/head/; revision=157802
|
|
|
|
|
|
|
| |
No functional changes.
Notes:
svn path=/head/; revision=157801
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=157800
|
|
|
|
|
|
|
| |
sections, so that users of one can learn about the others easily.
Notes:
svn path=/head/; revision=146650
|
|
|
|
| |
Notes:
svn path=/head/; revision=141846
|
|
|
|
| |
Notes:
svn path=/head/; revision=140442
|
|
|
|
| |
Notes:
svn path=/head/; revision=125431
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=116325
|
|
|
|
| |
Notes:
svn path=/head/; revision=113091
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=112288
|
|
|
|
|
|
|
|
| |
My apologies for missing these #includes, I must have confused the
dependencies with a wrong timestamp or something.
Notes:
svn path=/head/; revision=111008
|
|
|
|
| |
Notes:
svn path=/head/; revision=111002
|
|
|
|
| |
Notes:
svn path=/head/; revision=108317
|
|
|
|
|
|
|
|
|
| |
PR: 46104
Pointed out by: Rich Morin <rdm@cfcl.com>
Approved by: re (rwatson)
Notes:
svn path=/head/; revision=107784
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=102068
|
|
|
|
|
|
|
| |
pollution in <kvm.h>.
Notes:
svn path=/head/; revision=102067
|
|
|
|
| |
Notes:
svn path=/head/; revision=99968
|
|
|
|
|
|
|
|
| |
PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
Notes:
svn path=/head/; revision=96247
|
|
|
|
|
|
|
|
|
|
| |
process gets a SIGCONT
Reviewed by: kris@freebs.org
MFC after: 2 weeks
Notes:
svn path=/head/; revision=83965
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=82723
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=82168
|
|
|
|
| |
Notes:
svn path=/head/; revision=81247
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=81134
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=80029
|
|
|
|
| |
Notes:
svn path=/head/; revision=79755
|
|
|
|
| |
Notes:
svn path=/head/; revision=79537
|
|
|
|
| |
Notes:
svn path=/head/; revision=79454
|
|
|
|
| |
Notes:
svn path=/head/; revision=76812
|
|
|
|
|
|
|
| |
- MAN[1-9] -> MAN.
Notes:
svn path=/head/; revision=74816
|
|
|
|
| |
Notes:
svn path=/head/; revision=74532
|
|
|
|
| |
Notes:
svn path=/head/; revision=71898
|
|
|
|
| |
Notes:
svn path=/head/; revision=70403
|
|
|
|
| |
Notes:
svn path=/head/; revision=70015
|
|
|
|
|
|
|
| |
Approved by: ken
Notes:
svn path=/head/; revision=69471
|
|
|
|
| |
Notes:
svn path=/head/; revision=68965
|