Skip to contentSkip to conversation

spdk_mem_register error on 1G aligned devdax device

SPDK Jiahao Li 1 participant 2 messages Jul 28, 2020

lore
Share & tools
lore

Jiahao Li

author
#0 lore raw

Hi,

I'm testing pmem performance using SPDK (to use ioat). spdk_mem_register returned error on mmap-ed 1G aligned devdax device (Either 2M hugepages or 1G hugepages failed). It trace the problem, and found vtophys_get_paddr_memseg(at https://github.com/spdk/spdk/blob/master/lib/env_dpdk/memory.c#L1105) returned error. I also tried 2M alignment, it worked fine on both hugepage sizes.

What can be the cause of this problem?

Thanks,
Jiahao Li

author
#1 lore raw

After enabling IOMMU, spdk_mem_register doesn't fail anymore. But I still don't understand why IOMMU is necessary