Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

ixpdimm_cli: encounter "segmentation fault" while creating namespace in app direct mode of Apache_Pass(intel) #11

Closed
insanecoderr opened this issue Jan 31, 2018 · 23 comments
Assignees

Comments

@insanecoderr
Copy link

insanecoderr commented Jan 31, 2018

After compiling the master branch of ixpdimm-sw successfully,I started to install the rpms on the EulerOS(basically same as Centos7). Then, I resolved the dependencies and installed it.

The creation of app direct mode is successful(2-1-1 polulation on single CPU),however when I start to create an appdirecct namespace,"segmentation fault" occurs. Curiously, I found that the /dev/pmem2 exists upon the app direct pool is created

[root@localhost ~]# ixpdimm-cli show -pool
PoolID PersistentMemoryType Capacity FreeCapacity
51428255-2a16-6258-b876-f9a2d33cb55b AppDirect 252.0 GiB 252.0 GiB

[root@localhost ~]# ixpdimm-cli create -namespace -pool 51428255-2a16-6258-b876-f9a2d33cb55b persistentmemorytype=appdirect
Segmentation fault
[root@localhost ~]# ixpdimm-cli show -namespace
No results
[root@localhost ~]# ls /dev/pmem*
/dev/pmem2
[root@localhost ~]#

@juston-li

@insanecoderr insanecoderr changed the title ixpdimm_cli: encounter "segmentation fault" while creating namespace in app direct mode of AEP ixpdimm_cli: encounter "segmentation fault" while creating namespace in app direct mode of Apache_Pass(intel) Jan 31, 2018
@juston-li juston-li self-assigned this Jan 31, 2018
@juston-li
Copy link

juston-li commented Jan 31, 2018

Might be the same issue as #10

To confirm, could you run the command with the '-o verbose' option

ixpdimm-cli create -o verbose -namespace -pool 51428255-2a16-6258-b876-f9a2d33cb55b persistentmemorytype=appdirect

And also check for that sysfs file in that issue

@insanecoderr
Copy link
Author

@juston-li
Thanks for you reply,and here is the result:
[root@localhost ~]# ixpdimm-cli create -o verbose -namespace -pool 51428255-2a16-6258-b876-f9a2d33cb55b persistentmemorytype=appdirect
Partition info for handle [33210368] - Pmem Capacity:[0]B, Volatile memory capacity:[139887118055408]B, Raw capacity:[2224793059329]B
Partition info for handle [33210368] - Pmem Capacity:[0]B, Volatile memory capacity:[139887118055408]B, Raw capacity:[2224793059585]B
Partition info for handle [33210368] - Pmem Capacity:[0]B, Volatile memory capacity:[139887118055408]B, Raw capacity:[2224793059329]B
Partition info for handle [33210368] - Pmem Capacity:[0]B, Volatile memory capacity:[139887118055408]B, Raw capacity:[2224793059585]B
Config Data Table Header - Signature: DMHD<
Config Data Table Header - Length: 60
Config Data Table Header - Revision: 1
Config Data Table Header - Checksum: 18
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
PCD Header - Current Config Size: 176
PCD Header - Current Config Offset: 60
PCD Header - Input Config Size: 184
PCD Header - Input Config Offset: 236
PCD Header - Output Config Size: 184
PCD Header - Output Config Offset: 420
Config Data Table Header - Signature: CCUR?
Config Data Table Header - Length: 176
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 33
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Current Config Table - Config Status: 1
Current Config Table - Config Mapped Memory: 0
Current Config Table - Config Mapped App Direct: 135291469824
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 1
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a217230000050e
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
DIMM Info Extension Table - UID: 0x8680a2172300000917
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
Config Data Table Header - Signature: CIN_?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 252
Config Data Table Header - OEM_ID: INTEL PURLEY
Config Data Table Header - OEM_TABLE_ID: PURLEY
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 0
Config Input Table - Sequence_number: 1
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 136088322048
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 1
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a217230000050e
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
DIMM Info Extension Table - UID: 0x8680a2172300000917
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
Config Data Table Header - Signature: COUT?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 72
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Config Output Table - Sequence Number: 1
Config Output Table - Validation Status: 1
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 136088322048
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 1
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a217230000050e
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
DIMM Info Extension Table - UID: 0x8680a2172300000917
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
Config Data Table Header - Signature: DMHD<
Config Data Table Header - Length: 60
Config Data Table Header - Revision: 1
Config Data Table Header - Checksum: 18
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
PCD Header - Current Config Size: 176
PCD Header - Current Config Offset: 60
PCD Header - Input Config Size: 184
PCD Header - Input Config Offset: 236
PCD Header - Output Config Size: 184
PCD Header - Output Config Offset: 420
Config Data Table Header - Signature: CCUR?
Config Data Table Header - Length: 176
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 33
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Current Config Table - Config Status: 1
Current Config Table - Config Mapped Memory: 0
Current Config Table - Config Mapped App Direct: 135291469824
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 1
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a217230000050e
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
DIMM Info Extension Table - UID: 0x8680a2172300000917
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
Config Data Table Header - Signature: CIN_?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 252
Config Data Table Header - OEM_ID: INTEL PURLEY
Config Data Table Header - OEM_TABLE_ID: PURLEY
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 0
Config Input Table - Sequence_number: 1
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 136088322048
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 1
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a217230000050e
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
DIMM Info Extension Table - UID: 0x8680a2172300000917
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
Config Data Table Header - Signature: COUT?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 72
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Config Output Table - Sequence Number: 1
Config Output Table - Validation Status: 1
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 136088322048
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 1
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a217230000050e
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
DIMM Info Extension Table - UID: 0x8680a2172300000917
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 135291469824
Partition info for handle [33210368] - Pmem Capacity:[0]B, Volatile memory capacity:[5098826646601529328]B, Raw capacity:[2224793059329]B
Partition info for handle [33210368] - Pmem Capacity:[0]B, Volatile memory capacity:[5098826646601529328]B, Raw capacity:[2224793059585]B
Creating App Direct namespace on interleave set 1
Enabling labels for spa index: 1
Region region2 appears to be "label-less"
Segmentation fault

It reports “label-less”,what shoud i do then ?

For sysfs file, i am not clear what to check,can you be more specific?
[root@localhost sys]# ls
block bus class dev devices firmware fs hypervisor kernel module power
[root@localhost sys]#

@juston-li
Copy link

juston-li commented Feb 1, 2018

What kernel are you running?

linux automatically initialize namespaces without labels so thats why you already have namespaces show up after creating a pool.
Kernels older than 4.10 don't have support to force use of labels which is what it is trying to do in your log.

Will need an updated/patched kernel to support creating labeled namespaces with our tool
This is the specific commit that adds support to kernel https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/nvdimm?h=v4.15-rc9&id=42237e393f64d619ed56e17fbf8fd27526485695

@insanecoderr
Copy link
Author

