| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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
|
|
|
|
|
| |
This also prevents the line-wrap and messed up display that occurs
when there happens to be one or more names with 15 chars.
|
|
|
|
|
|
|
|
|
|
|
|
| |
seconds caused overflow. Use a type-safe but slightly slower comparison.
Comparisons for other fields are still fragile.
Fixed rounding of cputime (don't do extra work to get it slightly wrong
by first converting without rounding to milliseconds).
Removed dead code for setting cputime.
Fixed comments about cputime.
|
| |
|
| |
|
|
|
|
| |
that went away in January.
|
|
|
|
|
|
| |
posix sched_setscheduler() to set their priority.
Noticed by: Mark Allwright <mallwri@orion.didata.co.za>
|
|
|
|
| |
Submitted by: Seigo TANIMURA <tanimura@naklab.dnj.ynu.ac.jp>
|
|
|
|
|
|
| |
numbers as chars or use bogus casts in an attempt to unmisrepresnt
them. In top, don't assume that 0xff is the only negative cpu
number when cpu numbers are (mis)represented.
|
|
|
|
|
|
| |
only likely to happen when you have a kernel<>userland mismatch,
but it's really annoying when top dumps core and leaves the terminal
in a mangled state; it's much nicer to print nicely formatted gibberish.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
to half compensate for broken scaling of p_pctcpu in the kernel, but the
previous commit removed this compensation. %cpu values will be wrong by
a factor of stathz/hz until the kernel is fixed. (The kernel gets it
wrong by a factor of stathz/hz, and top got the compensation wrong by
a factor of 100/stathz.)
|
|
|
|
| |
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
|
|
|
|
| |
Obtained from: pstat.c
|
| |
|
|
|
|
|
|
|
|
| |
Attempts to contact the author of top(1) (William LeFebvre) have so
far been unsuccessful.
PR: 7253
Submitted by: Yours Truly
|
| |
|
|
|
|
| |
Obtained from: ps(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clean up (or if antipodic: down) some of the msgbuf stuff.
Use an inline function rather than a macro for timecounter delta.
Maintain process "on-cpu" time as 64 bits of microseconds to avoid
needless second rollover overhead.
Avoid calling microuptime the second time in mi_switch() if we do
not pass through _idle in cpu_switch()
This should reduce our context-switch overhead a bit, in particular
on pre-P5 and SMP systems.
WARNING: Programs which muck about with struct proc in userland
will have to be fixed.
Reviewed, but found imperfect by: bde
|
|
|
|
|
|
|
| |
but that isn't suitable (it gets zeroed each second apparently).
PR: bin/4957
Submitted-by: Dan Nelson <dnelson@emsphone.com>
|
|
|
|
| |
Everything following bumps right 1 character.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
username present on the system at startup and use that for the field width.
It's not ideal but (I think) better than it was before. The width is
limited to within 8..16.
|
|
|
|
| |
appearing on uniprocessor systems since the smp->current merge.
|
| |
|
| |
|
|
|
|
| |
is remotely useful
|
| |
|
|
that pulls all the files from contrib.
Obtained from: The ports collection (mostly).
|