Home Explore Blog CI



man-pages

12th chunk of `top.man`
ccd404beb7dbe85bed4966408ded50715a47c137c962f4880000000100000fdb
 Memory, smaps (KiB)
       PSfd  --  Proportional File Memory, smaps (KiB)
       PSsh  --  Proportional Shmem Memory, smaps (KiB)
           As was true for ‘PSS’ above (total proportional resident memory), these fields represent the proportion of this task’s share of each type of memory divided by the number of processes sharing it.

           Accessing smaps values is 10x more costly than other memory statistics and data for other users requires root privileges.

       RES  --  Resident Memory Size (KiB)
           A subset of the virtual address space (VIRT) representing the non‐swapped physical memory a task is currently using.  It is also the sum of the ‘RSan’, ‘RSfd’ and ‘RSsh’ fields.

           It can include private anonymous pages, private pages mapped to files (including program images and shared libraries) plus shared anonymous pages.  All such memory is backed by the swap file represented separately
           under SWAP.

           Lastly, this field may also include shared file‐backed pages which, when modified, act as a dedicated swap file and thus will never impact SWAP.

           See ‘OVERVIEW, Linux Memory Types’ for additional details.

       RSS  --  Resident Memory, smaps (KiB)
           Another, more precise view of process non‐swapped physical memory.  It is obtained from the ‘smaps_rollup’ file and is generally slightly larger than that shown for ‘RES’.

           Accessing smaps values is 10x more costly than other memory statistics and data for other users requires root privileges.

       RSan  --  Resident Anonymous Memory Size (KiB)
           A subset of resident memory (RES) representing private pages not mapped to a file.

       RSfd  --  Resident File‐Backed Memory Size (KiB)
           A subset of resident memory (RES) representing the implicitly shared pages supporting program images and shared libraries.  It also includes explicit file mappings, both private and shared.

       RSlk  --  Resident Locked Memory Size (KiB)
           A subset of resident memory (RES) which cannot be swapped out.

       RSsh  --  Resident Shared Memory Size (KiB)
           A subset of resident memory (RES) representing the explicitly shared anonymous shm*/mmap pages.

       RUID  --  Real User Id
           The real user ID.

       RUSER  --  Real User Name
           The real user name.

       S  --  Process Status
           The status of the task which can be one of:
               D = uninterruptible sleep
               I = idle
               R = running
               S = sleeping
               T = stopped by job control signal
               t = stopped by debugger during trace
               Z = zombie

           Tasks shown as running should be more properly thought of as ready to run  --  their task_struct is simply represented on the Linux run‐queue.  Even without a true SMP machine, you may see numerous tasks  in  this
           state depending on top’s delay interval and nice value.

       SHR  --  Shared Memory Size (KiB)
           A  subset  of  resident  memory (RES) that may be used by other processes.  It will include shared anonymous pages and shared file‐backed pages.  It also includes private pages mapped to files representing program
           images and shared libraries.

           See ‘OVERVIEW, Linux Memory Types’ for additional details.

       SID  --  Session Id
           A session is a collection of process groups (see PGRP), usually established by the login shell.  A newly forked process joins the session of its creator.  By convention, this value equals the process ID (see  PID)
           of the first member of the session, called the session leader, which is usually the login shell.

       STARTED  --  Start Time Interval
           The length of time since system boot when a process started.  Thus, the most recently started task will display the largest time interval.

           The value will be expressed as ‘MM:SS’ (minutes:seconds).  But if the interval

Title: Top Command: Field Descriptions (Continued)
Summary
This section continues describing process fields in the `top` command, including RES, RSS, RSan, RSfd, RSlk, RSsh, RUID, RUSER, S, SHR, SID, and STARTED. These fields represent resident memory size, resident memory (smaps), resident anonymous memory size, resident file-backed memory size, resident locked memory size, resident shared memory size, real user ID, real user name, process status, shared memory size, session ID, and start time interval, respectively. It also details the possible status codes for the 'S' field.