I have confirmed that the kernel is kinda older,thanks a lot. Next i will try to patch the kernel

@insanecoderr
Copy link
Author

my kernel is
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-514.32.3.18.h23.x86_64 #1 SMP Mon Nov 6 13:40:53 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#

where can I get the patch rpm packet so that i can install it by myself. My friend who is familiar with the kernel is quite busy right now,and i should patch it myself!

Thanks

@insanecoderr
Copy link
Author

@juston-li could u plesase help me with the above questions?

@juston-li
Copy link

I'm afraid I can't help much with a patch rpm. I just compile and install kernel from source.

Maybe check with your distro if there's updated kernels. I think the patches got backported to centos 7.4. Will need to double check

@insanecoderr
Copy link
Author

insanecoderr commented Feb 5, 2018

I have installed kernel 4.15.1 which is a stable version on CentOS7.4. However,the result of creating namespace is still "segmentation fault(core dumped)".Additionally,is it true that kernel newer than 4.10 will not have /dev/pmem upon the creation of pool?

this time /dev/pmem exists upon the creation of pool ..i dont know if its correct.

Here is the log:

[root@localhost ~]# ixpdimm-cli create -o verbose -namespace -pool 51428255-2a16-6258-b876-f9a2d33cb55b persistentmemorytype=appdirect
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[32962496]B, Raw capacity:[2224793059329]B
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[32962496]B, Raw capacity:[2224793059585]B
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[32962496]B, Raw capacity:[2224793059329]B
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[32962496]B, Raw capacity:[2224793059585]B
Config Data Table Header - Signature: DMHD<
Config Data Table Header - Length: 60
Config Data Table Header - Revision: 1
Config Data Table Header - Checksum: 18
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
PCD Header - Current Config Size: 176
PCD Header - Current Config Offset: 60
PCD Header - Input Config Size: 184
PCD Header - Input Config Offset: 236
PCD Header - Output Config Size: 184
PCD Header - Output Config Offset: 420
Config Data Table Header - Signature: CCUR?
Config Data Table Header - Length: 176
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 132
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Current Config Table - Config Status: 1
Current Config Table - Config Mapped Memory: 0
Current Config Table - Config Mapped App Direct: 134217728000
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 9
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: CIN_?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 97
Config Data Table Header - OEM_ID: INTEL PURLEY
Config Data Table Header - OEM_TABLE_ID: PURLEY
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 0
Config Input Table - Sequence_number: 2
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 135014383616
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 9
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: COUT?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 173
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Config Output Table - Sequence Number: 2
Config Output Table - Validation Status: 1
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 135014383616
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 9
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: DMHD<
Config Data Table Header - Length: 60
Config Data Table Header - Revision: 1
Config Data Table Header - Checksum: 18
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
PCD Header - Current Config Size: 176
PCD Header - Current Config Offset: 60
PCD Header - Input Config Size: 184
PCD Header - Input Config Offset: 236
PCD Header - Output Config Size: 184
PCD Header - Output Config Offset: 420
Config Data Table Header - Signature: CCUR?
Config Data Table Header - Length: 176
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 132
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Current Config Table - Config Status: 1
Current Config Table - Config Mapped Memory: 0
Current Config Table - Config Mapped App Direct: 134217728000
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 9
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: CIN_?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 97
Config Data Table Header - OEM_ID: INTEL PURLEY
Config Data Table Header - OEM_TABLE_ID: PURLEY
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 0
Config Input Table - Sequence_number: 2
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 135014383616
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 9
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: COUT?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 173
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Config Output Table - Sequence Number: 2
Config Output Table - Validation Status: 1
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 135014383616
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 9
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[13317766868425439168]B, Raw capacity:[2224793059329]B
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[13317766868425439168]B, Raw capacity:[2224793059585]B
Creating App Direct namespace on interleave set 1
Enabling labels for spa index: 1
Region region2 appears to be "label-less"
Segmentation fault (core dumped)

[root@localhost ~]# uname -a
Linux localhost.localdomain 4.15.1 #1 SMP Mon Feb 5 14:36:12 CST 2018 x86_64 x86_64 x86_64 GNU/Linux

@juston-li any idea?

@juston-li
Copy link

For newer kernels, the label-less namespaces will still appear if labels have not been initialized.

ixpdimm should be able to handle that case and disable label-less namespaces when creating namespaces.
Could you get the core dump? coredumpctl info

One other thing to try is creating a goal again. From 2399+, create goal will initialize labels and only use labeled namespaces so there won't be label-less namespaces.

@insanecoderr
Copy link
Author

I tried to recreate a goal, but the problem still appears. when i execute coredumpctl info, it shows no coredumps found.

