Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: keith.busch@intel.com (Keith Busch)
Subject: NVM Express Format
Date: Wed, 25 Jun 2014 09:47:06 -0600 (MDT)	[thread overview]
Message-ID: <alpine.LRH.2.03.1406250940180.4699@AMR> (raw)
In-Reply-To: <8838223D960CB945AFF93D316204C6369D8F16@CFWEX01.americas.cray.com>

On Wed, 25 Jun 2014, Ian Ziemba wrote:
> I am curious about how to issue a scsi format command to a PCIe SSD. I have
> the NVM Express Linux drivers loaded onto my system. I have tried using the
> Linux command "sg_format" but that does not work. Is there a NVM Express
> command that will accomplish this? If so, how would I go about using this
> command? My goal is to be able to have a method of purging the SSD in order
> to run performance tests on the drive.

sg_format should work, otherwise it's a bug. Can you tell me what you're
running and what happens in your test?

If you want to go with a native nvme-express option instead of using scsi,
I have some example programs at

http://git.infradead.org/users/kbusch/nvme-user.git

Assuming your kernel's uapi headers are installed, it should compile
all the programs without issue, and there's an "nvme_format" that will
use the nvme passthrough to issue a format.

> My system is running OpenSUSE 11 SP13. The Linux kernel version is at 3.16.
>
> I am new to NVM Express so any thoughts or insight will be appreciated.
>
> Thanks,
>
> Ian Ziemba
> I/O Engineer Intern
> Storage and Data Management
> Cray Inc.

  parent reply	other threads:[~2014-06-25 15:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-25 14:58 NVM Express Format Ian Ziemba
2014-06-25 15:34 ` Dan McLeran
2014-06-25 15:47 ` Dan McLeran
2014-06-25 15:47 ` Keith Busch [this message]
2014-07-03 13:03   ` Indraneel Mukherjee
2014-07-03 15:48     ` Keith Busch

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=alpine.LRH.2.03.1406250940180.4699@AMR \
    --to=keith.busch@intel.com \
    /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