nvme driver


nvme ssd 在 linux 上係有自己的 driver

# -p --parameters

modinfo -p nvme


nvme CLI


sector size

Most SSDs report their sector size as 512 bytes, even though they use larger sectors - typically 4 kB, 8 kB, or sometimes larger.

nvme id-ns /dev/nvme0n1 | grep -e lbaf

nlbaf   : 0
lbaf  0 : ms:0   lbads:9  rp:0 (in use)

"nlbaf" is the number of LBA formats minus 1, so here there is only one format supported.

"lbaf" 0 means LBA format #0. It has an lbads (LBA data size) of 9

"lbads" means sectors are 2^9 or 512 bytes

"rp" (Relative Performance) value indicates which format will provide the best performance, with 0 being the best.