below is the demsg log:
[ 11.207788] SELinux: policy capability cgroup_seclabel=0
[ 11.207789] SELinux: policy capability nnp_nosuid_transition=0
[ 11.207789] SELinux: Completing initialization.
[ 11.207789] SELinux: Setting up existing superblocks.
[ 11.222097] audit: type=1403 audit(1517885541.761:3): policy loaded auid=4294967295 ses=4294967295
[ 11.224904] systemd[1]: Successfully loaded SELinux policy in 150.283ms.
[ 11.497331] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.497461] systemd[1]: Inserted module 'ip_tables'
[ 11.521598] systemd[1]: Relabelled /dev and /run in 22.538ms.
[ 13.326916] systemd-journald[915]: Received request to flush runtime journal from PID 1
[ 13.439559] RPC: Registered named UNIX socket transport module.
[ 13.439560] RPC: Registered udp transport module.
[ 13.439560] RPC: Registered tcp transport module.
[ 13.439561] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 14.221897] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 15.042316] dca service started, version 1.12.1
[ 15.138612] input: PC Speaker as /devices/platform/pcspkr/input/input3
[ 15.262486] lpc_ich 0000:00:1f.0: I/O space for ACPI uninitialized
[ 15.262489] lpc_ich 0000:00:1f.0: No MFD cells added
[ 15.340234] ipmi message handler version 39.2
[ 15.343654] ioatdma: Intel(R) QuickData Technology Driver 4.00
[ 15.475266] i801_smbus 0000:00:1f.4: SPD Write Disable is set
[ 15.475302] i801_smbus 0000:00:1f.4: SMBus using PCI interrupt
[ 15.490531] iTCO_vendor_support: vendor-support=0
[ 15.496391] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 15.541802] ipmi device interface
[ 15.554252] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[ 15.554350] iTCO_wdt: unable to reset NO_REBOOT flag, device disabled by hardware/BIOS
[ 15.664855] scsi 0:0:1:0: Attached scsi generic sg0 type 13
[ 15.664922] sd 0:2:0:0: Attached scsi generic sg1 type 0
[ 15.664990] sd 0:2:1:0: Attached scsi generic sg2 type 0
[ 15.665044] sd 0:2:2:0: Attached scsi generic sg3 type 0
[ 15.743751] AVX2 version of gcm_enc/dec engaged.
[ 15.743754] AES CTR mode by8 optimization enabled
[ 15.809631] IPMI System Interface driver.
[ 15.809656] ipmi_si dmi-ipmi-si.0: ipmi_platform: probing via SMBIOS
[ 15.809659] ipmi_si: SMBIOS: io 0xe4 regsize 1 spacing 1 irq 0
[ 15.809660] ipmi_si: Adding SMBIOS-specified bt state machine
[ 15.809700] ipmi_si IPI0001:00: ipmi_platform: probing via ACPI
[ 15.809733] ipmi_si IPI0001:00: [io 0x00e4-0x00e6] regsize 1 spacing 1 irq 0
[ 15.809735] ipmi_si dmi-ipmi-si.0: Removing SMBIOS-specified bt state machine in favor of ACPI
[ 15.809740] ipmi_si: Adding ACPI-specified bt state machine
[ 15.809774] ipmi_platform: probing via SPMI
[ 15.809776] ipmi_si: SPMI: io 0xe4 regsize 1 spacing 1 irq 0
[ 15.809778] (NULL device *): SPMI-specified bt state machine: duplicate
[ 15.809837] ipmi_si: Trying ACPI-specified bt state machine at i/o address 0xe4, slave address 0x20, irq 0
[ 15.838271] alg: No test for pcbc(aes) (pcbc-aes-aesni)
[ 15.901622] IPMI BT: using default values
[ 15.901625] IPMI BT: req2rsp=5 secs retries=2
[ 15.911063] ses 0:0:1:0: Attached Enclosure device
[ 15.916751] ipmi_si IPI0001:00: Found new BMC (man_id: 0x0007db, prod_id: 0x0001, dev_id: 0x01)
[ 16.093741] power_meter ACPI000D:00: Found ACPI power meter.
[ 16.093787] power_meter ACPI000D:00: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[ 16.096875] ipmi_si IPI0001:00: IPMI bt interface initialized
[ 16.120629] ACPI Error: Attempt to CreateField of length zero (20170831/dsopcode-168)
[ 16.120642] ACPI Error: Method parse/execution failed _SB.CLSR, AE_AML_OPERAND_VALUE (20170831/psparse-550)
[ 16.120659] ACPI Error: Method parse/execution failed _SB.NVDR.N001._LSR, AE_AML_OPERAND_VALUE (20170831/psparse-550)
[ 16.120774] ACPI Error: Attempt to CreateField of length zero (20170831/dsopcode-168)
[ 16.120780] ACPI Error: Method parse/execution failed _SB.CLSW, AE_AML_OPERAND_VALUE (20170831/psparse-550)
[ 16.120791] ACPI Error: Method parse/execution failed _SB.NVDR.N001._LSW, AE_AML_OPERAND_VALUE (20170831/psparse-550)
[ 16.131437] nvdimm: probe of nmem0 failed with error -5
[ 16.167107] ACPI Error: Attempt to CreateField of length zero (20170831/dsopcode-168)
[ 16.167120] ACPI Error: Method parse/execution failed _SB.CLSR, AE_AML_OPERAND_VALUE (20170831/psparse-550)
[ 16.167137] ACPI Error: Method parse/execution failed _SB.NVDR.N031._LSR, AE_AML_OPERAND_VALUE (20170831/psparse-550)
[ 16.167277] ACPI Error: Attempt to CreateField of length zero (20170831/dsopcode-168)
[ 16.167284] ACPI Error: Method parse/execution failed _SB.CLSW, AE_AML_OPERAND_VALUE (20170831/psparse-550)
[ 16.167295] ACPI Error: Method parse/execution failed _SB.NVDR.N031._LSW, AE_AML_OPERAND_VALUE (20170831/psparse-550)
[ 16.177328] nvdimm: probe of nmem1 failed with error -5
[ 16.246678] IPMI SSIF Interface driver
[ 16.252902] Adding 4194300k swap on /dev/mapper/centos-swap. Priority:-2 extents:1 across:4194300k FS
[ 16.294931] pmem2: detected capacity change from 0 to 268435456000
[ 16.661636] XFS (sdc2): Mounting V5 Filesystem
[ 17.006075] EDAC MC0: Giving out device to module skx_edac controller Skylake Socket#0 IMC#0: DEV 0000:64:0a.0 (INTERRUPT)
[ 17.006269] EDAC MC1: Giving out device to module skx_edac controller Skylake Socket#0 IMC#1: DEV 0000:64:0c.0 (INTERRUPT)
[ 17.019007] intel_rapl: Found RAPL domain package
[ 17.019014] intel_rapl: Found RAPL domain dram
[ 17.019017] intel_rapl: DRAM domain energy unit 15300pj
[ 17.078817] power_meter ACPI000D:00: Found ACPI power meter.
[ 17.078874] power_meter ACPI000D:00: Ignoring unsafe software power cap!
[ 17.343568] XFS (sdc2): Ending clean mount
[ 17.414223] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 17.910038] XFS (dm-7): Mounting V5 Filesystem
[ 18.568876] XFS (dm-7): Ending clean mount
[ 18.725232] audit: type=1400 audit(1517885549.264:4): avc: denied { dac_read_search } for pid=1395 comm="systemd-tmpfile" capability=2 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:systemd_tmpfiles_t:s0 tclass=capability permissive=0
[ 20.859324] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 21.245090] Ebtables v2.0 registered
[ 22.028183] nf_conntrack version 0.5.0 (65536 buckets, 262144 max)
[ 22.644782] IPv6: ADDRCONF(NETDEV_UP): enp25s0f0: link is not ready
[ 22.654370] IPv6: ADDRCONF(NETDEV_UP): enp25s0f0: link is not ready
[ 22.660569] IPv6: ADDRCONF(NETDEV_UP): enp25s0f1: link is not ready
[ 22.671625] IPv6: ADDRCONF(NETDEV_UP): enp25s0f1: link is not ready
[ 22.676698] IPv6: ADDRCONF(NETDEV_UP): enp25s0f2: link is not ready
[ 22.684909] IPv6: ADDRCONF(NETDEV_UP): enp25s0f2: link is not ready
[ 22.684915] IPv6: ADDRCONF(NETDEV_CHANGE): enp25s0f2: link becomes ready
[ 22.688854] IPv6: ADDRCONF(NETDEV_UP): enp25s0f3: link is not ready
[ 22.697085] IPv6: ADDRCONF(NETDEV_UP): enp25s0f3: link is not ready
[ 23.114690] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 23.276706] Netfilter messages via NETLINK v0.30.
[ 23.405776] ip_set: protocol 6
[ 29.764394] tun: Universal TUN/TAP device driver, 1.6
[ 29.766281] virbr0: port 1(virbr0-nic) entered blocking state
[ 29.766284] virbr0: port 1(virbr0-nic) entered disabled state
[ 29.766370] device virbr0-nic entered promiscuous mode
[ 30.141336] virbr0: port 1(virbr0-nic) entered blocking state
[ 30.141340] virbr0: port 1(virbr0-nic) entered listening state
[ 30.199805] virbr0: port 1(virbr0-nic) entered disabled state
[ 72.178182] pmem2: detected capacity change from 0 to 268435456000
[ 72.236256] ixpdimm-cli[2904]: segfault at 8 ip 00007f953e465ef9 sp 00007ffdd05ab5c0 error 4 in libndctl.so.6.7.0[7f953e459000+19000]
[ 108.583607] nfit ACPI0012:00: range 1 ars timeout, aborting
[root@localhost ~]#

