Users Guide

Linux
Topics:
Identify and configure persistent memory device
Management utility
Linux errata
Identify and configure persistent memory device
Listing DCPMM devices
To list all physical devices in the system, run command
ndctl list -DHi
Create namespace
The configuration of namespaces will decide how much memory capacity user wants to expose to the OS.
To configure namespace, run the following command:
ndctl create-namespace
Following command needs to be executed for each region created when the goals were created for the system:
ndctl create-namespace -r regionX
After creating name spaces, all name spaces are shown using the following command:
ndctl list -N
To correlate a namespace to a pmem device, use the following command:
lsblk
NOTE:
Ensure you delete all the namespaces before repurposing the DCPMMs. Repurposing includes DCPMM migration,
removal and reconfiguration between memory and App-direct mode
Mount file system on namespace device
After you see the PMEM devices in /device folder, mount the filesystems by using the following commands:
mkfs.xfs -f /dev/pmemX
(X is a natural number ranging from 0 to number of Logical PMEM Devices)
mkdir /mnt/pmemX
mount -o dax /dev/pmemX /mnt/pmemX
10
Linux 39