--- layout: default title: usr/share/doc/sysbox/html/tool/lsmem.html --- Sysbox: lsmem

Sysbox: lsmem

Usage: lsmem [OPTION]...

List system memories or virtual spaces. This tool can print all memory chunks and virtual spaces added to the kernel. The displayed memory chunk list includes the available (regular allocatable memory) and hardware (not freely allocatable, requires exact addresses to able to allocate it) memories. The free space is also displayed for the normal (AVAIL type) memory chunks. For hardware memory chunks it is always zero.

Options:

Examples:

$ lsmem
   Handle      Begin        End Size Free   Flags Type
0x1000000 0x00100000 0x01BFFFFF  27M  16M MA-----    0
0x1000004 0x01C00000 0x0D4FFFFF 184M 107M -A-----    0
0x2000005 0x0D500000 0x0F7FFFFF  35M  35M -A-----    0
0x7000A38 0xF0000000 0xF0FFFFFF  16M   0M -------    0
0x7000A37 0xF1000000 0xF17FFFFF   8M   0M -------    0
0x4000A46 0xF1800000 0xF181FFFF   0M   0M -------    0
0x1000419 0xFC000000 0xFC000FFF   0M   0M -------  254
0x100041D 0xFEC00000 0xFEC00FFF   0M   0M -------    0
0x100041C 0xFED00000 0xFED00FFF   0M   0M -------    0

                                270M 158M             

9 memory chunks
$
$ lsmem -va
   Handle         Begin           End         Size Global Type
0x1000006 0x10000000000 0x13FFFFFFFFF 0x4000000000    yes    0
0x1000007 0x20000000000 0x2007FFFFFFF 0x0080000000    yes    0

                                      0x4080000000            

2 virtual spaces
$