it seems that sth wrong with libndctl.so.6.7.0. Do you have any idea?

Then I installed kernel of version 4.14.17. Surprisely,namespace will not appear after creating goal which implies that it is labeled. However,creating namespace takes a lot of time and it sometimes causes soft lockup when deleting the namespace.By the way,the rpm I used is complied under EulerOS,Do i have to rebuild it on Centos?

@djbw
Copy link
Collaborator

djbw commented Feb 6, 2018

You should be able to get a backtrace of that fault if you install the debug symbols and backtrace the core dump. However, since you report it fixed with the latest kernel I suspect it is ixpdimm-cli not checking for missing functionality on an older kernel that causes it to trigger a fault in libndctl.

The soft lockup is benign, but it needs to fixed up similar to how the init softlockups were addressed. Can you post the softlockup report from the namespace tear down?

@insanecoderr
Copy link
Author

insanecoderr commented Feb 6, 2018

@djbw Thanks for your reply,how do i get the softlockup report?

Additionally,after the soft lockup,i found that /dev/pmem dosen't exist anymore however ixpdimm-cli show -namespace CMD can still show the namespace. Then, i type the "ixpdimm-cli delete -namespace" again,and the namespace can be deleted successfully....So, it is functional,but there might be some problems with it..

@djbw
Copy link
Collaborator

djbw commented Feb 6, 2018

@insanecoderr just paste the output of dmesg after the softlockup triggers.

@insanecoderr
Copy link
Author

@djbw

Message from syslogd@localhost at Feb 6 11:39:13 ...
kernel:watchdog: BUG: soft lockup - CPU#11 stuck for 22s![ixpdimm-cli:3697]

@insanecoderr
Copy link
Author

insanecoderr commented Feb 6, 2018

@juston-li @djbw

env info:
kernel:4.14.17
ixpdimm-sw:master
invm-framwork:master
ndctl:58.2
OS:centos7.4

