Storage Performance Development Kit (SPDK)
 help / color / mirror / Atom feed
From: Daniel Verkamp <daniel.verkamp at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] [NVMf] Invalid SQSIZE 128
Date: Wed, 28 Sep 2016 15:44:38 -0700	[thread overview]
Message-ID: <41901710-2935-4af4-fb2f-45c376dea445@intel.com> (raw)
In-Reply-To: 1475101955.99978.8.camel@intel.com

[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]

On 09/28/2016 03:32 PM, Walker, Benjamin wrote:
> On Wed, 2016-09-28 at 22:11 +0000, Alex Bowden wrote:
>> It seems SQSIZE in linux-nvmf is by default set to 128 and seems to be 127 in
>> the NVMf code, but I think the RDMA driver does a +1 to it? This causes SPDK
>> to not accept the cmd.
>>
>
> You are using an old version of the kernel initiator. We reported this bug to
> the kernel
> developers and it is now fixed in the latest version (4.8).  SPDK was doing this
> correctly,
> but the kernel was not treating the value as 0's based.
>
>>
>> https://github.com/spdk/spdk/commit/a5be12c376f42108085bd9cfd06fc27818fdb6c9
>>
>>
>>
>> I suggest either changing this to ">" instead of ">=" or changing the
>> nvmf.conf.in MaxQueueDepth size to 129 by default.
>>
>>
>> Here's the error msg:
>> ***ERROR*** Invalid SQSIZE 128 (min 1, max 127)

Specifically, the fix is in these Linux kernel commits:

commit c5af8654c422cfdd8480be3a244748e18cace6c5
     nvme-rdma: fix sqsize/hsqsize per spec

commit f994d9dc28bc27353acde2caaf718222d92a3e24
     fabrics: define admin sqsize min default, per spec

The buggy version of the SQSIZE code was never in a released kernel 
version, only Linux 4.8-rc4. The final Linux 4.8 release (which is the 
first kernel release with NVMe over Fabrics support) will contain the fix.

Thanks,
-- Daniel

             reply	other threads:[~2016-09-28 22:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 22:44 Daniel Verkamp [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-09-28 22:32 [SPDK] [NVMf] Invalid SQSIZE 128 Walker, Benjamin
2016-09-28 22:11 Alex Bowden

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=41901710-2935-4af4-fb2f-45c376dea445@intel.com \
    --to=spdk@lists.01.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