Forrest logo
tool overview
On this page you find all important commands for the CLI tool smem. If the command you are looking for is missing please ask our AI.

smem

smem is a command line tool used in Linux systems to gather memory usage information. It stands for "system memory utilization monitor."

It provides a useful way to view memory consumption by processes and the overall system. When executing smem without any options, it presents statistics about system memory usage, including total memory, used memory, and available memory.

In addition to general memory info, smem provides detailed statistics on memory consumption by individual processes. It displays various memory metrics such as Resident Set Size (RSS), Proportional Set Size (PSS), and Shared Memory (Shmem) for each process.

Furthermore, smem allows users to sort and filter the memory usage information based on specific criteria like process name, user, or memory size. This allows for a more targeted analysis of memory consumption.

smem also has the option to output the memory usage data in different formats such as CSV, JSON, or XML, making it easier to integrate the tool with other applications or scripts for further processing.

Finally, smem provides an interactive mode, where users can navigate through memory usage data dynamically and interactively, making it easier to analyze and troubleshoot memory-related issues in real-time.

List of commands for smem:

  • smem:tldr:23651 smem: Print memory usage for current processes.
    $ smem
    try on your machine
    explain this command
  • smem:tldr:ad524 smem: Print memory usage for current processes for a every user on a system.
    $ smem --users
    try on your machine
    explain this command
  • smem:tldr:b61ad smem: Print memory usage for current processes for a specified user.
    $ smem --userfilter ${username}
    try on your machine
    explain this command
  • smem:tldr:d96ad smem: Print system memory information.
    $ smem --system
    try on your machine
    explain this command
tool overview