= Smartmontools NVMe support = [[TOC]] == About NVMe VM Express, NVMe, or Non-Volatile Memory Host Controller Interface Specification (NVMHCI), is a logical device interface specification for accessing non-volatile storage media attached via PCI Express (PCIe) bus. Some links related to the standard and vendor-specific implementations provided below: - [http://nvmexpress.org/specifications/ Official specifications] - [http://www.intel.com/content/dam/www/public/us/en/documents/product-specifications/ssd-dc-p3608-spec.pdf Intel NVMe documentation] with Intel-specific log pages (CAh, C5h, DDh, C1h/C2h). - [http://ocz.com/enterprise/download/guides/ZDrive_6000_Series_Datasheet.pdf OCZ Z-Drive] specification, with vendor-specific smart log page (E0h) == Development notes Development and debugging could be performed using [https://github.com/OpenChannelSSD/qemu-nvme/ QEMU fork] which can emulates NVMe device with most of the features supported, including SMART log pages, namespaces, etc. Tested with Linux and FreeBSD, full list of the options could be found in the [https://github.com/OpenChannelSSD/qemu-nvme/blob/master/hw/block/nvme.c source code]. == Linux OS NVMe support Smartmontools supports NVMe in Linux OS using using standard ioctl API. Other utilities to manage NVMe devices in Linux: - [https://github.com/linux-nvme/nvme-cli nvme-cli] - NVM-Express user space tool for Linux - [https://github.com/xnox/nvme-user nvme-user] - another open source user space NVMe management utility == FreeBSD NVMe support Smartmontools supports NVMe in the FreeBSD using ioctl API. NVMe devices in the FreeBSD can be managed using [https://www.freebsd.org/cgi/man.cgi?query=nvmecontrol nvmecontrol] utility. == Windows NVMe support - [https://svn.openfabrics.org/svnrepo/nvmewin/ OpenFabrics NVMe driver] for Windows. It provides a NVME_PASS_THROUGH I/O-control which is reportedly also supported by the NVMe Windows drivers from Intel and OCZ. - [https://msdn.microsoft.com/en-us/library/windows/hardware/dn932068.aspx IOCTL_STORAGE_PROTOCOL_COMMAND] - NVMe pass-through I/O-control supported by the generic NVMe driver for Windows (Stornvme.sys). Requires Windows 10. - [http://naraeon.net/en/latest-nvme-tools Naraeon NVMe Tools] windows [https://github.com/ebangin127/nvmetools open source] NVMe SMART / Health Information Log Viewer on Windows - [http://naraeon.net/en/archives/570 Samsung 950 Pro’s NVMe Commands] - [http://naraeon.net/en/archives/925 Intel 750 Series’ NVMe Commands] - Intel® [https://downloadcenter.intel.com/download/23931/Intel-Solid-State-Drive-Data-Center-Tool Solid-State Drive Data Center Tool] == OS X NVMe support Smartmontools currently not is not supporting monitoring of the NVMe devices on OSX/Darwin. - Kind of official support added from 10.10.3, closes source, not documented, only apple-branded NVMe devices are supported. Implements NVMeSMARTClient library, however API is not documented. - [http://www.macvidcards.com/nvme-driver1.html MacVidCards NVMe driver] - third party closed-source driver, coming with closed-source nvme-cli management utility, which is based on open-source one. == Solaris NVMe support Smartmontools currently not is not supporting monitoring of the NVMe devices on Solaris. - [https://docs.oracle.com/cd/E36784_01/html/E36871/nvmeadm-1m.html nvmeadm] - NVM Express controller command line interface, interface is unknown - [https://www.illumos.org/issues/4053 Illumos NVMe driver], [https://www.illumos.org/issues/6235 no management interface/tool] yet implemented