All of lore.kernel.org
 help / color / mirror / Atom feed
From: Walker, Benjamin <benjamin.walker at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] analyzing spdk error messages
Date: Wed, 12 Oct 2016 16:40:58 +0000	[thread overview]
Message-ID: <1476290456.63592.62.camel@intel.com> (raw)
In-Reply-To: CABSNBDHuzDqO3kwNqF2m6xnwKC=CmPpbwATnJ0fb5HWNtfb-eg@mail.gmail.com

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

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. 

> 
> 
> 
> 
> 
> --Tyc
> 

             reply	other threads:[~2016-10-12 16:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-12 16:40 Walker, Benjamin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-10-12 16:43 [SPDK] analyzing spdk error messages Daniel Verkamp
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=1476290456.63592.62.camel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.