Skip to contentSkip to conversation

Error in DMA transfer when process restart

SPDK Weifeng Su 2 participants 3 messages Apr 20, 2021 – Apr 21, 2021

lore
Share & tools
lore

Weifeng Su

author
#0 lore raw

Hi Expert,

We are testing a new NVME disk. In the worst case, the DMA feedback duration of the NVME disk may reach seconds. In this case, I consider that if the process exits abnormally during the DMA transfer process, After another process restarts, it applies for the memory that is not finished. As a result, memory overrun may occur. However, DPDK and SPDK do not handle this problem. I would like to ask how the spdk is considered in this case? Any feedbacks are welcome!

Brs
Su Weifeng

#1 lore raw

The kernel vfio-pci/IOMMU will help to pin memory pages, I think it can cover the case you described here.

Quoted 21 lines

-----Original Message-----
From: Weifeng Su <swf504(a)163.com>
Sent: Tuesday, April 20, 2021 11:30 AM
To: spdk(a)lists.01.org
Subject: [SPDK] Error in DMA transfer when process restart

Hi Expert,

We are testing a new NVME disk. In the worst case, the DMA feedback
duration of the NVME disk may reach seconds. In this case, I consider that if the process exits abnormally during the DMA transfer process, After another process restarts, it applies for the memory that is not finished. As a result, memory overrun may occur. However, DPDK and SPDK do not handle this problem. I would like to ask how the spdk is considered in this case?
Any feedbacks are welcome!

Brs
Su Weifeng
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org

author
#2 lore raw

We are using aarch64 + SMMU, Is the solution vfio-pci/IOMMU still work?