-K KERNEL, --kernel=KERNEL
Path to an uncompressed kernel image. This lets smem include the size of the kernel's code and
statically allocated data in the systemwide (-w) output. (To obtain an uncompressed image of a
kernel on disk, you may need to build the kernel yourself, then locate file vmlinux in the source
tree.)
|
-R REALMEM, --realmem=REALMEM
Amount of physical RAM. This lets smem detect the amount of memory used by firmware/hardware in
the systemwide (-w) output. If provided, it will also be used as the total memory size to base
percentages on. Example: --realmem=1024M
|
-S SOURCE, --source=SOURCE
/proc data source. This lets you specify an alternate source of the /proc data. For example, you
can capture data from an embedded system using smemcap, and parse the data later on a different
machine. If the --source option is not included, smem reports memory usage on the running system.
REPORT BY
If none of the following options are included, smem reports memory usage by process.
|
-m, --mappings
Report memory usage by mapping.
|
-u, --users
Report memory usage by user.
|
-w, --system
Report systemwide memory usage summary.
FILTER BY
If none of these options are included, memory usage is reported for all processes, users, or mappings.
(Note: If you are running as a non-root user, and if you are not using the --source options, then you
will only see data from processes whose /proc/ information you have access to.)
|
-M MAPFILTER, --mapfilter=MAPFILTER
Mapping filter regular expression.
|
-P PROCESSFILTER, --processfilter=PROCESSFILTER
Process filter regular expression.
|
-U USERFILTER, --userfilter=USERFILTER
User filter regular expression.
OUTPUT FORMATTING
-c COLUMNS, --columns=COLUMNS
Columns to show.
|
-H, --no-header
Disable header line.
|
-k, --abbreviate
Show unit suffixes.
|
-n, --numeric
Show numeric user IDs instead of usernames.
|
-p, --percent
Show percentages.
|
-r, --reverse
Reverse sort.
|
-s SORT, --sort=SORT
Field to sort on.
|
-t, --totals
Show totals.
OUTPUT TYPE
These options specify graphical output styles.
|
--bar=BAR
Show bar graph.
|
--pie=PIE
Show pie graph.
|