Age | Commit message (Collapse) | Author |
|
(event though the documentation does not yet state that proc allows
setpriority for renice)
Problem found by me, tweak suggested by theo buehler
Committed prompted by deraadt@
|
|
|
|
|
|
libc isn't (yet) any better, but it can improve with time.
|
|
|
|
|
|
|
|
ok krw millert
|
|
is used.
The rationnal is that when you're looking at threads you're generally
already filtereing by PID and this allow you to see which thread is a
pig.
Written some time ago with mikeb@
ok sthen@, krw@, guenther@
|
|
Predefined strings are not very portable across troff implementations,
and they make the source much harder to read. Usually the intended
character can be written directly.
No output changes, except for two instances where the incorrect escape
was used in the first place.
tweaks + ok schwarze@
|
|
There's no need for crazy casts of p_pctcpu in ORDERKEY_PCTCPU
since kinfo_proc exports it as uint32_t. OK deraadt@
|
|
the header version
ok guenther
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
"makes sense" theo
|
|
than 8 cpus are detected in the system.
|
|
|
|
you passed -1 on the command line).
ok kettenis@ tedu@
|
|
related to disk stastics for almost 17 years, and the remaining
userland-visible defines duplicate those found in <sys/sched.h>.
Move the remaining _KERNEL defines to <sys/tty.h> where they belong, and
update all users to cope with this.
ok kettenis@
|
|
found with the new mandoc(1) MANDOCERR_AN_MISSING warning;
no text changes
|
|
|
|
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the
"most active" scheduler state for the process's threads.
tweaks kettenis@
feedback and ok matthew@
|
|
include <sys/vmmeter.h> where it is needed instead of relying on
it being included by <uvm/uvm_extern.h>.
miod@ likes it, ok guenther@
|
|
Otherwise, top may spin when its tty goes away. OK deraadt@
|
|
until it stops returning that, resetting the cursor position each time.
hint from Gregor Best (gbe (at) ring0.de)
problem noted by and ok sthen@
|
|
ok krw okan
|
|
(5 arrays of that size, so we're talking a data increase of 2.5K)
okay otto@
|
|
ok deraadt@
|
|
(wmesg hasn't itself been a pointer since conversion to kinfo_proc.)
noticed by sthen.
ok deraadt jsing millert sthen
|
|
ok jsing@
|
|
original diff by zhuk@
ok jsing@ mpi@ zhuk@
|
|
is no direct need for sys/proc.h or sys/resource.h. Some consumers
of kinfo_proc need these for the proc flags and rlimit defines like
RLIM_INF so add the appropriate includes to them.
OK deraadt@ sthen@
|
|
ok guenther millert kettenis
|
|
in a fire. Start by removing the definitions, before we clean the
headers later.
|
|
ommitted from 1.78. Now a $ top -U -username -U username command will
behave the same as interactive mode. ok brynet@
|
|
|
|
feedback & ok lum@
|
|
This lets new binaries work (at least w/o the -H option) with old kernels.
ok pirofti@ deraadt@
|
|
|
|
thread information.
Add a KERN_PROC_SHOW_THREADS flag that has to be set in order to get the
thread info and make it off by default. This creates backwards compatibility
for applications that relied on a given size/number of items to be returned.
Modify ps(1) and top(1) accordingly.
Okay guenther@.
|
|
This makes:
This terminal can only display -N processes.
a thing of the past.
|
|
This expands the already bloated FILL_KPROC macro to take an extra
parameter that indicates if the callee is a thread or a process.
The userland bits are adjusted accordingly and ps(1) and top(1) now
display per thread usage times when -H is used.
Also pkill(1) had to be adjusted so that duplicates don't pop up.
libkvm does basically the same thing as the kernel bits.
Okay guenther@.
|
|
consistent with our ps(1) and top(1) on other operating systems.
ok deraadt@ mikeb@ millert@
|
|
|
|
that we've got name we want for the API we want
"ZAP!" deraadt@
|
|
from David Vasek and Glen Anderson
|
|
"multiprocessor" in a consistent way.
written with lots of good advice from jmc@, who noted that changing
hier(7) was not enough and carefully reviewed this diff.
ok jmc@
|
|
|
|
|
|
|
|
|