Procstat

From wikinotes
Revision as of 14:59, 28 August 2020 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

List detailed information about a process, including reserved memory ranges.

  PID              START                END PRT  RES PRES REF SHD FLAG  TP PATH
 8146           0x200000           0x230000 r--   34  135   9   3 CN--- vn /usr/local/bin/tmux
 8146           0x230000           0x29b000 r-x   99  135   9   3 CN--- vn /usr/local/bin/tmux
 8146           0x29b000           0x29c000 rw-    1    0   1   0 C---- vn /usr/local/bin/tmux
 8146           0x29c000           0x29d000 r--    1    3   2   0 ----- df

Usage

procstat -av      # detailed info about all processes
procstat -v $pid  # detaild info about a single target process

Columns

START  # start memory addr
END    # end memory addr
RES    # resident memory (pages?)