← 返回命令列表

Linux command

smem 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show

smem

Show

smem --users

Filter

smem --userfilter [username]

Show

smem --system

Sort

smem --sort pss

Example

smem --percent

说明

smem reports memory usage with an emphasis on proportional set size (PSS), which is a more meaningful metric than RSS for systems with shared memory. PSS distributes shared memory proportionally among processes sharing it. The tool provides accurate memory usage analysis by accounting for shared libraries and memory-mapped files. This makes it particularly useful for understanding actual per-process memory consumption.

参数

--users
Show memory usage per user
--userfilter _user_
Filter by username
--system
Show system-wide memory information
-c, --columns _columns_
Specify output columns
-s, --sort _column_
Sort by specified column
-r, --reverse
Reverse sort order
-k, --kilounits
Show sizes in kilobytes
-m, --megaunits
Show sizes in megabytes
-p, --percent
Show percentages
-t, --totals
Show totals

FAQ

What is the smem command used for?

smem reports memory usage with an emphasis on proportional set size (PSS), which is a more meaningful metric than RSS for systems with shared memory. PSS distributes shared memory proportionally among processes sharing it. The tool provides accurate memory usage analysis by accounting for shared libraries and memory-mapped files. This makes it particularly useful for understanding actual per-process memory consumption.

How do I run a basic smem example?

Run `smem` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --users do in smem?

Show memory usage per user