Skip to contentSkip to conversation

ntb_perf max chunk order

DISCUSSION Raju Rangoju 2 participants 3 messages Jan 16, 2024 – Jan 23, 2024 NTB driver core

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw
Quoted 3 lines · Raju Rangoju

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)

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

#2 lore raw
Quoted 8 lines · Dave Jiang
Quoted 3 lines · Raju Rangoju

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)

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