OS Manuals

/usr/bin/lsmem

Misc binaries for util-linux

From util-linux-misc 2.42.4-r2 (os), captured 2026-11-05 by running lsmem --help (exit 0). permalink

Usage:
 lsmem [options]

List the ranges of available memory with their online status.

Options:
 -J, --json           use JSON output format
 -P, --pairs          use key="value" output format
 -a, --all            list each individual memory block
 -b, --bytes          print SIZE in bytes rather than in human readable format
 -n, --noheadings     don't print headings
 -o, --output <list>  output columns
     --output-all     output all columns
 -r, --raw            use raw output format
 -S, --split <list>   split ranges by specified columns
 -s, --sysroot <dir>  use the specified directory as system root
     --summary[=when] print summary information (never,always or only)

 -h, --help           display this help
 -V, --version        display version

Available output columns:
      RANGE  start and end address of the memory range
       SIZE  size of the memory range
      STATE  online status of the memory range
  REMOVABLE  memory is removable
      BLOCK  memory block number or blocks range
       NODE  numa node of memory
      ZONES  valid zones for the memory range
 CONFIGURED  configuration status of the memory range
 MEMMAP-ON-MEMORY  memmap-on-memory status of the memory range

For more details see lsmem(1).
Options (13)
OptionDescriptionSource
-J, --jsonUse JSON output format.help + man
-P, --pairsProduce output in the form of key="value" pairs.help + man
-a, --allList each individual memory block, instead of combining memory blocks with similar attributes.help + man
-b, --bytesprint SIZE in bytes rather than in human readable formathelp + man
-n, --noheadingsDo not print a header line.help + man
-o, --output listSpecify which output columns to print.help + man
--output-allOutput all available columns.help + man
-r, --rawProduce output in raw format.help + man
-S, --split listSpecify which columns are used to split memory blocks into ranges.help + man
-s, --sysroot dirGather memory data for a Linux instance other than the instance from which the lsmem command is issued.help + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
--summary whenThis option controls summary lines output. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.