The detailed dmesg log after the softlockup:
[ 8747.489357] Hardware name: Insyde Purley/Type2 - Board Product Name1, BIOS 05.21.51.0003 12/19/2017
[ 8747.489358] Call Trace:
[ 8747.489360]
[ 8747.489363] dump_stack+0x5c/0x83
[ 8747.489365] nmi_cpu_backtrace+0xc6/0xd0
[ 8747.489368] ? irq_force_complete_move+0x120/0x120
[ 8747.489369] nmi_trigger_cpumask_backtrace+0xd5/0x110
[ 8747.489372] rcu_dump_cpu_stacks+0x89/0xb9
[ 8747.489373] rcu_check_callbacks+0x6f2/0x840
[ 8747.489376] ? trigger_load_balance+0x8b/0x1e0
[ 8747.489379] ? tick_sched_do_timer+0x60/0x60
[ 8747.489380] update_process_times+0x28/0x50
[ 8747.489381] tick_sched_handle+0x26/0x60
[ 8747.489383] tick_sched_timer+0x34/0x70
[ 8747.489384] __hrtimer_run_queues+0xdc/0x220
[ 8747.489386] hrtimer_interrupt+0x99/0x190
[ 8747.489388] smp_apic_timer_interrupt+0x5a/0x120
[ 8747.489390] apic_timer_interrupt+0xa2/0xb0
[ 8747.489390]
[ 8747.489391] RIP: 0010:__put_page+0x9/0x70
[ 8747.489392] RSP: 0018:ffffbc92e86c3d00 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
[ 8747.489393] RAX: 0027ffffc0000800 RBX: 0000000004dde32a RCX: 000000018040001c
[ 8747.489394] RDX: ffff944f7952de60 RSI: ffff944f7952de18 RDI: ffffe17e7778ca80
[ 8747.489394] RBP: 000000013778ca80 R08: ffff944f7299ec40 R09: 000000018040001c
[ 8747.489395] R10: 000000007299e601 R11: ffff944f7299ec40 R12: ffff944f72fe1810
[ 8747.489395] R13: ffff944f7952de18 R14: ffff944f778b1800 R15: ffff944f7299e640
[ 8747.489397] devm_memremap_pages_release+0x114/0x200
[ 8747.489399] release_nodes+0x225/0x270
[ 8747.489402] device_release_driver_internal+0x15d/0x210
[ 8747.489404] unbind_store+0xb3/0xe0
[ 8747.489405] kernfs_fop_write+0xfa/0x180
[ 8747.489407] __vfs_write+0x33/0x170
[ 8747.489408] ? __inode_security_revalidate+0x4c/0x60
[ 8747.489409] ? selinux_file_permission+0xda/0x130
[ 8747.489410] ? security_file_permission+0x36/0xb0
[ 8747.489411] vfs_write+0xad/0x1a0
[ 8747.489413] SyS_write+0x52/0xc0
[ 8747.489414] do_syscall_64+0x61/0x1a0
[ 8747.489415] entry_SYSCALL64_slow_path+0x25/0x25
[ 8747.489416] RIP: 0033:0x7f8aa3d3d690
[ 8747.489417] RSP: 002b:00007ffceab00298 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 8747.489417] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007f8aa3d3d690
[ 8747.489418] RDX: 0000000000000007 RSI: 00000000014a6330 RDI: 0000000000000005
[ 8747.489418] RBP: 00000000014a6330 R08: 00007f8aa201d988 R09: 0000000000000046
[ 8747.489419] R10: 0000000000000046 R11: 0000000000000246 R12: 0000000000000005
[ 8747.489419] R13: 0000000000000000 R14: 00007ffceab015d0 R15: 000000000140f8b0
[ 8772.155351] watchdog: BUG: soft lockup - CPU#10 stuck for 22s! [ixpdimm-cli:7314]
[ 8772.155351] Modules linked in: xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter nd_pmem nd_btt vfat fat intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel crypto_simd ses ipmi_ssif nfit glue_helper libnvdimm enclosure iTCO_wdt mei_me cryptd scsi_transport_sas iTCO_vendor_support
[ 8772.155377] mei ipmi_si i2c_i801 lpc_ich sg ipmi_devintf pcspkr ioatdma ipmi_msghandler shpchp acpi_pad acpi_power_meter dca i2c_core nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sd_mod i40e ahci libahci libata megaraid_sas crc32c_intel ptp pps_core dm_mirror dm_region_hash dm_log dm_mod
[ 8772.155392] CPU: 10 PID: 7314 Comm: ixpdimm-cli Tainted: G L 4.14.17 #1
[ 8772.155393] Hardware name: Insyde Purley/Type2 - Board Product Name1, BIOS 05.21.51.0003 12/19/2017
[ 8772.155393] task: ffff944f35d19e40 task.stack: ffffbc92e86c0000
[ 8772.155394] RIP: 0010:__put_page+0x9/0x70
[ 8772.155395] RSP: 0018:ffffbc92e86c3d00 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
[ 8772.155396] RAX: 0027ffffc0000800 RBX: 00000000053a7533 RCX: 000000018040001c
[ 8772.155396] RDX: ffff944f7952de60 RSI: ffff944f7952de18 RDI: ffffe17e8e9d4cc0
[ 8772.155397] RBP: 000000014e9d4cc0 R08: ffff944f7299ec40 R09: 000000018040001c
[ 8772.155397] R10: 000000007299e601 R11: ffff944f7299ec40 R12: ffff944f72fe1810
[ 8772.155398] R13: ffff944f7952de18 R14: ffff944f778b1800 R15: ffff944f7299e640
[ 8772.155398] FS: 00007f8aa599d8c0(0000) GS:ffff944f80c80000(0000) knlGS:0000000000000000
[ 8772.155399] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8772.155400] CR2: 00007f8aa59e1000 CR3: 0000002f35598001 CR4: 00000000007606e0
[ 8772.155400] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 8772.155401] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 8772.155401] PKRU: 55555554
[ 8772.155401] Call Trace:
[ 8772.155403] devm_memremap_pages_release+0x114/0x200
[ 8772.155404] release_nodes+0x225/0x270
[ 8772.155407] device_release_driver_internal+0x15d/0x210
[ 8772.155408] unbind_store+0xb3/0xe0
[ 8772.155409] kernfs_fop_write+0xfa/0x180
[ 8772.155411] __vfs_write+0x33/0x170
[ 8772.155412] ? __inode_security_revalidate+0x4c/0x60
[ 8772.155413] ? selinux_file_permission+0xda/0x130
[ 8772.155414] ? security_file_permission+0x36/0xb0
[ 8772.155415] vfs_write+0xad/0x1a0
[ 8772.155416] SyS_write+0x52/0xc0
[ 8772.155418] do_syscall_64+0x61/0x1a0
[ 8772.155419] entry_SYSCALL64_slow_path+0x25/0x25
[ 8772.155420] RIP: 0033:0x7f8aa3d3d690
[ 8772.155420] RSP: 002b:00007ffceab00298 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 8772.155421] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007f8aa3d3d690
[ 8772.155422] RDX: 0000000000000007 RSI: 00000000014a6330 RDI: 0000000000000005
[ 8772.155422] RBP: 00000000014a6330 R08: 00007f8aa201d988 R09: 0000000000000046
[ 8772.155423] R10: 0000000000000046 R11: 0000000000000246 R12: 0000000000000005
[ 8772.155423] R13: 0000000000000000 R14: 00007ffceab015d0 R15: 000000000140f8b0
[ 8772.155424] Code: 47 20 a8 01 75 12 48 89 f8 f0 80 20 bf e9 60 ff ff ff 48 83 e8 01 eb da 48 83 e8 01 eb eb 0f 1f 40 00 0f 1f 44 00 00 53 48 8b 07 <48> 89 fb 48 c1 e8 33 83 e0 07 83 f8 04 74 29 48 8b 07 f6 c4 80
[ 8800.155349] watchdog: BUG: soft lockup - CPU#10 stuck for 22s! [ixpdimm-cli:7314]
[ 8800.155351] Modules linked in: xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter nd_pmem nd_btt vfat fat intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel crypto_simd ses ipmi_ssif nfit glue_helper libnvdimm enclosure iTCO_wdt mei_me cryptd scsi_transport_sas iTCO_vendor_support
[ 8800.155374] mei ipmi_si i2c_i801 lpc_ich sg ipmi_devintf pcspkr ioatdma ipmi_msghandler shpchp acpi_pad acpi_power_meter dca i2c_core nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sd_mod i40e ahci libahci libata megaraid_sas crc32c_intel ptp pps_core dm_mirror dm_region_hash dm_log dm_mod
[ 8800.155389] CPU: 10 PID: 7314 Comm: ixpdimm-cli Tainted: G L 4.14.17 #1
[ 8800.155389] Hardware name: Insyde Purley/Type2 - Board Product Name1, BIOS 05.21.51.0003 12/19/2017
[ 8800.155390] task: ffff944f35d19e40 task.stack: ffffbc92e86c0000
[ 8800.155392] RIP: 0010:__put_page+0x9/0x70
[ 8800.155392] RSP: 0018:ffffbc92e86c3d00 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
[ 8800.155393] RAX: 0027ffffc0000800 RBX: 0000000005a3842f RCX: 000000018040001c
[ 8800.155394] RDX: ffff944f7952de60 RSI: ffff944f7952de18 RDI: ffffe17ea8e10bc0
[ 8800.155394] RBP: 0000000168e10bc0 R08: ffff944f7299ec40 R09: 000000018040001c
[ 8800.155395] R10: 000000007299e601 R11: ffff944f7299ec40 R12: ffff944f72fe1810
[ 8800.155395] R13: ffff944f7952de18 R14: ffff944f778b1800 R15: ffff944f7299e640
[ 8800.155396] FS: 00007f8aa599d8c0(0000) GS:ffff944f80c80000(0000) knlGS:0000000000000000
[ 8800.155397] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8800.155397] CR2: 00007f8aa59e1000 CR3: 0000002f35598001 CR4: 00000000007606e0
[ 8800.155398] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 8800.155398] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 8800.155399] PKRU: 55555554
[ 8800.155399] Call Trace:
[ 8800.155402] devm_memremap_pages_release+0x114/0x200
[ 8800.155404] release_nodes+0x225/0x270
[ 8800.155406] device_release_driver_internal+0x15d/0x210
[ 8800.155408] unbind_store+0xb3/0xe0
[ 8800.155410] kernfs_fop_write+0xfa/0x180
[ 8800.155411] __vfs_write+0x33/0x170
[ 8800.155412] ? __inode_security_revalidate+0x4c/0x60
[ 8800.155413] ? selinux_file_permission+0xda/0x130
[ 8800.155415] ? security_file_permission+0x36/0xb0
[ 8800.155416] vfs_write+0xad/0x1a0
[ 8800.155417] SyS_write+0x52/0xc0
[ 8800.155419] do_syscall_64+0x61/0x1a0
[ 8800.155420] entry_SYSCALL64_slow_path+0x25/0x25
[ 8800.155421] RIP: 0033:0x7f8aa3d3d690
[ 8800.155422] RSP: 002b:00007ffceab00298 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 8800.155423] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007f8aa3d3d690
[ 8800.155423] RDX: 0000000000000007 RSI: 00000000014a6330 RDI: 0000000000000005
[ 8800.155423] RBP: 00000000014a6330 R08: 00007f8aa201d988 R09: 0000000000000046
[ 8800.155424] R10: 0000000000000046 R11: 0000000000000246 R12: 0000000000000005
[ 8800.155424] R13: 0000000000000000 R14: 00007ffceab015d0 R15: 000000000140f8b0
[ 8800.155425] Code: 47 20 a8 01 75 12 48 89 f8 f0 80 20 bf e9 60 ff ff ff 48 83 e8 01 eb da 48 83 e8 01 eb eb 0f 1f 40 00 0f 1f 44 00 00 53 48 8b 07 <48> 89 fb 48 c1 e8 33 83 e0 07 83 f8 04 74 29 48 8b 07 f6 c4 80
[ 8828.155350] watchdog: BUG: soft lockup - CPU#10 stuck for 22s! [ixpdimm-cli:7314]
[ 8828.155352] Modules linked in: xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter nd_pmem nd_btt vfat fat intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel crypto_simd ses ipmi_ssif nfit glue_helper libnvdimm enclosure iTCO_wdt mei_me cryptd scsi_transport_sas iTCO_vendor_support
[ 8828.155374] mei ipmi_si i2c_i801 lpc_ich sg ipmi_devintf pcspkr ioatdma ipmi_msghandler shpchp acpi_pad acpi_power_meter dca i2c_core nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sd_mod i40e ahci libahci libata megaraid_sas crc32c_intel ptp pps_core dm_mirror dm_region_hash dm_log dm_mod
[ 8828.155387] CPU: 10 PID: 7314 Comm: ixpdimm-cli Tainted: G L 4.14.17 #1
[ 8828.155388] Hardware name: Insyde Purley/Type2 - Board Product Name1, BIOS 05.21.51.0003 12/19/2017
[ 8828.155389] task: ffff944f35d19e40 task.stack: ffffbc92e86c0000
[ 8828.155390] RIP: 0010:__put_page+0x9/0x70
[ 8828.155391] RSP: 0018:ffffbc92e86c3d00 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
[ 8828.155392] RAX: 0027ffffc0000800 RBX: 00000000060c8aab RCX: 000000018040001c
[ 8828.155393] RDX: ffff944f7952de60 RSI: ffff944f7952de18 RDI: ffffe17ec322aac0
[ 8828.155393] RBP: 000000018322aac0 R08: ffff944f7299ec40 R09: 000000018040001c
[ 8828.155394] R10: 000000007299e601 R11: ffff944f7299ec40 R12: ffff944f72fe1810
[ 8828.155394] R13: ffff944f7952de18 R14: ffff944f778b1800 R15: ffff944f7299e640
[ 8828.155395] FS: 00007f8aa599d8c0(0000) GS:ffff944f80c80000(0000) knlGS:0000000000000000
[ 8828.155396] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8828.155396] CR2: 00007f8aa59e1000 CR3: 0000002f35598001 CR4: 00000000007606e0
[ 8828.155397] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 8828.155397] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 8828.155398] PKRU: 55555554
[ 8828.155398] Call Trace:
[ 8828.155401] devm_memremap_pages_release+0x114/0x200
[ 8828.155402] release_nodes+0x225/0x270
[ 8828.155405] device_release_driver_internal+0x15d/0x210
[ 8828.155407] unbind_store+0xb3/0xe0
[ 8828.155408] kernfs_fop_write+0xfa/0x180
[ 8828.155409] __vfs_write+0x33/0x170
[ 8828.155411] ? __inode_security_revalidate+0x4c/0x60
[ 8828.155412] ? selinux_file_permission+0xda/0x130
[ 8828.155414] ? security_file_permission+0x36/0xb0
[ 8828.155415] vfs_write+0xad/0x1a0
[ 8828.155416] SyS_write+0x52/0xc0
[ 8828.155418] do_syscall_64+0x61/0x1a0
[ 8828.155419] entry_SYSCALL64_slow_path+0x25/0x25
[ 8828.155420] RIP: 0033:0x7f8aa3d3d690
[ 8828.155420] RSP: 002b:00007ffceab00298 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 8828.155421] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007f8aa3d3d690
[ 8828.155422] RDX: 0000000000000007 RSI: 00000000014a6330 RDI: 0000000000000005
[ 8828.155422] RBP: 00000000014a6330 R08: 00007f8aa201d988 R09: 0000000000000046
[ 8828.155423] R10: 0000000000000046 R11: 0000000000000246 R12: 0000000000000005
[ 8828.155423] R13: 0000000000000000 R14: 00007ffceab015d0 R15: 000000000140f8b0
[ 8828.155424] Code: 47 20 a8 01 75 12 48 89 f8 f0 80 20 bf e9 60 ff ff ff 48 83 e8 01 eb da 48 83 e8 01 eb eb 0f 1f 40 00 0f 1f 44 00 00 53 48 8b 07 <48> 89 fb 48 c1 e8 33 83 e0 07 83 f8 04 74 29 48 8b 07 f6 c4 80
[ 8856.155348] watchdog: BUG: soft lockup - CPU#10 stuck for 22s! [ixpdimm-cli:7314]
[ 8856.155349] Modules linked in: xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter nd_pmem nd_btt vfat fat intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel crypto_simd ses ipmi_ssif nfit glue_helper libnvdimm enclosure iTCO_wdt mei_me cryptd scsi_transport_sas iTCO_vendor_support
[ 8856.155373] mei ipmi_si i2c_i801 lpc_ich sg ipmi_devintf pcspkr ioatdma ipmi_msghandler shpchp acpi_pad acpi_power_meter dca i2c_core nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sd_mod i40e ahci libahci libata megaraid_sas crc32c_intel ptp pps_core dm_mirror dm_region_hash dm_log dm_mod
[ 8856.155386] CPU: 10 PID: 7314 Comm: ixpdimm-cli Tainted: G L 4.14.17 #1
[ 8856.155386] Hardware name: Insyde Purley/Type2 - Board Product Name1, BIOS 05.21.51.0003 12/19/2017
[ 8856.155387] task: ffff944f35d19e40 task.stack: ffffbc92e86c0000
[ 8856.155389] RIP: 0010:devm_memremap_pages_release+0x5c/0x200
[ 8856.155389] RSP: 0018:ffffbc92e86c3d10 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
[ 8856.155390] RAX: 0000000006ec0000 RBX: 00000000067592f1 RCX: 000000018040001c
[ 8856.155391] RDX: ffff944f7952de60 RSI: ffff944f7952de18 RDI: ffffe17edd64bc40
[ 8856.155392] RBP: 000000019d64bc40 R08: ffff944f7299ec40 R09: 000000018040001c
[ 8856.155392] R10: 000000007299e601 R11: ffff944f7299ec40 R12: ffff944f72fe1810
[ 8856.155393] R13: ffff944f7952de18 R14: ffff944f778b1800 R15: ffff944f7299e640
[ 8856.155393] FS: 00007f8aa599d8c0(0000) GS:ffff944f80c80000(0000) knlGS:0000000000000000
[ 8856.155394] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8856.155395] CR2: 00007f8aa59e1000 CR3: 0000002f35598001 CR4: 00000000007606e0
[ 8856.155395] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 8856.155396] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 8856.155396] PKRU: 55555554
[ 8856.155396] Call Trace:
[ 8856.155399] release_nodes+0x225/0x270
[ 8856.155401] device_release_driver_internal+0x15d/0x210
[ 8856.155403] unbind_store+0xb3/0xe0
[ 8856.155405] kernfs_fop_write+0xfa/0x180
[ 8856.155406] __vfs_write+0x33/0x170
[ 8856.155407] ? __inode_security_revalidate+0x4c/0x60
[ 8856.155409] ? selinux_file_permission+0xda/0x130
[ 8856.155410] ? security_file_permission+0x36/0xb0
[ 8856.155411] vfs_write+0xad/0x1a0
[ 8856.155412] SyS_write+0x52/0xc0
[ 8856.155414] do_syscall_64+0x61/0x1a0
[ 8856.155415] entry_SYSCALL64_slow_path+0x25/0x25
[ 8856.155416] RIP: 0033:0x7f8aa3d3d690
[ 8856.155417] RSP: 002b:00007ffceab00298 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 8856.155418] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007f8aa3d3d690
[ 8856.155418] RDX: 0000000000000007 RSI: 00000000014a6330 RDI: 0000000000000005
[ 8856.155419] RBP: 00000000014a6330 R08: 00007f8aa201d988 R09: 0000000000000046
[ 8856.155419] R10: 0000000000000046 R11: 0000000000000246 R12: 0000000000000005
[ 8856.155420] R13: 0000000000000000 R14: 00007ffceab015d0 R15: 000000000140f8b0
[ 8856.155421] Code: c1 e5 06 48 83 c0 01 48 c1 e8 0c 48 39 d8 76 3a 48 89 ef 48 03 3d d5 b8 ea 00 48 8b 57 20 f6 c2 01 0f 85 c1 00 00 00 f0 ff 4f 1c <0f> 84 ad 00 00 00 49 8b 45 08 48 83 c3 01 48 83 c5 40 48 83 c0
[ 8884.155347] watchdog: BUG: soft lockup - CPU#10 stuck for 23s! [ixpdimm-cli:7314]
[ 8884.155348] Modules linked in: xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter nd_pmem nd_btt vfat fat intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel crypto_simd ses ipmi_ssif nfit glue_helper libnvdimm enclosure iTCO_wdt mei_me cryptd scsi_transport_sas iTCO_vendor_support
[ 8884.155371] mei ipmi_si i2c_i801 lpc_ich sg ipmi_devintf pcspkr ioatdma ipmi_msghandler shpchp acpi_pad acpi_power_meter dca i2c_core nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sd_mod i40e ahci libahci libata megaraid_sas crc32c_intel ptp pps_core dm_mirror dm_region_hash dm_log dm_mod
[ 8884.155384] CPU: 10 PID: 7314 Comm: ixpdimm-cli Tainted: G L 4.14.17 #1
[ 8884.155385] Hardware name: Insyde Purley/Type2 - Board Product Name1, BIOS 05.21.51.0003 12/19/2017
[ 8884.155386] task: ffff944f35d19e40 task.stack: ffffbc92e86c0000
[ 8884.155388] RIP: 0010:__put_page+0x9/0x70
[ 8884.155388] RSP: 0018:ffffbc92e86c3d00 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
[ 8884.155389] RAX: 0027ffffc0000800 RBX: 0000000006de9800 RCX: 000000018040001c
[ 8884.155390] RDX: ffff944f7952de60 RSI: ffff944f7952de18 RDI: ffffe17ef7a60000
[ 8884.155390] RBP: 00000001b7a60000 R08: ffff944f7299ec40 R09: 000000018040001c
[ 8884.155391] R10: 000000007299e601 R11: ffff944f7299ec40 R12: ffff944f72fe1810
[ 8884.155391] R13: ffff944f7952de18 R14: ffff944f778b1800 R15: ffff944f7299e640
[ 8884.155392] FS: 00007f8aa599d8c0(0000) GS:ffff944f80c80000(0000) knlGS:0000000000000000
[ 8884.155393] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8884.155393] CR2: 00007f8aa59e1000 CR3: 0000002f35598001 CR4: 00000000007606e0
[ 8884.155394] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 8884.155394] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 8884.155395] PKRU: 55555554
[ 8884.155395] Call Trace:
[ 8884.155398] devm_memremap_pages_release+0x114/0x200
[ 8884.155399] release_nodes+0x225/0x270
[ 8884.155402] device_release_driver_internal+0x15d/0x210
[ 8884.155404] unbind_store+0xb3/0xe0
[ 8884.155405] kernfs_fop_write+0xfa/0x180
[ 8884.155407] __vfs_write+0x33/0x170
[ 8884.155408] ? __inode_security_revalidate+0x4c/0x60
[ 8884.155410] ? selinux_file_permission+0xda/0x130
[ 8884.155411] ? security_file_permission+0x36/0xb0
[ 8884.155412] vfs_write+0xad/0x1a0
[ 8884.155413] SyS_write+0x52/0xc0
[ 8884.155415] do_syscall_64+0x61/0x1a0
[ 8884.155416] entry_SYSCALL64_slow_path+0x25/0x25
[ 8884.155417] RIP: 0033:0x7f8aa3d3d690
[ 8884.155418] RSP: 002b:00007ffceab00298 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 8884.155419] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007f8aa3d3d690
[ 8884.155419] RDX: 0000000000000007 RSI: 00000000014a6330 RDI: 0000000000000005
[ 8884.155420] RBP: 00000000014a6330 R08: 00007f8aa201d988 R09: 0000000000000046
[ 8884.155420] R10: 0000000000000046 R11: 0000000000000246 R12: 0000000000000005
[ 8884.155421] R13: 0000000000000000 R14: 00007ffceab015d0 R15: 000000000140f8b0
[ 8884.155422] Code: 47 20 a8 01 75 12 48 89 f8 f0 80 20 bf e9 60 ff ff ff 48 83 e8 01 eb da 48 83 e8 01 eb eb 0f 1f 40 00 0f 1f 44 00 00 53 48 8b 07 <48> 89 fb 48 c1 e8 33 83 e0 07 83 f8 04 74 29 48 8b 07 f6 c4 80
[root@localhost ~]#

