Yann Droneaud
2011-04-21 16:44:24 UTC
Hi,
I have a problem with rdma_create_qp() when I set
qp_init_attr.cap.max_send_wr to something higher than 16351:
it returns -1 and errno is set to ENOMEM "Cannot allocate memory".
strace doesn't show anything related to memory, but the last write()
syscall returns EINVAL "Invalid Argument".
I'm using a Mellanox ConnectX MT26428 (v2.6.100 / a0) HCA, under Debian
6.0 (kernel 2.6.32-5, librdmacm 1.0.10-1, libibverbs 1.1.3-2, libmlx4
1.0-1).
According to ibv_query_device() informations,
ibv_device_attr.max_qp_wr is 16384 (and ibv_device_attr.max_qp_wr is
16383). So one might think that 16383 outstanding WR should be OK.
I've also tried to increase the length of the associated CQ, but it
doesn't change anything.
So what's the limit of WR in the QP's SQ ?
Is it ibv_device_attr.max_qp_wr - 32 ?
Regards.
I have a problem with rdma_create_qp() when I set
qp_init_attr.cap.max_send_wr to something higher than 16351:
it returns -1 and errno is set to ENOMEM "Cannot allocate memory".
strace doesn't show anything related to memory, but the last write()
syscall returns EINVAL "Invalid Argument".
I'm using a Mellanox ConnectX MT26428 (v2.6.100 / a0) HCA, under Debian
6.0 (kernel 2.6.32-5, librdmacm 1.0.10-1, libibverbs 1.1.3-2, libmlx4
1.0-1).
According to ibv_query_device() informations,
ibv_device_attr.max_qp_wr is 16384 (and ibv_device_attr.max_qp_wr is
16383). So one might think that 16383 outstanding WR should be OK.
I've also tried to increase the length of the associated CQ, but it
doesn't change anything.
So what's the limit of WR in the QP's SQ ?
Is it ibv_device_attr.max_qp_wr - 32 ?
Regards.
--
Yann Droneaud
OPTEYA
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-***@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Yann Droneaud
OPTEYA
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-***@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html