[openib-general] [mthca] Creation of a SRQ with many WR (> 16K) in kernel level fails

Dotan Barak dotanb at dev.mellanox.co.il
Wed Jan 31 01:49:30 PST 2007


Roland Dreier wrote:
>  > anyway, the solution that comes into my mind is to disable creating a
>  > QP/SRQ for which > 128KB allocations are needed. So
>  > mthca_query_device() will set the max_qp_wr and max_srq_wr attributes
>  > to values whose derived size still allows to use kmalloc.
>
> But that will limit the size of the queues that userspace can create
> too.  I guess we could allocate kernel wrid arrays with vmalloc(), but
> I wonder if anyone actually cares about this limit...
>   
I think that now, when implementation of IPoIB CM is available and SRQ 
is being used, one may
need to use a SRQ with more than 16K WRs.

thanks
Dotan




More information about the general mailing list