@insanecoderr
Copy link
Author

@juston-li @djbw

Moreover,when creating namespace, it will stuck here for about 20minutes.although namespace will be created eventually,but it takes too much time:
[root@localhost ~]# ixpdimm-cli create -o verbose -namespace -pool 51428255-2a16-6258-b876-f9a2d33cb55b persistentmemorytype=appdirect
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[32962496]B, Raw capacity:[2224793059329]B
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[32962496]B, Raw capacity:[2224793059585]B
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[32962496]B, Raw capacity:[2224793059329]B
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[32962496]B, Raw capacity:[2224793059585]B
Config Data Table Header - Signature: DMHD<
Config Data Table Header - Length: 60
Config Data Table Header - Revision: 1
Config Data Table Header - Checksum: 18
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
PCD Header - Current Config Size: 176
PCD Header - Current Config Offset: 60
PCD Header - Input Config Size: 184
PCD Header - Input Config Offset: 236
PCD Header - Output Config Size: 184
PCD Header - Output Config Offset: 420
Config Data Table Header - Signature: CCUR?
Config Data Table Header - Length: 176
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 131
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Current Config Table - Config Status: 1
Current Config Table - Config Mapped Memory: 0
Current Config Table - Config Mapped App Direct: 134217728000
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 10
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: CIN_?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 95
Config Data Table Header - OEM_ID: INTEL PURLEY
Config Data Table Header - OEM_TABLE_ID: PURLEY
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 0
Config Input Table - Sequence_number: 3
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 135014383616
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 10
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: COUT?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 171
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Config Output Table - Sequence Number: 3
Config Output Table - Validation Status: 1
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 135014383616
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 10
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: DMHD<
Config Data Table Header - Length: 60
Config Data Table Header - Revision: 1
Config Data Table Header - Checksum: 18
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
PCD Header - Current Config Size: 176
PCD Header - Current Config Offset: 60
PCD Header - Input Config Size: 184
PCD Header - Input Config Offset: 236
PCD Header - Output Config Size: 184
PCD Header - Output Config Offset: 420
Config Data Table Header - Signature: CCUR?
Config Data Table Header - Length: 176
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 131
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Current Config Table - Config Status: 1
Current Config Table - Config Mapped Memory: 0
Current Config Table - Config Mapped App Direct: 134217728000
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 10
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: CIN_?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 95
Config Data Table Header - OEM_ID: INTEL PURLEY
Config Data Table Header - OEM_TABLE_ID: PURLEY
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 0
Config Input Table - Sequence_number: 3
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 135014383616
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 10
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Config Data Table Header - Signature: COUT?
Config Data Table Header - Length: 184
Config Data Table Header - Revision: 2
Config Data Table Header - Checksum: 171
Config Data Table Header - OEM_ID: INTEL EDK2
Config Data Table Header - OEM_TABLE_ID: EDK2
Config Data Table Header - OEM_REVISION: 2
Config Data Table Header - Creator Id: 1280593481
Config Data Table Header - Creator Revision: 537464851
Config Output Table - Sequence Number: 3
Config Output Table - Validation Status: 1
Extension Table - Type: 4
Extension Table - Length: 16
Partition Change Table - Status: 0
Partition Change Table - Size: 135014383616
Extension Table - Type: 5
Extension Table - Length: 120
Interleave Info Extension Table - Index: 10
Interleave Info Extension Table - Dimm Count: 2
Interleave Info Extension Table - Memory Type: 2
Interleave Info Extension Table - Interleave Format: 2147631168
Interleave Info Extension Table - Mirror Enable: 0
Interleave Info Extension Table - Status: 0
DIMM Info Extension Table - UID: 0x8680a21748000011a9
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
DIMM Info Extension Table - UID: 0x8680a2174800001173
DIMM Info Extension Table - Offset: 0
DIMM Info Extension Table - Size: 134217728000
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[18250515822671230912]B, Raw capacity:[2224793059329]B
Partition info for handle [32948224] - Pmem Capacity:[0]B, Volatile memory capacity:[18250515822671230912]B, Raw capacity:[2224793059585]B
Creating App Direct namespace on interleave set 1

