public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Sagi Grimberg <sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Mark Lehrer <lehrer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: mlx5 + SRP: max_qp_sz mismatch
Date: Tue, 19 Aug 2014 17:50:08 +0300	[thread overview]
Message-ID: <53F36420.3060607@dev.mellanox.co.il> (raw)
In-Reply-To: <CADvaNzWGThMx1gMYfheFVwHzk10+8KWmAPkYZ1_FxArhdmri8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 8/19/2014 2:20 AM, Mark Lehrer wrote:
> I have a client machine that is trying to establish an SRP connection,
> and it is failing due to an ENOMEM memory allocation error.  I traced
> it down to the max_qp_sz field -- the mlx5 limits this to 16384 but
> the request wants 32768.
>
> I spent some time trying to figure out how this limit is set, but it
> isn't quite obvious.  Is there a driver parameter I can set, or a hard
> coded limit somewhere?
>
> I'm using Ubuntu 14.04 and targetcli on the target side, Windows
> 2008r2 and WinOFED on the client side.
>

Hi Mark,

I think the issue here is that the SRP target asks for srp_sq_size 
(default 4096) to allocate room for send WRs, but it also asks for
SRPT_DEF_SG_PER_WQE(16) to allocate room for max_send_sge which
generally makes the work queue entries bigger as they come inline. That
probably exceeds the mlx5 max send queue size supported...

It is strange that mlx5 driver is not able to fit same send queue
lengths as mlx4... Probably work queue entries are slightly bigger (I
can check that - and I will).

I just wander how can the ULP requesting the space reservations in the
send queue know that, and if it should know that at all...

 From what I see srp_sq_size is controlled via configfs. Can you set
it to 2048 just for the sake of confirmation this is indeed the issue?

Thanks,
Sagi.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-08-19 14:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-18 23:20 mlx5 + SRP: max_qp_sz mismatch Mark Lehrer
     [not found] ` <CADvaNzWGThMx1gMYfheFVwHzk10+8KWmAPkYZ1_FxArhdmri8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-19 14:50   ` Sagi Grimberg [this message]
     [not found]     ` <53F36420.3060607-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2014-08-19 17:01       ` Mark Lehrer
     [not found]         ` <CADvaNzVkKuvHw58meQD962VSm4Y-QZoHC3ndsYSBW8rw7S68cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-20 15:51           ` Mark Lehrer
     [not found]             ` <CADvaNzWAZiNiwBAVYVA5it7K3A4CAozkeHn8SowYNT7iE6YykA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-26 16:10               ` Sagi Grimberg
     [not found]                 ` <53FCB18F.5030608-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2014-08-27 11:19                   ` Bart Van Assche
     [not found]                     ` <53FDBED2.2060707-HInyCGIudOg@public.gmane.org>
2014-08-27 11:28                       ` Eli Cohen
     [not found]                         ` <CFE9BFE80FFE4D4892AA5D31387E310F014FC414E5-LSMZvP3E4uyuSA5JZHE7gA@public.gmane.org>
2014-08-28 15:58                           ` Bart Van Assche
     [not found]                             ` <53FF51BE.1080103-HInyCGIudOg@public.gmane.org>
2014-09-02 17:36                               ` Mark Lehrer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53F36420.3060607@dev.mellanox.co.il \
    --to=sagig-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
    --cc=lehrer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox