48
{
"dimm":"nmem0",
"offset":268435456,
"length":270582939648,
"position":0
}
],
"persistence_domain":"memory_controller",
"namespaces":[
{
"dev":"namespace0.0",
"mode":"fsdax",
"map":"dev",
"size":1598128390144,
"uuid":"06b8536d-4713-487d-891d-795956d94cc9",
"sector_size":512,
"align":2097152,
"blockdev":"pmem0"
}
]
}
]
}
When a file system is created and mounted using /dev/pmem* devices, they can be
identified using the df command as shown in Listing 3-5.
Listing 3-5. Locating persistent memory on Linux.
$ df -h /dev/pmem*
Filesystem
Size Used Avail Use% Mounted on
/dev/pmem0
1.5T 77M 1.4T 1% /mnt/pmemfs0
/dev/pmem1
1.5T 77M 1.4T 1% /mnt/pmemfs1
Windows developers will use PowerShellCmdlets as shown in Listing 3-6. In either
case, assuming the administrator has granted you rights to create files, you can create
one or more files in the persistent memory and then memory map those files to your
application using the same method shown in code Listings 3-1 and 3-2.
Chapter 3 Operating SyStem SuppOrt fOr perSiStent memOry
Précédent

- 77/457

Suivant