| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
last version and (2) remove a disabled debugging fprintf() that I
accidentally committed here.
Noticed by: simon (2)
|
|
|
|
|
|
|
|
|
|
|
| |
command that toggles between the two and update the ORDER_PCTCPU()
macro to sort correctly by the visible "cpu" value.
This saves 6 more columns in 80-column terminals, making things a lot
better for the COMMAND column.
Tested on: i386, sparc64 (panther), amd64 (sledge)
Approved by: davidxu (in principle)
|
|
|
|
|
|
|
|
|
| |
there are users on the system (even if not running a single process)
with a login > 8 chars.
I'm not all that happy limiting the username width like this, but it
restores sanity to top(1) output.
Discussed with: keramida
|
|
|
|
|
|
|
|
| |
of lines in SMP machines (which are wider), until we have a better way
of handling window sizes & columns in top.
Caught by: ache, Andre Guibert de Bruet <andy@siliconlandmark.com>
Point hat: keramida
|
|
|
|
|
|
|
|
|
| |
threads a process has. The THR column is disabled and disappears
when 'H' is hit, because then every thread gets its own output line.
- Allow sorting processes by "threads".
Approved by: davidxu
Inspired by: Jiawei Ye <leafy7382@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
example) view io stats while sorting by process size. Also adds
voluntary and involuntary context-switch stats to the io page because
there was lots of room.
Submitted by: Dan Nelson dnelson at allantgroup.com
|
| |
|
|
|
|
|
|
| |
revisions ago)
Submitted by: Alex Vasylenko <lxv@omut.org>
|
|
|
|
|
|
| |
computing the io statistics over and over not as expensive.
This is a bit of a cop out, as I should just allocate a struct with
the computed values, but this will do for now.
|
|
|
|
|
|
| |
the -m "io" mode of top.
Approved by: alfred
|
| |
|
| |
|
| |
|
|
|
|
| |
commit.
|
| |
|
|
|
|
| |
all it does is provide broken prototypes for standard library functions.
|
| |
|
|
|
|
| |
process filtering logic to prevent this from happening again.
|
| |
|
|
|
|
| |
TODO: Show system totals.
|
|
|
|
|
|
| |
are doing. Toggle this mode by hitting "m" or passing the command line
option "-m io" to top(1). This allows one to identify disk bandwidth
hogs much easier.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
(and not thread) scope is to be displayed, use KERN_PROC_ALL and
accrue CPU% ourselves, as the kernel makes no attempt to do so.
Of course, this doesn't make most stats any less bogus when displaying
threaded processes, but at least the CPU time is added up and not just
always 0.00%. There are still issues with SCHED_ULE in top(1) that
cause other processes to display 0.00% CPU when they in fact have used
more.
|
|
|
|
|
|
|
| |
process. Option -H enables it and it is toggled at the interactive
screen by 'H'.
Submitted by: Jung-uk Kim <jkim@niksun.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The generated manpage will now describe the actual behavior of
top(1) WRT how many processes it displays. This also eliminates
all troff(1) warnings.
|
|
|
|
| |
sizeof(size_t) != sizeof(int).
|
| |
|
| |
|
|
|
|
| |
smp.smp_active sysctl to determine if we are running on an SMP machine.
|
|
|
|
|
|
| |
Submitted by: Andrea Campi <andrea@webcom.it>
Approved by: rwatson
Pointy hat to: myself
|
|
|
|
|
|
|
|
| |
characters. This should avoid unattractive wrapping for people who are
stuck in an 80x24 screen. :-)
PR: 22270
Submitted by: William Carrel <williamc@go2net.com>
|
|
|
|
|
|
|
|
|
|
| |
fscale is a (64-bit) long. So just use a struct loadavg.
This fixes the recent failure of top on alphas:
top: sysctl(vm.loadavg...) failed: Cannot allocate memory
- use size_t for sizeof() so as to fix a few int/long warnings on alpha
Reviewed by: Thomas Moestl <tmoestl@gmx.net>
|
|
|
|
| |
install top with setgid bit.
|
|
|
|
|
|
|
|
| |
available via sysctl(). As a result, top should now be able to run without
setgid kmem.
Submitted by: Thomas Moestl <tmoestl@gmx.net>
Reviewed by: freebsd-audit
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
no longer contains kernel specific data structures, but rather
only scalar values and structures that are already part of the
kernel/user interface, specifically rusage and rtprio. It no
longer contains proc, session, pcred, ucred, procsig, vmspace,
pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If
any of these changed in size, ps, w, fstat, gcore, systat, and
top would all stop working. The new structure has over 200 bytes
of unassigned space for future values to be added, yet is nearly
100 bytes smaller per entry than the structure that it replaced.
|
|
|
|
| |
hardcoded screen width of 80 chars.
|
|
|
|
|
|
|
| |
differentiate mutex names from wait channel names, prefix mutex names with
an asterisk.
Submitted by: Dan Nelson <dnelson@emsphone.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
include:
* Mutual exclusion is used instead of spl*(). See mutex(9). (Note: The
alpha port is still in transition and currently uses both.)
* Per-CPU idle processes.
* Interrupts are run in their own separate kernel threads and can be
preempted (i386 only).
Partially contributed by: BSDi (BSD/OS)
Submissions by (at least): cp, dfr, dillon, grog, jake, jhb, sheldonh
|