ndctl icon indicating copy to clipboard operation
ndctl copied to clipboard

ndctl create-namespace --continue should work with other options

Open sscargal opened this issue 3 years ago • 1 comments

The --continue option works when we want to create a single namespace per region across all regions. It does not work when we provide other argument options such as --size.

Example:

On a system with 2 x 1.5TB regions:

# ipmctl show -region
 SocketID | ISetID             | PersistentMemoryType | Capacity     | FreeCapacity | HealthState
==================================================================================================
 0x0000   | 0x2d3c7f48f4e22ccc | AppDirect            | 1512.000 GiB | 1512.000 GiB | Healthy
 0x0001   | 0xdd387f488ce42ccc | AppDirect            | 1512.000 GiB | 1512.000 GiB | Healthy

Creating namespaces using --continue creates a single namespace vs two:

# ndctl create-namespace --size 756G --region 0 --continue
{
  "dev":"namespace0.0",
  "mode":"fsdax",
  "map":"dev",
  "size":"744.19 GiB (799.06 GB)",
  "uuid":"88b18858-5dc4-4eaf-83e6-8d12d84e02db",
  "sector_size":512,
  "align":2097152,
  "blockdev":"pmem0"
}
created 1 namespace

The workaround is to execute as many ndctl create-namespace --size <size> [opts] as required to fill the region capacity, which is inefficient when we have the --continue option.

sscargal avatar Mar 24 '22 17:03 sscargal

This feature would be very useful for DAOS as we will be supporting multiple SCM namespaces (and I/O engines) per NUMA node in the future.

tanabarr avatar Mar 24 '22 21:03 tanabarr