2 .\" Copyright (c) 2012 Intel Corporation
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions, and the following disclaimer,
10 .\" without modification.
11 .\" 2. Redistributions in binary form must reproduce at minimum a disclaimer
12 .\" substantially similar to the "NO WARRANTY" disclaimer below
13 .\" ("Disclaimer") and any redistribution must be conditioned upon
14 .\" including a substantially similar Disclaimer requirement for further
15 .\" binary redistribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
21 .\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 .\" HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGES.
30 .\" nvmecontrol man page.
32 .\" Author: Jim Harris <jimharris@FreeBSD.org>
41 .Nd NVM Express control utility
52 .Aq Fl n Ar num_threads
53 .Aq Fl o Ar read|write
55 .Aq Fl s Ar size_in_bytes
56 .Aq Fl t Ar time_in_sec
65 .Op Fl v Ar vendor-string
72 .Op Fl f Ar path_to_firmware
79 .Op Fl w workload_hint
82 .Op Fl o path_template
86 .Op Fl o path_template
89 .Ic wdc get-crash-dump
90 .Op Fl o path_template
96 .\" .Ic wdc purge-monitor
99 NVM Express (NVMe) is a storage protocol standard, for SSDs and other
100 high-speed storage devices over PCI Express.
103 The logpage command knows how to print log pages of various types.
104 It also knows about vendor specific log pages from hgst/wdc and intel.
105 Page 0xc1 for hgst/wdc contains the advanced smart information about
107 Page 0xc1 is read latency stats for intel.
108 Page 0xc2 is write latency stats for intel.
109 Page 0xc5 is temperature stats for intel.
110 Page 0xca is advanced smart information for intel.
115 will list all valid vendors and pages.
117 will print the page as hex.
119 will print the binary data for the page.
121 The various wdc command retrieve log data from the wdc/hgst drives.
124 flag specifies a path template to use to output the files.
125 Each file takes the path template (which defaults to nothing), appends
126 the drive's serial number and the type of dump it is followed
128 These logs must be sent to the vendor for analysis.
129 This tool only provides a way to extract them.
131 .Dl nvmecontrol devlist
133 Display a list of NVMe controllers and namespaces along with their device nodes.
135 .Dl nvmecontrol identify nvme0
137 Display a human-readable summary of the nvme0 IDENTIFY_CONTROLLER data.
139 .Dl nvmecontrol identify -x -v nvme0ns1
141 Display an hexadecimal dump of the nvme0 IDENTIFY_NAMESPACE data for namespace
144 .Dl nvmecontrol perftest -n 32 -o read -s 512 -t 30 nvme0ns1
146 Run a performance test on nvme0ns1 using 32 kernel threads for 30 seconds.
147 Each thread will issue a single 512 byte read command.
148 Results are printed to stdout when 30 seconds expires.
150 .Dl nvmecontrol reset nvme0
152 Perform a controller-level reset of the nvme0 controller.
154 .Dl nvmecontrol logpage -p 1 nvme0
156 Display a human-readable summary of the nvme0 controller's Error Information Log.
157 Log pages defined by the NVMe specification include Error Information Log (ID=1),
158 SMART/Health Information Log (ID=2), and Firmware Slot Log (ID=3).
160 .Dl nvmecontrol logpage -p 0xc1 -v wdc nvme0
162 Display a human-readable summary of the nvme0's wdc-specific advanced
165 .Dl nvmecontrol logpage -p 1 -x nvme0
167 Display a hexadecimal dump of the nvme0 controller's Error Information Log.
169 .Dl nvmecontrol logpage -p 0xcb -b nvme0 > /tmp/page-cb.bin
171 Print the contents of vendor specific page 0xcb as binary data on
173 Redirect it to a temporary file.
175 .Dl nvmecontrol firmware -s 2 -f /tmp/nvme_firmware nvme0
177 Download the firmware image contained in "/tmp/nvme_firmware" to slot 2 of the
178 nvme0 controller, but do not activate the image.
180 .Dl nvmecontrol firmware -s 4 -a nvme0
182 Activate the firmware in slot 4 of the nvme0 controller on the next reset.
184 .Dl nvmecontrol firmware -s 7 -f /tmp/nvme_firmware -a nvme0
186 Download the firmware image contained in "/tmp/nvme_firmware" to slot 7 of the
187 nvme0 controller and activate it on the next reset.
189 .Dl nvmecontrol power -l nvme0
191 List all the current power modes.
193 .Dl nvmecontrol power -p 3 nvme0
195 Set the current power mode.
197 .Dl nvmecontrol power nvme0
199 Get the current power mode.
208 was developed by Intel and originally written by
209 .An Jim Harris Aq Mt jimharris@FreeBSD.org .
211 This man page was written by
212 .An Jim Harris Aq Mt jimharris@FreeBSD.org .