@djbw
Copy link
Collaborator

djbw commented Feb 6, 2018

I'm still looking for the softlockup backtrace. Those messages you posted are not from the kernel. Is the behavior any different with:
ndctl create-namespace
I suspect it will be the same and what you are seeing is just namespace setup / teardown latency, but it would be interesting if there is a difference.

@insanecoderr
Copy link
Author

@djbw the above demsg is not from kernel?When softlockup happens,i paste the dmesg here..there are two comments i posted,maybe you skipped the first one?

@djbw
Copy link
Collaborator

djbw commented Feb 7, 2018

@insanecoderr oops, sorry I missed it. Thanks, that's what I need.

@insanecoderr
Copy link
Author

@djbw Do you have any idea of the soft lockup?

@djbw
Copy link
Collaborator

djbw commented Feb 7, 2018

Yes, it is benign you can ignore it for now. I have posted a fix for it here:

https://patchwork.kernel.org/patch/10204603/

@insanecoderr
Copy link
Author

excellent

fengguang pushed a commit to 0day-ci/linux that referenced this issue Feb 10, 2018
The cond_resched() currently in the setup path needs to be duplicated in
the teardown path. Rather than require each instance of
for_each_device_pfn() to open code the same sequence, embed it in the
helper.

Link: intel/ixpdimm_sw#11
Cc: "Jérôme Glisse" <jglisse@redhat.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: <stable@vger.kernel.org>
Fixes: 7138970 ("mm, zone_device: Replace {get, put}_zone_device_page()...")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
@djbw
Copy link
Collaborator

