[% META title = 'Resources » Process Status' -%] [% # PROCESS dumper.tt dump = data %]

Process status [[% cmd %]]

[% headers = [ 'user' 'pid' 'cpu' '%mem' 'vsv' 'rss' 'start' 'time' 'cmd' 'owner' ]; cfg = c.cfg('settings'); is_sysadmin = ( cfg.item('_centre') == cfg.sysadmin_centre ) ? 1 : 0; headers.push('kill') IF is_sysadmin; %]
[% FOREACH h IN headers %] [% END %] [% FOREACH row IN data; class = row.7.match('0:00') ? 'grey' : 'normal'; pid = row.1; owner = row.9; %] [% FOREACH col IN row %][% END %] [% END %]
[% h %]
[% col %] [% IF owner.match('zombie') AND is_sysadmin %] [% ELSE; '--'; END %]
[% site.html.back_button %] [% IF is_sysadmin %] kill selected: [% END %]

Definitions (man ps):

%cpu
cpu utilization of the process in "##.#" format. Currently, it is the CPU time used divided by the time the process has been running (cputime/realtime ratio), expressed as a percentage. It will not add up to 100% unless you are lucky.
%mem
ratio of the process's resident set size to the physical memory on the machine, expressed as a percentage.
vsv
virtual memory size of the process in KiB 1024-byte units). Device mappings are currently excluded; this is subject to change.
rss
resident set size, the non-swapped physical memory that a task has used (in kiloBytes).
start
time the command started. If the process was started less than 24 hours ago, the output format is "HH:MM:SS", else it is " mmm dd" (where mmm is a three-letter month name).
time
cumulative CPU time, "[dd-]hh:mm:ss" format.