From: Daniel Verkamp <daniel.verkamp at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] analyzing spdk error messages
Date: Wed, 12 Oct 2016 09:43:55 -0700 [thread overview]
Message-ID: <2e948f37-d64c-43ba-742e-4be4930283ea@intel.com> (raw)
In-Reply-To: 1476290456.63592.62.camel@intel.com
[-- Attachment #1: Type: text/plain, Size: 1991 bytes --]
On 10/12/2016 09:40 AM, Walker, Benjamin wrote:
> On Fri, 2016-10-07 at 17:37 +0000, txcy uio wrote:
>> Hello
>>
>>
>> What is the correct way of analyzing spdk error message (as below which was
>> encountered against a spdk writev cmd) to quickly know what went wrong?
>
> These messages are dumping compact notes about the command that was sent and the
> completion returned. The values are pulled directly from the specification - see
> section 4.6 of NVMe 1.2.1 (http://www.nvmexpress.org/wp-content/uploads/NVM_Expr
> ess_1_2_1_Gold_20160603.pdf) for a full description.
>>
>>
>> WRITE sqid:2 cid:125 nsid:1 lba:4194304 len:16
>
> WRITE - Command Type
> sqid - Submission Queue Id (2)
> cid - Command Id (125). This
> is an arbitrary number we picked for this command. We match completions to
> commands by this number.
> nsid - Namespace Id (1)
> lba - Logical Block Address
> (4194304)
> len - Number of logical blocks (16)
>
>> WRITE FAULTS (02/80) sqid:2 cid:125 cdw0:0 sqhd:002a p:1 m:1 dnr:0
>
> WRITE FAULTS - The error encountered. The (02/80) is (Status Code Type, Status
> Code Value). 02 means media error type, and 80 in the media error category means
> write fault. These values are in hex.
> sqid - Submission Queue Id (2)
> cid - Command
> Id (125). Note how it matches up to the command sent.
> cdw0 - Command DWORD 0 (0).
> Dumped as hex.
> sqhd - Submission Queue Head (2a). The current location of the
> device's submission queue head index.
> p - Phase bit (1)
> m - More (1). If set to 1,
> there is additional error information available that can be obtained by sending
> a Get Log Page command.
> dnr - Do Not Retry (0).
>
> This error seems to indicate that there was a write failure in the media on your device.
Write Fault could also indicate that you passed an incorrect memory
address and the DMA transfer failed.
Note that the NVMe writev callback requires a physical address, not a
virtual address.
next reply other threads:[~2016-10-12 16:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 16:43 Daniel Verkamp [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-10-12 16:40 [SPDK] analyzing spdk error messages Walker, Benjamin
2016-10-07 17:37 txcy uio
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=2e948f37-d64c-43ba-742e-4be4930283ea@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