Re: [PATCH v2 3/5] IB/srpt: Limit the number of SG elements per work request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/13/2016 04:27 PM, Sagi Grimberg wrote:
+	qp_init->cap.max_send_sge = min(attrs->max_sge, SRPT_MAX_SG_PER_WQE);

Why are you limiting the max_sge with SRPT_MAX_SG_PER_WQE? what is the
motivation?

Hello Sagi,

The reason that I want to use a lower value than max_sge is to avoid QP allocation failures. During my tests with mlx4 adapters I had noticed that the buffers that are allocated with kmalloc() during QP creation with max_send_sge = max_sge are so large that QP allocation often fails. Hence min(..., SRPT_MAX_SGE_PER_WQE).

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux