ntb_perf max chunk order
Hi,
Could you please explain why net_perf does not support larger chunk sizes? Currently only MAX_CHUNK_ORDER 20 is supported (1M and below)
Thanks,
Raju
Dave Jiang
maintainerQuoted 3 lines · Raju Rangoju
Hi,
Could you please explain why
net_perfdoes not support larger chunk sizes? Currently onlyMAX_CHUNK_ORDER20 is supported (1M and below)
It has to do with the limitation of Linux dma_alloc_coherent() call. Allocating physically (or IOVA) contiguous memory that's extremely large is difficult. In the past, you can do it with limited success up to 8MB with help from IOMMU as I recall. For experimental and testing purposes, you can try larger sizes.
Quoted 4 lines
Thanks,
Raju
Quoted 8 lines · Dave Jiang
Quoted 3 lines · Raju Rangoju
Hi,
Could you please explain why
net_perfdoes not support larger chunk sizes? Currently onlyMAX_CHUNK_ORDER20 is supported (1M and below)It has to do with the limitation of Linux
dma_alloc_coherent()call. Allocating physically (or IOVA) contiguous memory that's extremely large is difficult. In the past, you can do it with limited success up to 8MB with help from IOMMU as I recall. For experimental and testing purposes, you can try larger sizes.
Sure Dave, I'll explore that. Thank you.
Quoted 4 lines
Quoted 4 lines
Thanks,
Raju