archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
5.82k stars 509 forks source link

RFE: support formatting nvme to optimal block size #2535

Open rpigott opened 3 weeks ago

rpigott commented 3 weeks ago

I'm not a current user, but looking at potentially using archinstall to speed up installation in the future.

I would like it if arch install supported formatting nvme drives with optimal logical block sizes.

Many nvme support multiple logical block sizes (LBA format), usually 512 and 4k, with 4k being faster. The current and supported LBA formats for a namespace can be queried with nvme-id-ns(1), .e.g nvme id-ns -H /dev/nvme0n1, the tool also supports json output.

Setting the lba format:

  1. Is quick and easy at installation time, but also easy to forget
  2. Has a significant performance impact for the lifetime of the install
  3. Is very obnoxious to do later because it necessarily requires formatting the entire namespace, wiping all your data.

The logical block size is technically relevant to more devices, and there is a wiki page about it: https://wiki.archlinux.org/title/Advanced_Format. I'm only interested in nvme support.