'\" t .\" Title: ipmctl-show-memory-resources .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.12 .\" Date: 2021-02-17 .\" Manual: ipmctl .\" Source: ipmctl .\" Language: English .\" .TH "IPMCTL\-SHOW\-MEMORY\-RESOURCES" "1" "2021-02-17" "ipmctl" "ipmctl" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" ipmctl\-show\-memory\-resources \- Shows PMem module and DDR memory allocation .SH "SYNOPSIS" .sp .if n .RS 4 .nf .fam C ipmctl show [OPTIONS] \-memoryresources .fam .fi .if n .RE .SH "DESCRIPTION" .sp Shows PMem module and DDR memory allocation information for this platform. .SH "OPTIONS" .sp \-h, \-help .RS 4 Displays help for the command. .RE .sp \-ddrt .RS 4 Used to specify DDRT as the desired transport protocol for the current invocation of ipmctl. .RE .sp \-smbus .RS 4 Used to specify SMBUS as the desired transport protocol for the current invocation of ipmctl. .RE .if n .sp .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 .B Note .ps -1 .br .sp The \-ddrt and \-smbus options are mutually exclusive and may not be used together. .sp .5v .RE .sp \-o (text|nvmxml), \-output (text|nvmxml) .RS 4 Changes the output format. One of: "text" (default) or "nvmxml". .RE .sp \-u (B|MB|MiB|GB|GiB|TB| TiB), \-units (B|MB|MiB|GB|GiB|TB| TiB) .RS 4 Changes the units that capacities are displayed in for this command. One of: bytes (B), megabytes (MB), mebibytes (MiB), gigabytes (GB), gibibytes (GiB), terabytes (TB) or tebibytes (TiB). .RE .SH "EXAMPLES" .sp Shows the PMem module and DDR memory allocation. .sp .if n .RS 4 .nf .fam C ipmctl show \-memoryresources .fam .fi .if n .RE .SH "LIMITATIONS" .sp In order to successfully execute this command: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} The caller must have the appropriate privileges. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} The specified PMem modules must be manageable by the host software. .RE .SH "RETURN DATA" .sp Returns a table containing the attributes listed below. .if n .sp .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 .B Note .ps -1 .br .sp Capacities from unmanageable PMem modules are not included in the following aggregated totals. .sp .5v .RE .sp Volatile DDR Capacity .RS 4 Total DDR capacity that is used as volatile memory. .RE .sp Volatile PMem module Capacity .RS 4 Total PMem module capacity that is used as volatile memory. .RE .sp Total Volatile Capacity .RS 4 Total DDR and PMem module capacity that is used as volatile memory. .RE .sp AppDirect PMem module Capacity .RS 4 Total PMem module capacity used as persistent memory. .RE .sp Total AppDirect Capacity .RS 4 Total DDR and PMem module capacity used as persistent memory. .RE .sp Cache DDR Capacity .RS 4 Total DDR capacity used as a cache for PMem modules. .RE .sp Total Cache Capacity .RS 4 Total DDR capacity used as a cache for PMem modules. .RE .sp Inaccessible DDR Capacity .RS 4 Total DDR capacity that is inaccessible. .RE .sp Inaccessible PMem module Capacity .RS 4 Total PMem module capacity that is inaccessible due to any of: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} Platform configuration prevents accessing this capacity. For example, MemoryCapacity is configured but MemoryMode is not enabled by platform FW (current Memory Mode is 1LM). .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} Capacity is inaccessible because it is not mapped into the System Physical Address space (SPA). This is usually due to platform firmware memory alignment requirements. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} Persistent capacity that is reserved. This capacity is the persistent memory partition capacity (rounded down for alignment) less any App Direct capacity. Reserved capacity typically results from a Memory Allocation Goal request that specified the Reserved property. This capacity is not mapped to System Physical Address space (SPA). .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} Capacity that is unusable because it has not been configured. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} PMem module configured capacity but SKU prevents usage. For example, AppDirectCapacity but PMem module SKU is MemoryMode only. .RE .RE .sp Total Inaccessible Capacity .RS 4 Total capacity of DDR and PMem module that is inaccessible. .RE .sp Physical DDR Capacity .RS 4 Total physical DDR capacity populated on the platform. .RE .sp Physical PMem module Capacity .RS 4 Total physical PMem module capacity populated on the platform. .RE .sp Total Physical Capacity .RS 4 Total physical capacity populated on the platform. .RE .SH "DETAILS" .sp PMem modules are partitioned into Memory and Persistent partitions. Memory partitions are aligned on a 1 GiB boundary by ipmctl with the Persistent partition consuming the remaining capacity. Any capacity that falls outside the Memory and Persistent partitions is InaccessibleCapacity and is not useable. If the PMem module is configured for 100% Memory Mode, then the Memory partition consumes all of the capacity and the Persistent partition has none. .sp The mode determines how the DDR capacities are allocated. In 1LM and AppDirect, all DDR capacity is used as additional volatile memory. In MemoryMode, all DDR capacity that the CPU will support is used as a cache for the PMem module. .sp Platform firmware alignment restrictions may result in some capacity from the Memory and Persistent partitions not mapped to System Physical Address space (SPA). This memory is considered InaccessibleCapacity and is not usable. .sp The definitions and calculations that follow intend to describe how each of the values are determined. .sp \fBDefinitions:\fP .sp Intel PMem module Current Config .RS 4 See the \fIIntel\(rg Optane\(tm Persistent Memory Software\-Firmware Interface Specification\fP for details. .RE .sp PMem module Partition Info .RS 4 PMem module partition information provided by PMem module firmware. See the \fIIntel\(rg Optane\(tm Persistent Memory Module Firmware Interface Specification\fP for details. .RE .sp PMem module Physical Capacity (PC) .RS 4 Raw capacity (total usable) reported by PMem module Partition Info .RE .sp PMem module Memory Partition Capacity (MPC) .RS 4 Volatile capacity reported by PMem module Partition Info .RE .sp PMem module Persistent Partition Capacity (PPC) .RS 4 Persistent capacity reported by PMem module Partition Info .RE .sp PMem module Volatile Memory Capacity (VMC) .RS 4 Usable volatile memory capacity as reported by platform FW via the \fIIntel PMem module Current Config\(->Volatile Memory Size Mapped into SPA\fP field .RE .sp PMem module Persistent Memory Capacity (PMC) .RS 4 Usable persistent memory capacity as reported by platform FW via the \fIIntel PMem module Current Config\(->Persistent Memory Size Mapped into SPA\fP field .RE .sp DDR Total Capacity (DDRTC) .RS 4 Total amount of memory available for use on the populated DDRs .RE .sp \fBCalculations:\fP .sp .if n .RS 4 .nf .fam C if (CurrentMode == 1LM) then DDRCacheCapacity = 0 DDRVolatileCapacity = DDRTC else if (CurrentMode == 2LM) then DDRCacheCapacity = DDRTC DDRVolatileCapacity = 0 .fam .fi .if n .RE .sp .if n .RS 4 .nf .fam C TotalVolatileCapacity = VMC + DDRVolatileCapacity .fam .fi .if n .RE .sp .if n .RS 4 .nf .fam C InaccessibleCapacity = PC \- PMC if (CurrentMode != 1LM) then InaccessibleCapacity \-= VMC (rounded down for alignment) .fam .fi .if n .RE