djbw commented Mar 5, 2018

gregmarsden pushed a commit to oracle/linux-uek that referenced this issue Apr 12, 2018
The cond_resched() currently in the setup path needs to be duplicated in
the teardown path. Rather than require each instance of
for_each_device_pfn() to open code the same sequence, embed it in the
helper.

Orabug: 27663570

Link: intel/ixpdimm_sw#11
Cc: "Jérôme Glisse" <jglisse@redhat.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: <stable@vger.kernel.org>
Fixes: 7138970 ("mm, zone_device: Replace {get, put}_zone_device_page()...")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 949b932)
Signed-off-by: Jane Chu <jane.chu@oracle.com>
Reviewed-by: Larry Bassel <larry.bassel@oracle.com>
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
0wnerDied pushed a commit to 0wnerDied/Neptune_kernel_sm8150_oneplus that referenced this issue Nov 4, 2020
The cond_resched() currently in the setup path needs to be duplicated in
the teardown path. Rather than require each instance of
for_each_device_pfn() to open code the same sequence, embed it in the
helper.

Link: intel/ixpdimm_sw#11
Cc: "Jérôme Glisse" <jglisse@redhat.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: <stable@vger.kernel.org>
Fixes: 7138970 ("mm, zone_device: Replace {get, put}_zone_device_page()...")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: atndko <z1281552865@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants