This ps
works by reading the virtual files in /proc. This ps
does not need to be setuid kmem or have any privileges to run.
Do not give this ps
any special permissions.
CPU usage is currently expressed as the percentage of time spent
running during the entire lifetime of a process. This is not
ideal, and it does not conform to the standards that ps
otherwise
conforms to. CPU usage is unlikely to add up to exactly 100%.
The SIZE and RSS fields don't count some parts of a process
including the page tables, kernel stack, struct thread_info, and
struct task_struct. This is usually at least 20 KiB of memory
that is always resident. SIZE is the virtual size of the process
(code+data+stack).
Processes marked <defunct> are dead processes (so-called
"zombies") that remain because their parent has not destroyed
them properly. These processes will be destroyed by init
(8) if
the parent process exits.
If the length of the username is greater than the length of the
display column, the username will be truncated. See the -o
and
-O
formatting options to customize length.
Commands options such as ps -aux
are not recommended as it is a
confusion of two different standards. According to the POSIX and
UNIX standards, the above command asks to display all processes
with a TTY (generally the commands users are running) plus all
processes owned by a user named x. If that user doesn't exist,
then ps
will assume you really meant ps aux
.