Displaying the memory block configuration

7.1 LPAR mode z/VM guest

You can display the configuration of the memory blocks of your Linux® instance by using the lsmem command.

Before you begin

See the lsmem man page for a full description of the command.

About this task

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

Procedure

Use the lsmem command to list your memory blocks.
To display configuration, memmap-on-memory and online status of memory blocks:
# lsmem -o RANGE,SIZE,STATE,BLOCK,CONFIGURED,MEMMAP-ON-MEMORY
              
RANGE                 SIZE   STATE BLOCK CONFIGURED MEMMAP-ON-MEMORY
0x00000000-0x7fffffff   2G  online  0-15        yes               no
0x80000000-0xbfffffff   1G offline 16-23         no              yes

Memory block size:                128M
Total online memory:                2G
Total offline memory:               1G
Memmap on memory parameter:        yes
In the example, the Range column is limited to 8 digits for user-friendly output display. Use lsmem --output-all to display all columns.