smemstat(8) report memory usage with shared memory divided proportionally


smemstat [options] [delay [count]]


smemstat reports the physical memory usage taking into consideration shared memory.

Swap reports memory that is swapped out to disk. Unshared memory is reported as USS (Unique Set Size). Unshared memory including the proportion of shared memory is reported as the PSS (Proportional Set Size). The non-swapped physical memory is reported as the RSS (Resident Set Size).

Running with root privilege will report all user space processes, otherwise running without will just report the current user's processes.

If a delay and count are not specified, a snapshot of the current memory used by the user's processes is report.

If a delay in seconds is specified, smemstat will periodically show any per-process changes in memory; the interval being the specified delay. This will run indefinitely until a SIGINT is caught. Specifying count will repeat the periodic output count number of times.


smemstat options are as follow:
get command information from processes comm field
strip directory basename off command information
report memory in gigabytes
show help
report memory in kilobytes
show long (full) command information
report memory in megabytes
-o file
output data into a JSON formatted file
-p proclist
specify a comma separated list of processes to monitor. The process list may contain one or more PIDs or process names.
run quietly, only really makes sense with -o option
show short command information


smemstat was written by Colin King <[email protected]>

This manual page was written by Colin King <[email protected]>, for the Ubuntu project (but may be used by others).


Copyright © 2014-2015 Canonical Ltd.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.